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.

57 lines
1.8 KiB

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