2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2008-05-31 09:28:12 +02:00
|
|
|
#
|
|
|
|
# ifplugd
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-10-15 05:07:34 +02:00
|
|
|
|
2008-05-31 09:28:12 +02:00
|
|
|
IFPLUGD_VERSION = 0.28
|
2011-10-15 05:07:34 +02:00
|
|
|
IFPLUGD_SITE = http://0pointer.de/lennart/projects/ifplugd
|
2019-09-20 09:21:22 +02:00
|
|
|
IFPLUGD_LICENSE = GPL-2.0+
|
2012-08-11 22:10:14 +02:00
|
|
|
IFPLUGD_LICENSE_FILES = LICENSE
|
2021-07-26 10:37:40 +02:00
|
|
|
IFPLUGD_SELINUX_MODULES = ifplugd
|
2008-12-13 20:40:26 +01:00
|
|
|
IFPLUGD_AUTORECONF = YES
|
2012-08-11 22:10:14 +02:00
|
|
|
|
2008-12-04 13:14:57 +01:00
|
|
|
# install-strip unconditionally overwrites $(TARGET_DIR)/etc/ifplugd/ifplugd.*
|
2014-09-27 21:32:40 +02:00
|
|
|
IFPLUGD_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-exec
|
2014-09-27 21:32:44 +02:00
|
|
|
IFPLUGD_CONF_OPTS = --disable-lynx --with-initdir=/etc/init.d/
|
2009-09-02 17:02:02 +02:00
|
|
|
IFPLUGD_DEPENDENCIES = libdaemon
|
2008-05-31 09:28:12 +02:00
|
|
|
|
2010-09-02 00:05:28 +02:00
|
|
|
define IFPLUGD_INSTALL_FIXUP
|
2014-11-30 15:18:55 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/conf/ifplugd.conf $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \
|
|
|
|
$(SED) 's^\(ARGS=.*\)w^\1^' $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.action \
|
2014-12-02 07:58:49 +01:00
|
|
|
$(TARGET_DIR)/etc/ifplugd/ifplugd.action
|
2014-11-30 15:18:03 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
IFPLUGD_POST_INSTALL_TARGET_HOOKS += IFPLUGD_INSTALL_FIXUP
|
|
|
|
|
|
|
|
define IFPLUGD_INSTALL_INIT_SYSV
|
2013-10-24 03:05:49 +02:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.init \
|
2008-05-31 09:28:12 +02:00
|
|
|
$(TARGET_DIR)/etc/init.d/S45ifplugd
|
|
|
|
# don't use bash for init script
|
|
|
|
$(SED) 's^/bin/bash^/bin/sh^g' $(TARGET_DIR)/etc/init.d/S45ifplugd
|
2010-09-02 00:05:28 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|