2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
10 PKG_REV
:=cb3ed9ba849ff5926fa47fd1ae042fa0083edaf5
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_SOURCE_URL
:=git
://github.com
/wertarbyte
/triggerhappy
16 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_SOURCE_VERSION
:=$(PKG_REV
)
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/triggerhappy
24 TITLE
:=handle input events and run configured programs
25 URL
:=http
://github.com
/wertarbyte
/triggerhappy
28 define Package
/triggerhappy
/description
29 triggerhappy
- handle input events and run configured programs
30 The daemon thd can handle hotplugged input devices and is configured through
31 simple configuration files in
/etc
/triggerhappy
/triggers.d
/.
35 $(TARGET_CONFIGURE_OPTS
) \
38 define Package
/triggerhappy
/install
39 $(INSTALL_DIR
) $(1)/usr
/sbin
40 $(INSTALL_DIR
) $(1)/etc
41 $(INSTALL_DIR
) $(1)/etc
/init.d
42 $(INSTALL_DIR
) $(1)/etc
/triggerhappy
43 $(INSTALL_DIR
) $(1)/etc
/triggerhappy
/triggers.d
/
44 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/input
/
45 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/thd
$(1)/usr
/sbin
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/th-cmd
$(1)/usr
/sbin
47 $(INSTALL_BIN
) .
/files
/triggerhappy.init
$(1)/etc
/init.d
/triggerhappy
48 $(INSTALL_BIN
) .
/files
/triggerhappy.hotplug
$(1)/etc
/hotplug.d
/input
/10-triggerhappy
49 $(INSTALL_BIN
) .
/files
/triggerhappy-example.conf
$(1)/etc
/triggerhappy
/triggers.d
/example.conf
52 $(eval
$(call BuildPackage
,triggerhappy
))