2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-04-21 04:30:09 +02:00
|
|
|
#
|
|
|
|
# input-event-daemon
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-04-21 04:30:09 +02:00
|
|
|
|
|
|
|
INPUT_EVENT_DAEMON_VERSION = v0.1.3
|
2013-12-05 18:20:46 +01:00
|
|
|
INPUT_EVENT_DAEMON_SITE = $(call github,gandro,input-event-daemon,$(INPUT_EVENT_DAEMON_VERSION))
|
2012-08-06 04:21:22 +02:00
|
|
|
INPUT_EVENT_DAEMON_LICENSE = input-event-daemon license
|
|
|
|
INPUT_EVENT_DAEMON_LICENSE_FILES = README
|
2011-04-21 04:30:09 +02:00
|
|
|
|
|
|
|
define INPUT_EVENT_DAEMON_BUILD_CMDS
|
|
|
|
touch $(@D)/input-event-table.h
|
|
|
|
$(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define INPUT_EVENT_DAEMON_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -m 755 -D $(@D)/input-event-daemon \
|
|
|
|
$(TARGET_DIR)/usr/bin/input-event-daemon
|
2014-11-30 15:18:49 +01:00
|
|
|
$(INSTALL) -m 644 -D $(@D)/docs/sample.conf \
|
|
|
|
$(TARGET_DIR)/etc/input-event-daemon.conf
|
2014-11-30 15:18:02 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define INPUT_EVENT_DAEMON_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -m 0755 -D package/input-event-daemon/S99input-event-daemon \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S99input-event-daemon
|
2011-04-21 04:30:09 +02:00
|
|
|
endef
|
|
|
|
|
2015-05-23 12:04:42 +02:00
|
|
|
define INPUT_EVENT_DAEMON_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/input-event-daemon/input-event-daemon.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/input-event-daemon.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
ln -sf /usr/lib/systemd/system/input-event-daemon.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/input-event-daemon.service
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|