Update isc-dhcp4 to 4.3.4, including security fixes. This is the release of ISC DHCP 4.3.4, a maintenance release which contains a number of bug fixes and two fixes for previously released security issues. Full changes are too many to write here, please refer <https://kb.isc.org/article/AA-01364/0/DHCP-4.3.4-Release-Notes.html>.diff -r1.30 -r1.31 pkgsrc/net/isc-dhcp4/Makefile.common
(taca)
@@ -1,34 +1,33 @@ | @@ -1,34 +1,33 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.30 2016/03/05 11:29:05 jperkin Exp $ | 1 | # $NetBSD: Makefile.common,v 1.31 2016/03/30 15:55:44 taca Exp $ | |
2 | # | 2 | # | |
3 | # used by net/isc-dhcp4/Makefile | 3 | # used by net/isc-dhcp4/Makefile | |
4 | # used by net/isc-dhcpd4/Makefile | 4 | # used by net/isc-dhcpd4/Makefile | |
5 | # used by net/isc-dhclient4/Makefile | 5 | # used by net/isc-dhclient4/Makefile | |
6 | # used by net/isc-dhcrelay4/Makefile | 6 | # used by net/isc-dhcrelay4/Makefile | |
7 | 7 | |||
8 | DISTNAME= dhcp-${VERSION} | 8 | DISTNAME= dhcp-${VERSION} | |
9 | DHVER= ${DISTNAME:S/dhcp-//:S/-P/p/} | 9 | DHVER= ${DISTNAME:S/dhcp-//:S/-P/p/} | |
10 | PKGREVISION= 2 | |||
11 | CATEGORIES= net | 10 | CATEGORIES= net | |
12 | MASTER_SITES= ftp://ftp.isc.org/isc/dhcp/${VERSION}/ \ | 11 | MASTER_SITES= ftp://ftp.isc.org/isc/dhcp/${VERSION}/ \ | |
13 | http://ftp.isc.org/isc/dhcp/${VERSION}/ | 12 | http://ftp.isc.org/isc/dhcp/${VERSION}/ | |
14 | 13 | |||
15 | MAINTAINER= pkgsrc-users@NetBSD.org | 14 | MAINTAINER= pkgsrc-users@NetBSD.org | |
16 | HOMEPAGE= https://www.isc.org/sw/dhcp | 15 | HOMEPAGE= https://www.isc.org/sw/dhcp | |
17 | LICENSE= isc | 16 | LICENSE= isc | |
18 | 17 | |||
19 | CONFLICTS+= isc-dhcp-base-3.*{,nb*} | 18 | CONFLICTS+= isc-dhcp-base-3.*{,nb*} | |
20 | 19 | |||
21 | VERSION= 4.3.3-P1 | 20 | VERSION= 4.3.4 | |
22 | 21 | |||
23 | .include "../../mk/bsd.prefs.mk" | 22 | .include "../../mk/bsd.prefs.mk" | |
24 | 23 | |||
25 | GNU_CONFIGURE= yes | 24 | GNU_CONFIGURE= yes | |
26 | DHCP_HOME?= ${VARBASE}/db/isc-dhcp | 25 | DHCP_HOME?= ${VARBASE}/db/isc-dhcp | |
27 | DHCP_PID?= ${VARBASE}/run/isc-dhcp | 26 | DHCP_PID?= ${VARBASE}/run/isc-dhcp | |
28 | PKG_SYSCONFSUBDIR= dhcp | 27 | PKG_SYSCONFSUBDIR= dhcp | |
29 | 28 | |||
30 | USE_TOOLS+= gmake gunzip gzip tar | 29 | USE_TOOLS+= gmake gunzip gzip tar | |
31 | USE_LANGUAGES+= c c++ | 30 | USE_LANGUAGES+= c c++ | |
32 | 31 | |||
33 | PATCHDIR= ${.CURDIR}/../isc-dhcp4/patches | 32 | PATCHDIR= ${.CURDIR}/../isc-dhcp4/patches | |
34 | DISTINFO_FILE= ${.CURDIR}/../isc-dhcp4/distinfo | 33 | DISTINFO_FILE= ${.CURDIR}/../isc-dhcp4/distinfo | |
@@ -73,25 +72,25 @@ post-extract: | @@ -73,25 +72,25 @@ post-extract: | |||
73 | (cd ${WRKSRC}/bind && gunzip -c bind.tar.gz | tar xf -) | 72 | (cd ${WRKSRC}/bind && gunzip -c bind.tar.gz | tar xf -) | |
74 | 73 | |||
75 | BIND_CONFIGURE_ARGS+= --disable-kqueue | 74 | BIND_CONFIGURE_ARGS+= --disable-kqueue | |
76 | BIND_CONFIGURE_ARGS+= --disable-epoll | 75 | BIND_CONFIGURE_ARGS+= --disable-epoll | |
77 | BIND_CONFIGURE_ARGS+= --disable-devpoll | 76 | BIND_CONFIGURE_ARGS+= --disable-devpoll | |
78 | BIND_CONFIGURE_ARGS+= --without-openssl | 77 | BIND_CONFIGURE_ARGS+= --without-openssl | |
79 | BIND_CONFIGURE_ARGS+= --without-libxml2 | 78 | BIND_CONFIGURE_ARGS+= --without-libxml2 | |
80 | BIND_CONFIGURE_ARGS+= --enable-exportlib | 79 | BIND_CONFIGURE_ARGS+= --enable-exportlib | |
81 | BIND_CONFIGURE_ARGS+= --enable-threads=no | 80 | BIND_CONFIGURE_ARGS+= --enable-threads=no | |
82 | BIND_CONFIGURE_ARGS+= --with-export-includedir=${WRKSRC}/bind/include | 81 | BIND_CONFIGURE_ARGS+= --with-export-includedir=${WRKSRC}/bind/include | |
83 | BIND_CONFIGURE_ARGS+= --with-export-libdir=${WRKSRC}/bind/lib | 82 | BIND_CONFIGURE_ARGS+= --with-export-libdir=${WRKSRC}/bind/lib | |
84 | BIND_CONFIGURE_ARGS+= --with-gssapi=no | 83 | BIND_CONFIGURE_ARGS+= --with-gssapi=no | |
85 | 84 | |||
86 | BIND_WRKSRC= ${WRKSRC}/bind/bind-9.9.7-P3 | 85 | BIND_WRKSRC= ${WRKSRC}/bind/bind-9.9.8-P4 | |
87 | 86 | |||
88 | post-configure: | 87 | post-configure: | |
89 | ${RUN}${_ULIMIT_CMD} \ | 88 | ${RUN}${_ULIMIT_CMD} \ | |
90 | cd ${BIND_WRKSRC} && \ | 89 | cd ${BIND_WRKSRC} && \ | |
91 | ${PKGSRC_SETENV} ${_CONFIGURE_SCRIPT_ENV} \ | 90 | ${PKGSRC_SETENV} ${_CONFIGURE_SCRIPT_ENV} \ | |
92 | ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS} \ | 91 | ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS} \ | |
93 | ${CONFIGURE_SCRIPT} \ | 92 | ${CONFIGURE_SCRIPT} \ | |
94 | ${CONFIGURE_ARGS} \ | 93 | ${CONFIGURE_ARGS} \ | |
95 | ${BIND_CONFIGURE_ARGS} | 94 | ${BIND_CONFIGURE_ARGS} | |
96 | 95 | |||
97 | .include "../../security/openssl/buildlink3.mk" | 96 | .include "../../security/openssl/buildlink3.mk" |
@@ -1,13 +1,12 @@ | @@ -1,13 +1,12 @@ | |||
1 | $NetBSD: distinfo,v 1.24 2016/01/22 12:06:40 jperkin Exp $ | 1 | $NetBSD: distinfo,v 1.25 2016/03/30 15:55:44 taca Exp $ | |
2 | 2 | |||
3 | SHA1 (dhcp-4.3.3-P1.tar.gz) = 4e76757a0aebcb9200c1d2ca0f28ff41a5c56586 | 3 | SHA1 (dhcp-4.3.4.tar.gz) = eedd50d32c9ceb8b9feb414c84322a09d26f214b | |
4 | RMD160 (dhcp-4.3.3-P1.tar.gz) = 97d7b10ef1e86c938cc25660048b90165301cd9d | 4 | RMD160 (dhcp-4.3.4.tar.gz) = f8b6d47e9c69d763f48919a58648c31880c2693d | |
5 | SHA512 (dhcp-4.3.3-P1.tar.gz) = 7e14268b4acaa82c807af9d956f76f4327a9a75d36273a244fef74dbd54e7506e8b38ce6035e56f61ab09a19bfc0a40599f76c89dc342514f1048b5ac3b2a0eb | 5 | SHA512 (dhcp-4.3.4.tar.gz) = 411c3f0e1effedb2a95f00539d13164530a56b50830008eb78906b3c8bf4070c331cf54a431770aed5d1b6ba214840446964210060674f746781cc97842ad706 | |
6 | Size (dhcp-4.3.3-P1.tar.gz) = 9204043 bytes | 6 | Size (dhcp-4.3.4.tar.gz) = 9302513 bytes | |
7 | SHA1 (patch-aa) = da090b3b824f5d437f8d05ce00e2ac4dfc65d6af | 7 | SHA1 (patch-aa) = da090b3b824f5d437f8d05ce00e2ac4dfc65d6af | |
8 | SHA1 (patch-ab) = 0683dd2259e48184713559aa0356ee352aa52c39 | 8 | SHA1 (patch-ab) = 0683dd2259e48184713559aa0356ee352aa52c39 | |
9 | SHA1 (patch-ac) = a7e6808a6e1e93c520eb085f31259f6c142750f4 | 9 | SHA1 (patch-ac) = a7e6808a6e1e93c520eb085f31259f6c142750f4 | |
10 | SHA1 (patch-bind_bind-9.9.7-P3_configure) = 78e631a2e7b3a310ebef09b69af837f3a0d3e4f3 | 10 | SHA1 (patch-bind_bind-9.9.8-P4_lib_export_dns_Makefile.in) = ca3bf66f9ee3ac6a9636dcdd77439515a0e902d4 | |
11 | SHA1 (patch-bind_bind-9.9.7-P3_lib_export_dns_Makefile.in) = 6a6fce1a6518821bd1033c31e368f02829c4de39 | 11 | SHA1 (patch-common_dlpi.c) = 14cb1c1aed610b1d6952b26a7775caa06b6a8792 | |
12 | SHA1 (patch-common_dlpi.c) = 76e30ca92a7d3ba10ed73b4f03de0582bccb2acc | |||
13 | SHA1 (patch-includes_Makefile.in) = f595803acd49223766e0f8d5354eff73a5ed9cb8 | 12 | SHA1 (patch-includes_Makefile.in) = f595803acd49223766e0f8d5354eff73a5ed9cb8 |
$NetBSD: patch-bind_bind-9.9.8-P4_lib_export_dns_Makefile.in,v 1.1 2016/03/30 15:55:44 taca Exp $
Build gen with BUILD_CC and the associated BUILD_* flags so it can run
on the build platform when cross-compiling.
--- bind/bind-9.9.8-P4/lib/export/dns/Makefile.in.orig 2016-02-29 00:30:52.000000000 +0000
+++ bind/bind-9.9.8-P4/lib/export/dns/Makefile.in
@@ -168,7 +168,8 @@ code.h: gen
./gen -s ${srcdir} > code.h
gen: ${srcdir}/gen.c
- ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o $@ ${srcdir}/gen.c ${LIBS}
+ ${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \
+ ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} -o $@ ${srcdir}/gen.c ${BUILD_LIBS}
#We don't need rbtdb64 for this library
#rbtdb64.@O@: rbtdb.c
@@ -1,42 +1,34 @@ | @@ -1,42 +1,34 @@ | |||
1 | $NetBSD: patch-common_dlpi.c,v 1.2 2014/02/09 04:34:31 taca Exp $ | 1 | $NetBSD: patch-common_dlpi.c,v 1.3 2016/03/30 15:55:44 taca Exp $ | |
2 | 2 | |||
3 | Add support for Crossbow style NICs (SunOS). | 3 | Add support for Crossbow style NICs (SunOS). | |
4 | 4 | |||
5 | --- common/dlpi.c.orig 2014-01-31 19:19:59.000000000 +0000 | 5 | --- common/dlpi.c.orig 2016-03-22 13:16:51.000000000 +0000 | |
6 | +++ common/dlpi.c | 6 | +++ common/dlpi.c | |
7 | @@ -131,6 +131,7 @@ static int strioctl (int fd, int cmd, in | 7 | @@ -778,14 +778,26 @@ static int dlpiunit (ifname) | |
8 | #define DLPI_MAXDLBUF 8192 /* Buffer size */ | |||
9 | #define DLPI_MAXDLADDR 1024 /* Max address size */ | |||
10 | #define DLPI_DEVDIR "/dev/" /* Device directory */ | |||
11 | +#define DLPI_DEVDIR_NEW "/dev/net/" /* Crossbow Device directory */ | |||
12 | ||||
13 | static int dlpiopen(const char *ifname); | |||
14 | static int dlpiunit (char *ifname); | |||
15 | @@ -773,14 +774,26 @@ static int dlpiunit (ifname) | |||
16 | */ | 8 | */ | |
17 | static int | 9 | static int | |
18 | dlpiopen(const char *ifname) { | 10 | dlpiopen(const char *ifname) { | |
19 | - char devname [50]; | 11 | - char devname [50]; | |
20 | + char devname [MAXPATHLEN]; | 12 | + char devname [MAXPATHLEN]; | |
21 | char *dp; | 13 | char *dp; | |
22 | const char *cp, *ep; | 14 | const char *cp, *ep; | |
23 | + int fd; | 15 | + int fd; | |
24 | 16 | |||
25 | if (!ifname) { | 17 | if (!ifname) { | |
26 | return -1; | 18 | return -1; | |
27 | } | 19 | } | |
28 | 20 | |||
29 | + /* Try Crossbow Device Path */ | 21 | + /* Try Crossbow Device Path */ | |
30 | + if (ifname[0] == '/') { | 22 | + if (ifname[0] == '/') { | |
31 | + fd = open (ifname, O_RDWR, 0); | 23 | + fd = open (ifname, O_RDWR, 0); | |
32 | + } else { | 24 | + } else { | |
33 | + snprintf(devname, MAXPATHLEN, "%s%s", DLPI_DEVDIR_NEW, ifname); | 25 | + snprintf(devname, MAXPATHLEN, "%s%s", DLPI_DEVDIR, ifname); | |
34 | + fd = open (devname, O_RDWR, 0); | 26 | + fd = open (devname, O_RDWR, 0); | |
35 | + } | 27 | + } | |
36 | + if (fd != -1 || errno != ENOENT) { | 28 | + if (fd != -1 || errno != ENOENT) { | |
37 | + return fd; | 29 | + return fd; | |
38 | + } | 30 | + } | |
39 | + | 31 | + | |
40 | /* Open a DLPI device */ | 32 | /* Open a DLPI device */ | |
41 | if (*ifname == '/') { | 33 | if (*ifname == '/') { | |
42 | dp = devname; | 34 | dp = devname; |