summaryrefslogtreecommitdiff
path: root/net/isc-dhcp30-server/files/patch-includes::cf::freebsd.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--net/isc-dhcp30-server/files/patch-includes::cf::freebsd.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/net/isc-dhcp30-server/files/patch-includes::cf::freebsd.h b/net/isc-dhcp30-server/files/patch-includes::cf::freebsd.h
new file mode 100644
index 000000000000..8fe1b6ef93a0
--- /dev/null
+++ b/net/isc-dhcp30-server/files/patch-includes::cf::freebsd.h
@@ -0,0 +1,53 @@
+--- includes/cf/freebsd.h.orig Wed Mar 3 02:32:39 2004
++++ includes/cf/freebsd.h Wed Mar 3 02:31:56 2004
+@@ -101,6 +101,10 @@
+ #define SOCKLEN_T int
+ #endif
+
++#ifdef RESCUE
++#define _PATH_DHCLIENT_SCRIPT "/rescue/dhclient-script"
++#endif
++
+ #if defined (USE_DEFAULT_NETWORK)
+ # define USE_BPF
+ #endif
+@@ -111,6 +115,9 @@
+ #endif /* HAVE_DEV_RANDOM */
+
+ const char *cmds[] = {
++#ifndef RESCUE
++ /* rescue environment can't rely on these ... */
++ /* Actually, /sbin/dhclient shouldn't use these, either. */
+ "/bin/ps -axlw 2>&1",
+ "/usr/sbin/arp -an 2>&1",
+ "/usr/bin/netstat -an 2>&1",
+@@ -121,10 +128,12 @@
+ "/usr/sbin/iostat 2>&1",
+ "/usr/bin/vmstat 2>&1",
+ "/usr/bin/w 2>&1",
++#endif
+ NULL
+ };
+
+ const char *dirs[] = {
++#ifndef RESCUE
+ "/tmp",
+ "/usr/tmp",
+ ".",
+@@ -134,13 +143,16 @@
+ "/var/mail",
+ "/home",
+ "/usr/home",
++#endif
+ NULL
+ };
+
+ const char *files[] = {
++#ifndef RESCUE
+ "/var/log/messages",
+ "/var/log/wtmp",
+ "/var/log/lastlog",
++#endif
+ NULL
+ };
+ #endif /* NEED_PRAND_CONF */