aboutsummaryrefslogtreecommitdiff
path: root/dns/bind96
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2005-03-13 10:52:52 +0000
committerDoug Barton <dougb@FreeBSD.org>2005-03-13 10:52:52 +0000
commit8f80a0e30ecef81230cbeacfb7f7f428f51d7dba (patch)
treec35ae587aab59325ce8177249ceb019e70784733 /dns/bind96
parent038b441c1e0d29b4833d86fa401906cf87683f48 (diff)
downloadports-8f80a0e30ecef81230cbeacfb7f7f428f51d7dba.tar.gz
ports-8f80a0e30ecef81230cbeacfb7f7f428f51d7dba.zip
Upgrade to 9.3.1, the latest version from ISC. This version contains
several important fixes, including a remote (although unlikely) exploit. See the CHANGES file for details. All users of BIND 9 are highly encouraged to upgrade to this version. Changes to the port include: 1. Remove ISC patch to 9.3.0 that addressed the remote exploit 2. Change to OPTIONS, and thereby 3. --enable-threads is now the default. Users report that the new thread code in 9.3.x works significantly better than the old on all versions of FreeBSD. 4. Add a temporary shim for the old PORT_REPLACES_BASE_BIND9 option. The OPTIONS framework requires knobs to start with WITH_ or WITHOUT_ 5. Remove patch that shoehorned named.conf.5 into the right place, it has been fixed in the code.
Notes
Notes: svn path=/head/; revision=131083
Diffstat (limited to 'dns/bind96')
-rw-r--r--dns/bind96/Makefile33
-rw-r--r--dns/bind96/distinfo12
-rw-r--r--dns/bind96/files/patch-bin_named_Makefile.in10
3 files changed, 23 insertions, 32 deletions
diff --git a/dns/bind96/Makefile b/dns/bind96/Makefile
index 6b430e243906..bc120919033b 100644
--- a/dns/bind96/Makefile
+++ b/dns/bind96/Makefile
@@ -12,21 +12,19 @@
# release you can generally build it cleanly from the source - Doug
PORTNAME= bind9
-PORTVERSION= 9.3.0
-PORTREVISION= 1
+PORTVERSION= 9.3.1
CATEGORIES= dns net ipv6
MASTER_SITES= ${MASTER_SITE_ISC}
MASTER_SITE_SUBDIR= bind9/${ISCVERSION}
DISTNAME= bind-${ISCVERSION}
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.asc \
- 9.3.0-patch1 9.3.0-patch1.asc
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.asc
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= DougB@FreeBSD.org
COMMENT= Completely new version of the BIND DNS suite with updated DNSSEC
# ISC releases things like 9.3.0rc1, which our versioning doesn't like
-ISCVERSION= 9.3.0
+ISCVERSION= 9.3.1
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var --disable-linux-caps --with-openssl \
@@ -34,15 +32,16 @@ CONFIGURE_ARGS= --localstatedir=/var --disable-linux-caps --with-openssl \
USE_OPENSSL= yes
-.include <bsd.port.pre.mk>
+OPTIONS= BIND9_THREADS "Support in 9.3.x is much improved" on \
+ PORT_REPLACES_BASE_BIND9 "Completely replace system BIND" off
-.if ${OSVERSION} >= 503000
+.if defined(WITH_BIND9_THREADS) || defined(PACKAGE_BUILDING)
CONFIGURE_ARGS+= --enable-threads
.else
CONFIGURE_ARGS+= --disable-threads
.endif
-.if defined(PORT_REPLACES_BASE_BIND9)
+.if defined(WITH_PORT_REPLACES_BASE_BIND9)
PKGNAMESUFFIX= -base
PREFIX= /usr
BIND_DESTETC= /etc/namedb
@@ -93,11 +92,17 @@ MAN5= named.conf.5 rndc.conf.5
MAN8= dnssec-keygen.8 dnssec-signzone.8 lwresd.8 named-checkconf.8 \
named-checkzone.8 named.8 nsupdate.8 rndc-confgen.8 rndc.8
-pre-patch:
- @${SED} -e 's#bind9/lib/dns/validator.c#lib/dns/validator.c#g' \
- ${DISTDIR}/9.3.0-patch1 > ${WRKDIR}/9.3.0-patch1
-
-EXTRA_PATCHES= ${WRKDIR}/9.3.0-patch1
+pre-fetch:
+.if defined(PORT_REPLACES_BASE_BIND9)
+ @${ECHO} ""
+ @${ECHO} "***************************************************"
+ @${ECHO} "Support for the old PORT_REPLACES_BASE_BIND9 option"
+ @${ECHO} "will be removed in future versions of the port."
+ @${ECHO} "***************************************************"
+ @${ECHO} ""
+ @/bin/sleep 5
+WITH_PORT_REPLACES_BASE_BIND9= true
+.endif
post-patch:
.for FILE in check/named-checkconf.8 named/named.8 nsupdate/nsupdate.8 \
@@ -121,4 +126,4 @@ post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/dns/bind96/distinfo b/dns/bind96/distinfo
index e9a0f2c27568..9ef13fa4101a 100644
--- a/dns/bind96/distinfo
+++ b/dns/bind96/distinfo
@@ -1,8 +1,4 @@
-MD5 (bind-9.3.0.tar.gz) = fdb42fff7e345372ac52a4493b77b694
-SIZE (bind-9.3.0.tar.gz) = 4730656
-MD5 (bind-9.3.0.tar.gz.asc) = 131e73f617c649652c6218826bdc92f8
-SIZE (bind-9.3.0.tar.gz.asc) = 186
-MD5 (9.3.0-patch1) = 90733dadf1487e035a8b94951e55fbb7
-SIZE (9.3.0-patch1) = 1019
-MD5 (9.3.0-patch1.asc) = 4c8072f375fa53e5ada4e0e4f67402c0
-SIZE (9.3.0-patch1.asc) = 187
+MD5 (bind-9.3.1.tar.gz) = 9ff3204eea27184ea0722f37e43fc95d
+SIZE (bind-9.3.1.tar.gz) = 4673603
+MD5 (bind-9.3.1.tar.gz.asc) = b2077443ade50ed778aa78a8014affaa
+SIZE (bind-9.3.1.tar.gz.asc) = 186
diff --git a/dns/bind96/files/patch-bin_named_Makefile.in b/dns/bind96/files/patch-bin_named_Makefile.in
deleted file mode 100644
index dad8893552e2..000000000000
--- a/dns/bind96/files/patch-bin_named_Makefile.in
+++ /dev/null
@@ -1,10 +0,0 @@
---- bin/named/Makefile.in.orig Sat Aug 21 07:22:40 2004
-+++ bin/named/Makefile.in Fri Sep 24 04:04:57 2004
-@@ -128,4 +128,6 @@
- install:: named@EXEEXT@ lwresd@EXEEXT@ installdirs
- ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named@EXEEXT@ ${DESTDIR}${sbindir}
- (cd ${DESTDIR}${sbindir}; rm -f lwresd@EXEEXT@; @LN@ named@EXEEXT@ lwresd@EXEEXT@)
-- for m in ${MANPAGES}; do ${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man8; done
-+ ${INSTALL_DATA} ${srcdir}/lwresd.8 ${DESTDIR}${mandir}/man8
-+ ${INSTALL_DATA} ${srcdir}/named.8 ${DESTDIR}${mandir}/man8
-+ ${INSTALL_DATA} ${srcdir}/named.conf.5 ${DESTDIR}${mandir}/man5