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
|
2012-08-11 22:10:14 +02:00
|
|
|
IFPLUGD_LICENSE = GPLv2
|
|
|
|
IFPLUGD_LICENSE_FILES = LICENSE
|
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.*
|
|
|
|
IFPLUGD_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install-exec
|
2012-08-18 16:04:16 +02:00
|
|
|
IFPLUGD_CONF_OPT = --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
|
|
|
|
2011-10-15 05:07:34 +02:00
|
|
|
# Prefer big ifplugd
|
|
|
|
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
|
|
|
IFPLUGD_DEPENDENCIES += busybox
|
|
|
|
endif
|
|
|
|
|
2010-09-02 00:05:28 +02:00
|
|
|
define IFPLUGD_INSTALL_FIXUP
|
2014-03-30 01:53:40 +01:00
|
|
|
if [ ! -f $(TARGET_DIR)/etc/ifplugd/ifplugd.conf ]; then \
|
2013-10-24 03:05:49 +02:00
|
|
|
$(INSTALL) -D $(@D)/conf/ifplugd.conf $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \
|
2008-07-02 09:20:16 +02:00
|
|
|
$(SED) 's^\(ARGS=.*\)w^\1^' $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \
|
|
|
|
fi
|
2014-03-30 01:53:40 +01:00
|
|
|
if [ ! -f $(TARGET_DIR)/etc/ifplugd/ifplugd.action ]; then \
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.action \
|
2014-03-30 17:32:46 +02:00
|
|
|
$(TARGET_DIR)/etc/ifplugd/ifplugd.action ; \
|
2014-03-30 01:53:40 +01:00
|
|
|
fi
|
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
|
|
|
|
|
|
|
|
IFPLUGD_POST_INSTALL_TARGET_HOOKS += IFPLUGD_INSTALL_FIXUP
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|