2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-12-12 23:13:41 +01:00
|
|
|
#
|
|
|
|
# netplug
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2013-07-20 08:52:43 +02:00
|
|
|
NETPLUG_VERSION = 1.2.9.2
|
|
|
|
NETPLUG_SOURCE = netplug-$(NETPLUG_VERSION).tar.bz2
|
|
|
|
NETPLUG_SITE = http://www.red-bean.com/~bos/netplug
|
2017-03-30 15:43:32 +02:00
|
|
|
NETPLUG_LICENSE = GPL-2.0
|
2014-06-24 20:55:29 +02:00
|
|
|
NETPLUG_LICENSE_FILES = COPYING
|
2006-12-12 23:13:41 +01:00
|
|
|
|
2010-12-12 22:54:01 +01:00
|
|
|
define NETPLUG_BUILD_CMDS
|
2016-10-17 18:06:39 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
2010-12-12 22:54:01 +01:00
|
|
|
endef
|
2006-12-12 23:13:41 +01:00
|
|
|
|
2010-12-12 22:54:01 +01:00
|
|
|
define NETPLUG_INSTALL_TARGET_CMDS
|
2016-10-17 18:06:39 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install
|
2010-12-12 22:54:01 +01:00
|
|
|
endef
|
2006-12-12 23:13:41 +01:00
|
|
|
|
2013-09-03 19:22:54 +02:00
|
|
|
define NETPLUG_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -m 0755 -D package/netplug/S29netplug \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S29netplug
|
|
|
|
endef
|
|
|
|
|
2015-05-23 12:05:57 +02:00
|
|
|
define NETPLUG_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/netplug/netplug.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/netplug.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
ln -sf ../../../../usr/lib/systemd/system/netplug.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/netplug.service
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|