Changeset 34485


Ignore:
Timestamp:
2012-12-04T17:20:51+01:00 (5 years ago)
Author:
florian
Message:

isc-dhcp-relay: Add init scripts for ipv4 and ipv6 as well as config
file

I cleaned up the patch so line do not overflow and removed some white
space in hope to get it accepted or revised.

As isc-dhcp-relay does not come with an init script, I made one based
on sysntpd init.d file for both ipv4 and ipv6.

If you need more arguments from isc-dhcp-relay to be included in the
config file, I'll be able to add them.

This patch has been applied to trunk and compiles/install on my side.

The script for ipv4 and ipv6 have been tested with the
isc-dhcp-relay-ipv6 binary and work well (start/stop with the right
settings).

Signed-off-by: Jérôme Poulin <jeromepoulin@…>
Signed-off-by: Florian Fainelli <florian@…>

Location:
packages/net/isc-dhcp
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/isc-dhcp/Makefile

    r33049 r34485  
    1111UPSTREAM_NAME:=dhcp 
    1212PKG_VERSION:=4.2.4 
    13 PKG_RELEASE:=2 
     13PKG_RELEASE:=3 
    1414 
    1515PKG_SOURCE:=$(UPSTREAM_NAME)-$(PKG_VERSION).tar.gz 
     
    174174        $(INSTALL_DIR) $(1)/usr/sbin 
    175175        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dhcrelay $(1)/usr/sbin 
     176        $(INSTALL_DIR) $(1)/etc/config 
     177        $(INSTALL_DATA) ./files/etc/config/dhcrelay $(1)/etc/config 
     178        $(INSTALL_DIR) $(1)/etc/init.d 
     179        $(INSTALL_BIN) ./files/dhcrelay4.init $(1)/etc/init.d/dhcrelay4 
     180ifeq ($(BUILD_VARIANT),ipv6) 
     181        $(INSTALL_BIN) ./files/dhcrelay6.init $(1)/etc/init.d/dhcrelay6 
     182endif 
    176183endef 
    177184 
Note: See TracChangeset for help on using the changeset viewer.