lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1780B)


      1 #
      2 # Copyright (C) 2014-2015 OpenWrt.org
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=triggerhappy
     11 PKG_VERSION:=0.3.4-151001
     12 PKG_REV:=7e5abc69f215678e93a6b999524981c8b40bdcd9
     13 PKG_RELEASE:=1
     14 
     15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     16 PKG_SOURCE_URL:=git://github.com/wertarbyte/triggerhappy
     17 PKG_SOURCE_PROTO:=git
     18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
     19 PKG_SOURCE_VERSION:=$(PKG_REV)
     20 
     21 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
     22 PKG_LICENSE:=GPL-3.0+
     23 PKG_LICENSE_FILES:=COPYING
     24 
     25 include $(INCLUDE_DIR)/package.mk
     26 
     27 define Package/triggerhappy
     28   SECTION:=utils
     29   CATEGORY:=Utilities
     30   TITLE:=handle input events and run configured programs
     31   URL:=http://github.com/wertarbyte/triggerhappy
     32 endef
     33 
     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/.
     38 endef
     39 
     40 MAKE_FLAGS += \
     41 	$(TARGET_CONFIGURE_OPTS) \
     42 	$(1)
     43 
     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
     56 endef
     57 
     58 $(eval $(call BuildPackage,triggerhappy))