2010-11-20 17:38:01 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2010-11-20 18:01:36 +02:00
|
|
|
PKG_NAME:=triggersad
|
2010-11-20 17:38:01 +02:00
|
|
|
PKG_VERSION:=0.1.3
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2010-11-20 18:01:36 +02:00
|
|
|
PKG_SOURCE:=wertarbyte-triggerhappy-release-0.1.3-0-gf7c4216.tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://download.github.com/
|
2010-11-20 17:38:01 +02:00
|
|
|
PKG_MD5SUM:=7da137a7d2ba1ce396231e821e68de4e
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/wertarbyte-triggerhappy-f7c4216/
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2010-11-20 18:01:36 +02:00
|
|
|
define Package/triggersad
|
2010-11-20 17:38:01 +02:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=handle input events and run configured programs
|
|
|
|
URL:=http://github.com/wertarbyte/triggerhappy
|
|
|
|
endef
|
|
|
|
|
2010-11-20 18:01:36 +02:00
|
|
|
define Package/triggersad/description
|
2010-11-20 17:38:01 +02:00
|
|
|
triggerhappy - handle input events and run configured programs
|
|
|
|
The daemon thd can handle hotplugged input devices and is configured through
|
|
|
|
simple configuration files in /etc/triggerhappy/triggers.d/.
|
|
|
|
endef
|
|
|
|
|
|
|
|
MAKE_FLAGS += \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
$(1)
|
|
|
|
|
2010-11-20 17:45:58 +02:00
|
|
|
MAKE_VARS += TOOLCHAIN_DIR=$(TOOLCHAIN_DIR)
|
|
|
|
|
2010-11-20 18:01:36 +02:00
|
|
|
define Package/triggersad/install
|
2010-11-20 17:38:01 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_DIR) $(1)/etc/triggerhappy
|
|
|
|
$(INSTALL_DIR) $(1)/etc/triggerhappy/triggers.d/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/input/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/thd $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/th-cmd $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) ./files/triggerhappy.init $(1)/etc/init.d/triggerhappy
|
|
|
|
$(INSTALL_BIN) ./files/triggerhappy.hotplug $(1)/etc/hotplug.d/input/10-triggerhappy
|
|
|
|
$(INSTALL_BIN) ./files/triggerhappy-example.conf $(1)/etc/triggerhappy/triggers.d/example.conf
|
|
|
|
endef
|
|
|
|
|
2010-11-20 18:01:36 +02:00
|
|
|
$(eval $(call BuildPackage,triggersad))
|