1
0

Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #
  2. # Copyright (C) 2014-2015 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:=triggerhappy
  9. PKG_VERSION:=0.3.4-151001
  10. PKG_REV:=7e5abc69f215678e93a6b999524981c8b40bdcd9
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=git://github.com/wertarbyte/triggerhappy
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_SOURCE_VERSION:=$(PKG_REV)
  17. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  18. PKG_LICENSE:=GPL-3.0+
  19. PKG_LICENSE_FILES:=COPYING
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/triggerhappy
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=handle input events and run configured programs
  25. URL:=http://github.com/wertarbyte/triggerhappy
  26. endef
  27. define Package/triggerhappy/description
  28. triggerhappy - handle input events and run configured programs
  29. The daemon thd can handle hotplugged input devices and is configured through
  30. simple configuration files in /etc/triggerhappy/triggers.d/.
  31. endef
  32. MAKE_FLAGS += \
  33. $(TARGET_CONFIGURE_OPTS) \
  34. $(1)
  35. define Package/triggerhappy/install
  36. $(INSTALL_DIR) $(1)/usr/sbin
  37. $(INSTALL_DIR) $(1)/etc
  38. $(INSTALL_DIR) $(1)/etc/init.d
  39. $(INSTALL_DIR) $(1)/etc/triggerhappy
  40. $(INSTALL_DIR) $(1)/etc/triggerhappy/triggers.d/
  41. $(INSTALL_DIR) $(1)/etc/hotplug.d/input/
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/thd $(1)/usr/sbin
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/th-cmd $(1)/usr/sbin
  44. $(INSTALL_BIN) ./files/triggerhappy.init $(1)/etc/init.d/triggerhappy
  45. $(INSTALL_BIN) ./files/triggerhappy.hotplug $(1)/etc/hotplug.d/input/10-triggerhappy
  46. $(INSTALL_BIN) ./files/triggerhappy-example.conf $(1)/etc/triggerhappy/triggers.d/example.conf
  47. endef
  48. $(eval $(call BuildPackage,triggerhappy))