1
0

Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
  12. PKG_SOURCE_URL:=@SF/cmdpad
  13. PKG_MD5SUM:=6633b2354b7f23f9cd8e2bfb6e735965
  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 a key is pressed, released or hold 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))