ifplugd.mk 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ################################################################################
  2. #
  3. # ifplugd
  4. #
  5. ################################################################################
  6. IFPLUGD_VERSION = 0.28
  7. IFPLUGD_SITE = http://0pointer.de/lennart/projects/ifplugd
  8. IFPLUGD_LICENSE = GPL-2.0+
  9. IFPLUGD_LICENSE_FILES = LICENSE
  10. IFPLUGD_SELINUX_MODULES = ifplugd
  11. IFPLUGD_AUTORECONF = YES
  12. # install-strip unconditionally overwrites $(TARGET_DIR)/etc/ifplugd/ifplugd.*
  13. IFPLUGD_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-exec
  14. IFPLUGD_CONF_OPTS = --disable-lynx --with-initdir=/etc/init.d/
  15. IFPLUGD_DEPENDENCIES = libdaemon
  16. define IFPLUGD_INSTALL_FIXUP
  17. $(INSTALL) -D -m 0644 $(@D)/conf/ifplugd.conf $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \
  18. $(SED) 's^\(ARGS=.*\)w^\1^' $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \
  19. $(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.action \
  20. $(TARGET_DIR)/etc/ifplugd/ifplugd.action
  21. endef
  22. IFPLUGD_POST_INSTALL_TARGET_HOOKS += IFPLUGD_INSTALL_FIXUP
  23. define IFPLUGD_INSTALL_INIT_SYSV
  24. $(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.init \
  25. $(TARGET_DIR)/etc/init.d/S45ifplugd
  26. # don't use bash for init script
  27. $(SED) 's^/bin/bash^/bin/sh^g' $(TARGET_DIR)/etc/init.d/S45ifplugd
  28. endef
  29. $(eval $(autotools-package))