summaryrefslogtreecommitdiffstats
path: root/package/dhcp/dhcp.mk
diff options
context:
space:
mode:
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>2014-08-04 20:19:03 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-08-04 21:31:30 +0200
commit4449da18d45ea96423914507b996b22f1a23118d (patch)
tree82f68b00bd31bbedcdbcb3cf0587d47fa036a31c /package/dhcp/dhcp.mk
parent02012d337323da261654bc6fbb1a8bd8b8da2543 (diff)
downloadbuildroot-4449da18d45ea96423914507b996b22f1a23118d.tar.gz
buildroot-4449da18d45ea96423914507b996b22f1a23118d.zip
dhcp: Fix config files paths
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>
Diffstat (limited to 'package/dhcp/dhcp.mk')
-rw-r--r--package/dhcp/dhcp.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/dhcp/dhcp.mk b/package/dhcp/dhcp.mk
index 1044f894c7..32dbea0726 100644
--- a/package/dhcp/dhcp.mk
+++ b/package/dhcp/dhcp.mk
@@ -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 \
OpenPOWER on IntegriCloud