[patch-team] update triggerhappy package to version 0.3.1-1 - Signed-off-by: Stefan Tomanek <stefan.tomanek+openwrt@wertarbyte.de>
[openwrt.org/packages.git] / utils / triggerhappy / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=triggerhappy
PKG_VERSION:=0.3.1
PKG_REV:=168639e0c482ca1668e15c48aaa9ccef286c223a
PKG_RELEASE:=1
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=git://github.com/wertarbyte/triggerhappy
PKG_SOURCE_PROTO:=git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=$(PKG_REV)
 
include $(INCLUDE_DIR)/package.mk
 
define Package/triggerhappy
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=handle input events and run configured programs
  URL:=http://github.com/wertarbyte/triggerhappy
endef
 
define Package/triggerhappy/description
        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 += \
        LINUX_INPUT_H=$(TOOLCHAIN_DIR)/usr/include/linux/input.h \
        $(TARGET_CONFIGURE_OPTS) \
        $(1)
 
define Package/triggerhappy/install
        $(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
 
$(eval $(call BuildPackage,triggerhappy))
 
comments