FreeBSD Bugzilla – Attachment 198968 Details for
Bug 232984
net/dhcpd: update to 6.4.20181105
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
dhcpd 6.4.20181105 patch
dhcpd-6.4.20181105-patch.txt (text/plain), 5.67 KB, created by
Nikola Kolev
on 2018-11-05 14:24:25 UTC
(
hide
)
Description:
dhcpd 6.4.20181105 patch
Filename:
MIME Type:
Creator:
Nikola Kolev
Created:
2018-11-05 14:24:25 UTC
Size:
5.67 KB
patch
obsolete
>diff -rupN dhcpd.orig/Makefile dhcpd/Makefile >--- dhcpd.orig/Makefile 2018-11-05 14:11:28.878652000 +0000 >+++ dhcpd/Makefile 2018-11-05 14:10:07.607971000 +0000 >@@ -1,8 +1,7 @@ >-# $FreeBSD: head/net/dhcpd/Makefile 473889 2018-07-04 14:21:07Z swills $ >+# $FreeBSD$ > > PORTNAME= dhcpd >-PORTVERSION= 6.0.20170207 >-PORTREVISION= 2 >+PORTVERSION= 6.4.20181105 > CATEGORIES= net > > MAINTAINER= koue@chaosophia.net >@@ -10,6 +9,8 @@ COMMENT= OpenBSD dhcp daemon > > LICENSE= BSD3CLAUSE > >+USES= ssl uidfix >+ > WRKSRC_SUBDIR= src/usr.sbin/${PORTNAME} > > USE_GITHUB= yes >@@ -17,7 +18,6 @@ GH_ACCOUNT= koue > > CONFLICTS= isc-dhcp4[1-3]-server* > >-USES= ssl uidfix > USE_RC_SUBR= dhcpd > > CFLAGS+= -Wall >@@ -30,11 +30,7 @@ NOPF_DESC= Disable PF support > > OPTIONS_SUB= yes > >-NOPF_CFLAGS= -DNO_PF=1 >-NOPF_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-dhcp.c \ >- ${PATCHDIR}/extra-patch-dhcpd.c \ >- ${PATCHDIR}/extra-patch-memory.c \ >- ${PATCHDIR}/extra-patch-pfutils.c >+NOPF_CFLAGS= -DNO_PF=1 > > post-patch: > @${REINPLACE_CMD} -e "s|/etc/dhcpd.conf|${PREFIX}/etc/dhcpd.conf|" \ >diff -rupN dhcpd.orig/distinfo dhcpd/distinfo >--- dhcpd.orig/distinfo 2018-11-05 14:11:28.878751000 +0000 >+++ dhcpd/distinfo 2018-11-05 14:10:16.571388000 +0000 >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1486490098 >-SHA256 (koue-dhcpd-6.0.20170207_GH0.tar.gz) = 5a2371a28c1011e751a5100e330c8059e34a2f0e8de183ed63be93ca839ae43f >-SIZE (koue-dhcpd-6.0.20170207_GH0.tar.gz) = 106964 >+TIMESTAMP = 1541427016 >+SHA256 (koue-dhcpd-6.4.20181105_GH0.tar.gz) = 98c7118b8318d0d1b2804cfdb8a78a076161287ab8402c4ccbb98d2102d3fd1b >+SIZE (koue-dhcpd-6.4.20181105_GH0.tar.gz) = 128519 >diff -rupN dhcpd.orig/files/extra-patch-dhcp.c dhcpd/files/extra-patch-dhcp.c >--- dhcpd.orig/files/extra-patch-dhcp.c 2018-11-05 14:11:28.879299000 +0000 >+++ dhcpd/files/extra-patch-dhcp.c 1970-01-01 00:00:00.000000000 +0000 >@@ -1,18 +0,0 @@ >---- dhcp.c.orig 2018-06-06 09:10:04 UTC >-+++ dhcp.c >-@@ -154,6 +154,7 @@ dhcpdiscover(struct packet *packet) >- * If we can't find an unabandoned lease, >- * reclaim the abandoned lease. >- */ >-+#ifndef NO_PF >- if ((lease->flags & ABANDONED_LEASE)) { >- warning("Reclaiming abandoned IP address %s.", >- piaddr(lease->ip_addr)); >-@@ -161,6 +162,7 @@ dhcpdiscover(struct packet *packet) >- >- pfmsg('L', lease); /* unabandon address */ >- } >-+#endif /* NO_PF */ >- } >- >- /* Try to find a host_decl that matches the client >diff -rupN dhcpd.orig/files/extra-patch-dhcpd.c dhcpd/files/extra-patch-dhcpd.c >--- dhcpd.orig/files/extra-patch-dhcpd.c 2018-11-05 14:11:28.879468000 +0000 >+++ dhcpd/files/extra-patch-dhcpd.c 1970-01-01 00:00:00.000000000 +0000 >@@ -1,50 +0,0 @@ >---- dhcpd.c.orig 2018-06-06 09:12:11 UTC >-+++ dhcpd.c >-@@ -74,11 +74,15 @@ u_int16_t client_port; >- struct passwd *pw; >- int log_priority; >- int log_perror = 0; >-+#ifndef NO_PF >- int pfpipe[2]; >-+#endif /* NO_PF */ >- int gotpipe = 0; >- int syncrecv; >- int syncsend; >-+#ifndef NO_PF >- pid_t pfproc_pid = -1; >-+#endif /* NO_PF */ >- char *path_dhcpd_conf = _PATH_DHCPD_CONF; >- char *path_dhcpd_db = _PATH_DHCPD_DB; >- char *abandoned_tab = NULL; >-@@ -225,6 +229,7 @@ main(int argc, char *argv[]) >- if ((pw = getpwnam("_dhcp")) == NULL) >- error("user \"_dhcp\" not found"); >- >-+#ifndef NO_PF >- /* don't go near /dev/pf unless we actually intend to use it */ >- if ((abandoned_tab != NULL) || >- (changedmac_tab != NULL) || >-@@ -248,6 +253,7 @@ main(int argc, char *argv[]) >- break; >- } >- } >-+#endif /* NO_PF */ >- >- if (udpsockmode) >- udpsock_startup(udpaddr); >-@@ -386,6 +392,7 @@ periodic_scan(void *p) >- if (y < 1) >- y = 1; >- >-+#ifndef NO_PF >- /* walk across all leases to find the exired ones */ >- for (n = subnets; n; n = n->next_subnet) >- for (g = n->group; g; g = g->next) >-@@ -394,6 +401,7 @@ periodic_scan(void *p) >- if (cur_time >= l->ends) >- if (l->ends > last_scan) >- pfmsg('R', l); >-+#endif /* NO_PF */ >- >- last_scan = cur_time; >- add_timeout(cur_time + y, periodic_scan, NULL); >diff -rupN dhcpd.orig/files/extra-patch-memory.c dhcpd/files/extra-patch-memory.c >--- dhcpd.orig/files/extra-patch-memory.c 2018-11-05 14:11:28.879384000 +0000 >+++ dhcpd/files/extra-patch-memory.c 1970-01-01 00:00:00.000000000 +0000 >@@ -1,34 +0,0 @@ >---- memory.c.orig 2018-06-06 09:14:19 UTC >-+++ memory.c >-@@ -619,9 +619,11 @@ supersede_lease(struct lease *comp, stru >- comp->ends = lease->ends; >- } >- >-+#ifndef NO_PF >- pfmsg('L', lease); /* address is leased. remove from purgatory */ >- if (do_pftable) /* address changed hwaddr. remove from overload */ >- pfmsg('C', lease); >-+#endif /* NO_PF */ >- >- /* Return zero if we didn't commit the lease to permanent storage; >- nonzero if we did. */ >-@@ -641,7 +643,9 @@ release_lease(struct lease *lease) >- supersede_lease(lease, <, 1); >- note("Released lease for IP address %s", >- piaddr(lease->ip_addr)); >-+#ifndef NO_PF >- pfmsg('R', lease); >-+#endif /* NO_PF */ >- } >- } >- >-@@ -669,7 +673,9 @@ abandon_lease(struct lease *lease, char >- lt.uid_len = 0; >- supersede_lease(lease, <, 1); >- >-+#ifndef NO_PF >- pfmsg('A', lease); /* address is abandoned. send to purgatory */ >-+#endif /* NO_PF */ >- return; >- } >- >diff -rupN dhcpd.orig/files/extra-patch-pfutils.c dhcpd/files/extra-patch-pfutils.c >--- dhcpd.orig/files/extra-patch-pfutils.c 2018-11-05 14:11:28.879125000 +0000 >+++ dhcpd/files/extra-patch-pfutils.c 1970-01-01 00:00:00.000000000 +0000 >@@ -1,16 +0,0 @@ >---- pfutils.c.orig 2018-06-06 08:53:18 UTC >-+++ pfutils.c >-@@ -15,6 +15,8 @@ >- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. >- */ >- >-+#ifndef NO_PF /* No need of PF support */ >-+ >- #include <sys/types.h> >- #include <sys/ioctl.h> >- #include <sys/socket.h> >-@@ -254,3 +256,4 @@ pfmsg(char c, struct lease *lp) >- break; >- } >- } >-+#endif /* NO_PF */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 232984
: 198968