OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # This is free software, licensed under the GNU General Public License v2. |
| 3 | # See /LICENSE for more information. |
| 4 | # |
| 5 | |
| 6 | include $(TOPDIR)/rules.mk |
| 7 | |
| 8 | PKG_NAME:=triggersad |
| 9 | PKG_VERSION:=0.1.3 |
| 10 | PKG_REV:=f7c42167127fb8377f99440f943ab863433b14b5 |
| 11 | PKG_RELEASE:=1 |
| 12 | |
| 13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 14 | PKG_SOURCE_URL:=git://github.com/wertarbyte/triggerhappy |
| 15 | PKG_SOURCE_PROTO:=git |
| 16 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
| 17 | PKG_SOURCE_VERSION:=$(PKG_REV) |
| 18 | |
| 19 | include $(INCLUDE_DIR)/package.mk |
| 20 | |
| 21 | define Package/triggersad |
| 22 | MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc> |
| 23 | SECTION:=utils |
| 24 | CATEGORY:=Utilities |
| 25 | TITLE:=handle input events and run configured programs |
| 26 | URL:=http://github.com/wertarbyte/triggerhappy |
| 27 | endef |
| 28 | |
| 29 | define Package/triggersad/description |
| 30 | triggerhappy - handle input events and run configured programs |
| 31 | The daemon thd can handle hotplugged input devices and is configured through |
| 32 | simple configuration files in /etc/triggerhappy/triggers.d/. |
| 33 | endef |
| 34 | |
| 35 | MAKE_FLAGS += \ |
| 36 | $(TARGET_CONFIGURE_OPTS) \ |
| 37 | $(1) |
| 38 | |
| 39 | MAKE_VARS += TOOLCHAIN_DIR=$(TOOLCHAIN_DIR) |
| 40 | |
| 41 | define Package/triggersad/install |
| 42 | $(INSTALL_DIR) $(1)/usr/sbin |
| 43 | $(INSTALL_DIR) $(1)/etc |
| 44 | $(INSTALL_DIR) $(1)/etc/init.d |
| 45 | $(INSTALL_DIR) $(1)/etc/triggerhappy |
| 46 | $(INSTALL_DIR) $(1)/etc/triggerhappy/triggers.d/ |
| 47 | $(INSTALL_DIR) $(1)/etc/hotplug.d/input/ |
| 48 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/thd $(1)/usr/sbin |
| 49 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/th-cmd $(1)/usr/sbin |
| 50 | $(INSTALL_BIN) ./files/triggerhappy.init $(1)/etc/init.d/triggerhappy |
| 51 | $(INSTALL_BIN) ./files/triggerhappy.hotplug $(1)/etc/hotplug.d/input/10-triggerhappy |
| 52 | $(INSTALL_BIN) ./files/triggerhappy-example.conf $(1)/etc/triggerhappy/triggers.d/example.conf |
| 53 | endef |
| 54 | |
| 55 | $(eval $(call BuildPackage,triggersad)) |
| 56 |
