[Lunar-commits] dhcp: Fix not to overwrite dhcpd.conf. Correct location for lease files

Stefan Wold ratler at lunar-linux.org
Sun Dec 23 15:19:10 CET 2007


commit 6726f0d9264829d608a698ce4bfa946c4a242000
Author: Stefan Wold <ratler at lunar-linux.org>
Date:   Sun Dec 23 15:19:10 2007 +0100

    dhcp: Fix not to overwrite dhcpd.conf. Correct location for lease files
    * Sedit to makefile to stop from overwriting an existing dhcpd.conf
    * Added OPTS to use the old location of dhcpd.leases file or existing
      installs will break.
---
 net/dhcp/BUILD |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/net/dhcp/BUILD b/net/dhcp/BUILD
index e34c3dd..68bf09a 100644
--- a/net/dhcp/BUILD
+++ b/net/dhcp/BUILD
@@ -1,8 +1,11 @@
 (
   MODHOME="$MOONBASE/net/$MODULE"
   CFGHOME="/etc/config.d"
-  
-  
+  OPTS+=" --with-srv-lease-file=/var/state/dhcp/dhcpd.leases \
+          --with-cli-lease-file=/var/state/dhcp/dhclient.leases"
+
+  sedit 's;^dist_sysconf_DATA.*dhcpd.conf;dist_sysconf_DATA =;' server/Makefile.in &&
+
   default_build  &&
 
   #make sure the config directory exists


More information about the Lunar-commits mailing list