aboutsummaryrefslogtreecommitdiffstats
path: root/net/isc-dhcp30-server
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2006-05-16 14:20:52 +0800
committersem <sem@FreeBSD.org>2006-05-16 14:20:52 +0800
commit82112c4bed4d07923d4b1189fc50dc423b2f5228 (patch)
treedc3ed3c7928da6a27372c593d8a3d1f38937b0b5 /net/isc-dhcp30-server
parentc67d1a05c93cadde5757db914773fa7c51b5bbde (diff)
downloadfreebsd-ports-gnome-82112c4bed4d07923d4b1189fc50dc423b2f5228.tar.gz
freebsd-ports-gnome-82112c4bed4d07923d4b1189fc50dc423b2f5228.tar.zst
freebsd-ports-gnome-82112c4bed4d07923d4b1189fc50dc423b2f5228.zip
- Fix IP address lease time bug on 64-bit archs. It caused clients
(at least Windows XP) to reject a leased IP info. The reason was time_t that is 8-bytes wide on FreeBSD *64. PR: ports/97333 Submitted by: maintainer
Diffstat (limited to 'net/isc-dhcp30-server')
-rw-r--r--net/isc-dhcp30-server/Makefile2
-rw-r--r--net/isc-dhcp30-server/files/patch-includes::cf::freebsd.h23
2 files changed, 17 insertions, 8 deletions
diff --git a/net/isc-dhcp30-server/Makefile b/net/isc-dhcp30-server/Makefile
index fd123cffa640..dbca44f73f32 100644
--- a/net/isc-dhcp30-server/Makefile
+++ b/net/isc-dhcp30-server/Makefile
@@ -8,7 +8,7 @@
PORTNAME= dhcp
PORTVERSION= 3.0.4
-#PORTREVISION= 1
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_ISC}
MASTER_SITE_SUBDIR= dhcp dhcp/dhcp-3.0-history
diff --git a/net/isc-dhcp30-server/files/patch-includes::cf::freebsd.h b/net/isc-dhcp30-server/files/patch-includes::cf::freebsd.h
index 9a3f4c636b09..26d1d992bb46 100644
--- a/net/isc-dhcp30-server/files/patch-includes::cf::freebsd.h
+++ b/net/isc-dhcp30-server/files/patch-includes::cf::freebsd.h
@@ -1,6 +1,6 @@
---- includes/cf/freebsd.h.orig Wed Mar 3 02:32:39 2004
-+++ includes/cf/freebsd.h Wed Mar 3 02:31:56 2004
-@@ -42,7 +42,7 @@
+--- includes/cf/freebsd.h.orig Wed Sep 1 19:06:36 2004
++++ includes/cf/freebsd.h Mon May 15 09:13:18 2006
+@@ -33,7 +33,7 @@
*/
#include <syslog.h>
@@ -9,7 +9,16 @@
#include <string.h>
#include <paths.h>
#include <errno.h>
-@@ -101,6 +101,10 @@
+@@ -82,7 +82,7 @@
+
+ /* Time stuff... */
+ #include <sys/time.h>
+-#define TIME time_t
++#define TIME u_int32_t
+ #define GET_TIME(x) time ((x))
+
+ #define HAVE_SA_LEN
+@@ -97,6 +97,10 @@
#define SOCKLEN_T int
#endif
@@ -20,7 +29,7 @@
#if defined (USE_DEFAULT_NETWORK)
# define USE_BPF
#endif
-@@ -111,6 +115,9 @@
+@@ -107,6 +111,9 @@
#endif /* HAVE_DEV_RANDOM */
const char *cmds[] = {
@@ -30,7 +39,7 @@
"/bin/ps -axlw 2>&1",
"/usr/sbin/arp -an 2>&1",
"/usr/bin/netstat -an 2>&1",
-@@ -121,10 +128,12 @@
+@@ -117,10 +124,12 @@
"/usr/sbin/iostat 2>&1",
"/usr/bin/vmstat 2>&1",
"/usr/bin/w 2>&1",
@@ -43,7 +52,7 @@
"/tmp",
"/usr/tmp",
".",
-@@ -134,13 +143,16 @@
+@@ -130,13 +139,16 @@
"/var/mail",
"/home",
"/usr/home",