Skip to content

Commit

Permalink
Upgrade to 9.3.1, the latest version from ISC. This version contains
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Doug Barton authored and Doug Barton committed Mar 13, 2005
1 parent 038b441 commit 8f80a0e
Show file tree
Hide file tree
Showing 12 changed files with 92 additions and 128 deletions.
33 changes: 19 additions & 14 deletions dns/bind9/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,36 @@
# 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 \
--with-randomdev=/dev/random

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
Expand Down Expand Up @@ -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 \
Expand All @@ -121,4 +126,4 @@ post-install:

@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
.include <bsd.port.mk>
12 changes: 4 additions & 8 deletions dns/bind9/distinfo
Original file line number Diff line number Diff line change
@@ -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
10 changes: 0 additions & 10 deletions dns/bind9/files/patch-bin_named_Makefile.in

This file was deleted.

33 changes: 19 additions & 14 deletions dns/bind94/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,36 @@
# 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 \
--with-randomdev=/dev/random

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
Expand Down Expand Up @@ -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 \
Expand All @@ -121,4 +126,4 @@ post-install:

@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
.include <bsd.port.mk>
12 changes: 4 additions & 8 deletions dns/bind94/distinfo
Original file line number Diff line number Diff line change
@@ -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
10 changes: 0 additions & 10 deletions dns/bind94/files/patch-bin_named_Makefile.in

This file was deleted.

33 changes: 19 additions & 14 deletions dns/bind95/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,36 @@
# 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 \
--with-randomdev=/dev/random

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
Expand Down Expand Up @@ -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 \
Expand All @@ -121,4 +126,4 @@ post-install:

@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
.include <bsd.port.mk>
12 changes: 4 additions & 8 deletions dns/bind95/distinfo
Original file line number Diff line number Diff line change
@@ -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
10 changes: 0 additions & 10 deletions dns/bind95/files/patch-bin_named_Makefile.in

This file was deleted.

33 changes: 19 additions & 14 deletions dns/bind96/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,36 @@
# 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 \
--with-randomdev=/dev/random

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
Expand Down Expand Up @@ -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 \
Expand All @@ -121,4 +126,4 @@ post-install:

@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
.include <bsd.port.mk>
12 changes: 4 additions & 8 deletions dns/bind96/distinfo
Original file line number Diff line number Diff line change
@@ -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
10 changes: 0 additions & 10 deletions dns/bind96/files/patch-bin_named_Makefile.in

This file was deleted.

0 comments on commit 8f80a0e

Please sign in to comment.