2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=triggerhappy
12 PKG_REV
:=7e5abc69f215678e93a6b999524981c8b40bdcd9
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=git
://github.com
/wertarbyte
/triggerhappy
18 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
19 PKG_SOURCE_VERSION
:=$(PKG_REV
)
21 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
23 PKG_LICENSE_FILES
:=COPYING
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/triggerhappy
30 TITLE
:=handle input events and run configured programs
31 URL
:=http
://github.com
/wertarbyte
/triggerhappy
34 define Package
/triggerhappy
/description
35 triggerhappy
- handle input events and run configured programs
36 The daemon thd can handle hotplugged input devices and is configured through
37 simple configuration files in
/etc
/triggerhappy
/triggers.d
/.
41 $(TARGET_CONFIGURE_OPTS
) \
44 define Package
/triggerhappy
/install
45 $(INSTALL_DIR
) $(1)/usr
/sbin
46 $(INSTALL_DIR
) $(1)/etc
47 $(INSTALL_DIR
) $(1)/etc
/init.d
48 $(INSTALL_DIR
) $(1)/etc
/triggerhappy
49 $(INSTALL_DIR
) $(1)/etc
/triggerhappy
/triggers.d
/
50 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/input
/
51 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/thd
$(1)/usr
/sbin
52 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/th-cmd
$(1)/usr
/sbin
53 $(INSTALL_BIN
) .
/files
/triggerhappy.init
$(1)/etc
/init.d
/triggerhappy
54 $(INSTALL_BIN
) .
/files
/triggerhappy.hotplug
$(1)/etc
/hotplug.d
/input
/10-triggerhappy
55 $(INSTALL_BIN
) .
/files
/triggerhappy-example.conf
$(1)/etc
/triggerhappy
/triggers.d
/example.conf
58 $(eval
$(call BuildPackage
,triggerhappy
))