2008-05-31 09:28:12 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# ifplugd
|
|
|
|
#
|
|
|
|
#############################################################
|
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
|
2008-05-31 09:28:12 +02:00
|
|
|
IFPLUGD_CONF_OPT = --disable-lynx
|
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
|
2008-05-31 09:28:12 +02:00
|
|
|
$(INSTALL) -d $(TARGET_DIR)/etc/ifplugd
|
2008-07-02 09:20:16 +02:00
|
|
|
@if [ ! -f $(TARGET_DIR)/etc/ifplugd/ifplugd.conf ]; then \
|
2010-09-02 00:05:28 +02:00
|
|
|
$(INSTALL) $(@D)/conf/ifplugd.conf $(TARGET_DIR)/etc/ifplugd/; \
|
2008-07-02 09:20:16 +02:00
|
|
|
$(SED) 's^\(ARGS=.*\)w^\1^' $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \
|
|
|
|
fi
|
2010-09-02 00:05:28 +02:00
|
|
|
$(INSTALL) -m 0755 $(@D)/conf/ifplugd.action \
|
2008-05-31 09:28:12 +02:00
|
|
|
$(TARGET_DIR)/etc/ifplugd/
|
2010-09-02 00:05:28 +02:00
|
|
|
$(INSTALL) -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))
|