aboutsummaryrefslogtreecommitdiffstats
path: root/net/wide-dhcp
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1997-10-07 06:00:14 +0800
committerobrien <obrien@FreeBSD.org>1997-10-07 06:00:14 +0800
commit179ec4e1f368dd63596ce1a63f4333451e146fd4 (patch)
tree72f5b3edb5643965ff2bcf131a9e143230561a21 /net/wide-dhcp
parent2199ee27b5aa907eddfe71ed5626c27781a9304e (diff)
downloadfreebsd-ports-gnome-179ec4e1f368dd63596ce1a63f4333451e146fd4.tar.gz
freebsd-ports-gnome-179ec4e1f368dd63596ce1a63f4333451e146fd4.tar.zst
freebsd-ports-gnome-179ec4e1f368dd63596ce1a63f4333451e146fd4.zip
Change the cache file to /var/db/dhcp_cache
Suggested by: Joao Carlos Mendes Luis <jonny@coppe.ufrj.br>
Diffstat (limited to 'net/wide-dhcp')
-rw-r--r--net/wide-dhcp/files/patch-az4
-rw-r--r--net/wide-dhcp/pkg-plist1
2 files changed, 3 insertions, 2 deletions
diff --git a/net/wide-dhcp/files/patch-az b/net/wide-dhcp/files/patch-az
index b01432c82fe2..9685efd580ee 100644
--- a/net/wide-dhcp/files/patch-az
+++ b/net/wide-dhcp/files/patch-az
@@ -14,7 +14,7 @@
To get the same address,
.B dhcpc
-creates file named "/etc/dhcp_cache". This file name could be
-+creates file named "/var/tmp/dhcp_cache". This file name could be
++creates file named "/var/db/dhcp_cache". This file name could be
configured when it is compiled. But it is required that the file must
remains after the host reboot. For example, the /tmp directory is not
appropriate for this purpose.
@@ -45,7 +45,7 @@
.PD 0
.TP 20
-.B /etc/dhcp_cache
-+.B /var/tmp/dhcp_cache
++.B /var/db/dhcp_cache
The file to record previously assigned informations
+.TP
+.B /var/run/dhcpc.[interface name].pid
diff --git a/net/wide-dhcp/pkg-plist b/net/wide-dhcp/pkg-plist
index 1dfaa3c6fb0c..24f37b0da275 100644
--- a/net/wide-dhcp/pkg-plist
+++ b/net/wide-dhcp/pkg-plist
@@ -21,3 +21,4 @@ etc/rc.d/wide-dhcps.sh.sample
@unexec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcps /etc/services.bak ) > /etc/services
@exec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcpc /etc/services.bak ; echo "dhcpc 68/udp # dhcp client") > /etc/services
@unexec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^dhcpc /etc/services.bak ) > /etc/services
+@unexec rm -f /var/db/dhcp_cache