dhcp: bump to version 4.1-ESV-R9
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Wed, 11 Jun 2014 10:39:39 +0000 (07:39 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 11 Jun 2014 10:50:11 +0000 (12:50 +0200)
Also install the SysV initscripts from the proper hook.
Since the scripts check for the proper files to be present there's no
need to exclude them according to options since they won't try to start
anything.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/dhcp/dhcp.mk

index 3885bba7bfe8c4be9ea60706c762253ea8868fdd..1044f894c70699cdeae575347b3850ae43ed2156 100644 (file)
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-DHCP_VERSION = 4.1-ESV-R8
+DHCP_VERSION = 4.1-ESV-R9
 DHCP_SITE = http://ftp.isc.org/isc/dhcp/$(DHCP_VERSION)
 DHCP_INSTALL_STAGING = YES
 DHCP_LICENSE = ISC
@@ -31,8 +31,6 @@ define DHCP_INSTALL_SERVER
        mkdir -p $(TARGET_DIR)/var/lib
        (cd $(TARGET_DIR)/var/lib; ln -snf /tmp dhcp)
        $(INSTALL) -m 0755 -D $(@D)/server/dhcpd $(TARGET_DIR)/usr/sbin/dhcpd
-       $(INSTALL) -m 0755 -D package/dhcp/S80dhcp-server \
-               $(TARGET_DIR)/etc/init.d/S80dhcp-server
        $(INSTALL) -m 0644 -D package/dhcp/dhcpd.conf \
                $(TARGET_DIR)/etc/dhcp/dhcpd.conf
 endef
@@ -44,8 +42,6 @@ define DHCP_INSTALL_RELAY
        (cd $(TARGET_DIR)/var/lib; ln -snf /tmp dhcp)
        $(INSTALL) -m 0755 -D $(DHCP_DIR)/relay/dhcrelay \
                $(TARGET_DIR)/usr/sbin/dhcrelay
-       $(INSTALL) -m 0755 -D package/dhcp/S80dhcp-relay \
-               $(TARGET_DIR)/etc/init.d/S80dhcp-relay
 endef
 endif
 
@@ -62,6 +58,14 @@ define DHCP_INSTALL_CLIENT
 endef
 endif
 
+# Options don't matter, scripts won't start if binaries aren't there
+define DHCP_INSTALL_INIT_SYSV
+       $(INSTALL) -m 0755 -D package/dhcp/S80dhcp-server \
+               $(TARGET_DIR)/etc/init.d/S80dhcp-server
+       $(INSTALL) -m 0755 -D package/dhcp/S80dhcp-relay \
+               $(TARGET_DIR)/etc/init.d/S80dhcp-relay
+endef
+
 define DHCP_INSTALL_TARGET_CMDS
        $(DHCP_INSTALL_RELAY)
        $(DHCP_INSTALL_SERVER)