You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2007-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=cmdpad
  9. PKG_VERSION:=0.0.3
  10. PKG_RELEASE:=5
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
  12. PKG_SOURCE_URL:=@SF/cmdpad
  13. PKG_HASH:=19963f20f1af50fab0013fb373af294ea412da7241d1ea91fad90455291948b9
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=doc/COPYING
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/cmdpad
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=execute commands when key is pressed/released/held down
  22. URL:=http://cmdpad.sourceforge.net/index.php
  23. endef
  24. CONFIGURE_ARGS += \
  25. --enable-static \
  26. --enable-shared
  27. define Package/cmdpad/description
  28. cmdpad - execute commands when a key is pressed, released or hold down.
  29. Should be started from /etc/rc or /etc/rc.local. To run it as daemon you
  30. need to start it with '&'. All logs are printed to standard out and standard
  31. error (to write the log to disk use cmdpad > /var/log/cmdpad). Cmdpad
  32. searches for /etc/cmdpad.conf and load the key bindings. Then wait for
  33. key event and check each command to see if it should be run.
  34. endef
  35. MAKE_FLAGS += \
  36. $(TARGET_CONFIGURE_OPTS) \
  37. $(1)
  38. define Package/cmdpad/install
  39. $(INSTALL_DIR) $(1)/usr/sbin
  40. $(INSTALL_DIR) $(1)/etc
  41. $(INSTALL_DIR) $(1)/etc/init.d
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/cmdpad $(1)/usr/sbin/
  43. $(INSTALL_CONF) $(PKG_BUILD_DIR)/src/cmdpad.conf $(1)/etc/
  44. $(INSTALL_BIN) ./files/cmdpad.init $(1)/etc/init.d/cmdpad
  45. endef
  46. define Package/cmdpad/conffiles
  47. /etc/cmdpad.conf
  48. endef
  49. $(eval $(call BuildPackage,cmdpad))