dhcp: Fix config files paths
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Mon, 4 Aug 2014 18:19:03 +0000 (20:19 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 4 Aug 2014 19:31:30 +0000 (21:31 +0200)
The built dhcp binaries and the installed startup scripts used configuration
files under /etc/, but the configuration files were installed under /etc/dhcp/.
Fix everything to have configuration files under /etc/dhcp/.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/dhcp/S80dhcp-server
package/dhcp/dhcp.mk

index 98bd3cc67e42b98b0904fb64da7ee2d81d14f6ed..5280c310084b9c78e712eb72bcc974fe348ec367 100755 (executable)
@@ -9,7 +9,7 @@ INTERFACES=""
 
 # Sanity checks
 test -f /usr/sbin/dhcpd || exit 0
-test -f /etc/dhcpd.conf || exit 0
+test -f /etc/dhcp/dhcpd.conf || exit 0
 test -n "$INTERFACES" || exit 0
 
 case "$1" in
index 1044f894c70699cdeae575347b3850ae43ed2156..32dbea0726ec4e99a789b7e3f8c8dc0157feca02 100644 (file)
@@ -9,7 +9,10 @@ DHCP_SITE = http://ftp.isc.org/isc/dhcp/$(DHCP_VERSION)
 DHCP_INSTALL_STAGING = YES
 DHCP_LICENSE = ISC
 DHCP_LICENSE_FILES = LICENSE
-DHCP_CONF_ENV = ac_cv_file__dev_random=yes
+DHCP_CONF_ENV = \
+       CPPFLAGS='-D_PATH_DHCPD_CONF=\"/etc/dhcp/dhcpd.conf\" \
+               -D_PATH_DHCLIENT_CONF=\"/etc/dhcp/dhclient.conf\"' \
+       ac_cv_file__dev_random=yes
 DHCP_CONF_OPT = \
        --localstatedir=/var/lib/dhcp \
        --with-srv-lease-file=/var/lib/dhcp/dhcpd.leases \