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.

63 lines
1.7 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:=4
  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. TARGET_CFLAGS += -std=gnu89
  25. CONFIGURE_ARGS += \
  26. --enable-static \
  27. --enable-shared
  28. define Package/cmdpad/description
  29. cmdpad - execute commands when a key is pressed, released or hold down.
  30. Should be started from /etc/rc or /etc/rc.local. To run it as daemon you
  31. need to start it with '&'. All logs are printed to standard out and standard
  32. error (to write the log to disk use cmdpad > /var/log/cmdpad). Cmdpad
  33. searches for /etc/cmdpad.conf and load the key bindings. Then wait for
  34. key event and check each command to see if it should be run.
  35. endef
  36. MAKE_FLAGS += \
  37. $(TARGET_CONFIGURE_OPTS) \
  38. $(1)
  39. define Package/cmdpad/install
  40. $(INSTALL_DIR) $(1)/usr/sbin
  41. $(INSTALL_DIR) $(1)/etc
  42. $(INSTALL_DIR) $(1)/etc/init.d
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/cmdpad $(1)/usr/sbin/
  44. $(INSTALL_CONF) $(PKG_BUILD_DIR)/src/cmdpad.conf $(1)/etc/
  45. $(INSTALL_BIN) ./files/cmdpad.init $(1)/etc/init.d/cmdpad
  46. endef
  47. define Package/cmdpad/conffiles
  48. /etc/cmdpad.conf
  49. endef
  50. $(eval $(call BuildPackage,cmdpad))