Subject: pkg/8113: a package for those who need to upgrade to BIND-8.2.1 immediately
To: None <gnats-bugs@gnats.netbsd.org>
From: None <woods@weird.com>
List: netbsd-bugs
Date: 07/29/1999 00:55:35
>Number:         8113
>Category:       pkg
>Synopsis:       a package for those who need to upgrade to BIND-8.2.1 immediately
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 29 00:05:00 1999
>Last-Modified:
>Originator:     Greg A. Woods
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Release:        NetBSD-1.3.x and NetBSD-1.3I
>Environment:

NetBSD pkgsrc system....

>Description:

	Enclosed is a rough translation of the FreeBSD net/bind8 "port"
	to the NetBSD pkgsrc system.

	Note that I've installed the resolver stuff in $PREFIX/bind,
	which seems to be the best compromise at the moment....

	BIND-8.2.1 is really cool but it would be even nicer if the
	corresponding resolver code could easily be re-integrated into
	NetBSD too....

>How-To-Repeat:

	get a hankering to run a newer version of BIND....

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	Makefile
#	files
#	patches
#	pkg
#	files/md5
#	patches/patch-aa
#	patches/patch-ab
#	patches/patch-ac
#	pkg/COMMENT
#	pkg/DESCR
#	pkg/PLIST
#
echo x - Makefile
sed 's/^X//' >Makefile << 'END-of-Makefile'
X#
X# $FreeBSD: Makefile,v 1.12 1999/06/28 21:25:07 billf Exp $
X#ident "$NetBSD$"
X#
X# Adapted for NetBSD by Greg A. Woods <woods@planix.com>
X# July, 28, 1999
X#
X
XBIND_RELEASE=	8.2.1
XPKGNAME=	bind-${BIND_RELEASE}
XDISTNAME=	bind
XDIST_SUBDIR=	bind/${BIND_RELEASE}
XCATEGORIES=	net
XMASTER_SITES=	ftp://ftp.isc.org/isc/bind/src/${BIND_RELEASE}/
XDISTFILES=	${DISTNAME}-src.tar.gz ${DISTNAME}-doc.tar.gz
X
XMAINTAINER=	packages@NetBSD.org
X
XHOMEPAGE=	http://www.isc.org/bind.html
XY2K=		http://www.isc.org/y2k.html
X
XWRKSRC=		${WRKDIR}/src
X
XPATCH_ARGS=	-d ${WRKDIR}
XPATCH_DIST_ARGS=	-d ${WRKDIR}
X
Xpost-build:
X	@(cd ${WRKDIR}/doc/man && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} clean all)
X
Xpost-install:
X	@(cd ${WRKDIR}/doc/man && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
X	${MKDIR} ${PREFIX}/share/doc/bind8
X	${INSTALL_DATA} ${WRKDIR}/doc/html/* ${PREFIX}/share/doc/bind8
X
X.include "../../mk/bsd.pkg.mk"
END-of-Makefile
echo c - files
mkdir -p files > /dev/null 2>&1
echo c - patches
mkdir -p patches > /dev/null 2>&1
echo c - pkg
mkdir -p pkg > /dev/null 2>&1
echo x - files/md5
sed 's/^X//' >files/md5 << 'END-of-files/md5'
X$NetBSD$
X
XMD5 (bind/8.2.1/bind-src.tar.gz) = 449cad9c83d31c28179d3fa9dabd3a38
XMD5 (bind/8.2.1/bind-doc.tar.gz) = 52ba164906f8cb5d0fe1d06ceb5ac5db
END-of-files/md5
echo x - patches/patch-aa
sed 's/^X//' >patches/patch-aa << 'END-of-patches/patch-aa'
X+++ src/port/netbsd/Makefile.set	Wed Jul 28 20:02:07 1999
X@@ -1,11 +1,13 @@
X 'CC=cc'
X 'CDEBUG=-O2 -g'
X-'DESTBIN=/usr/bin'
X-'DESTSBIN=/usr/sbin'
X-'DESTEXEC=/usr/libexec'
X-'DESTMAN=/usr/share/man'
X-'DESTHELP=/usr/share/misc'
X-'DESTETC=/etc'
X+'DESTBIN=${PREFIX}/bin'
X+'DESTLIB=${PREFIX}/bind/lib'
X+'DESTINC=${PREFIX}/bind/include'
X+'DESTSBIN=${PREFIX}/sbin'
X+'DESTEXEC=${PREFIX}/libexec'
X+'DESTMAN=${PREFIX}/share/man'
X+'DESTHELP=${PREFIX}/share/misc'
X+'DESTETC=${PREFIX}/etc'
X 'DESTRUN=/var/run'
X 'LEX=lex -I'
X 'YACC=yacc -d'
END-of-patches/patch-aa
echo x - patches/patch-ab
sed 's/^X//' >patches/patch-ab << 'END-of-patches/patch-ab'
X+++ work.i386/doc/man/Makefile	Thu Jul 29 01:50:25 1999
X@@ -52,12 +52,12 @@
X # Target directory for the manual directory tree. Eg., may be used to 
X # specify the path of an NFS-mounted directory for common files.
X #
X-DESTDIR=
X+DESTDIR= ${PREFIX}
X 
X #
X # Default location for manual section directories.
X #
X-DESTMAN= /usr/share/man
X+DESTMAN= /share/man
X 
X #
X # Install manuals in ${MANDIR}N. For systems that generate catable manual 
X@@ -228,14 +228,12 @@
X #
X # User command manual entries
X #
X-CMD_BASE = 	dig host dnsquery dnskeygen
X+CMD_BASE = 	dig dnsquery dnskeygen
X CMD_SRC_EXT = 	1
X CMD_SRC = 	dig.${CMD_SRC_EXT} \
X-		host.${CMD_SRC_EXT} \
X 		dnsquery.${CMD_SRC_EXT} \
X 		dnskeygen.${CMD_SRC_EXT}
X CMD_OUT =	dig.${CMD_OUT_EXT} \
X-		host.${CMD_OUT_EXT} \
X 		dnsquery.${CMD_OUT_EXT} \
X 		dnskeygen.${CMD_OUT_EXT}
X 
X@@ -279,7 +277,7 @@
X # Network library routines manual entries
X #
X LIB_NETWORK_BASE =	gethostbyname inet_cidr resolver hesiod getnetent \
X-			tsig getaddrinfo inet_cidr
X+			tsig getaddrinfo
X LIB_NETWORK_SRC_EXT =	3
X LIB_NETWORK_SRC = 	gethostbyname.${LIB_NETWORK_SRC_EXT} \
X 			inet_cidr.${LIB_NETWORK_SRC_EXT} \
X@@ -353,9 +351,9 @@
X install:	${OUTFILES} \
X 		${DESTDIR}${DESTMAN}/${MANDIR}${CMD_EXT_DIR} \
X 		${DESTDIR}${DESTMAN}/${MANDIR}${SYS_OPS_EXT_DIR} \
X-		${DESTDIR}${DESTMAN}/${MANDIR}${LIB_NETWORK_EXT_DIR} \
X-		${DESTDIR}${DESTMAN}/${MANDIR}${FORMAT_EXT_DIR} \
X-		${DESTDIR}${DESTMAN}/${MANDIR}${DESC_EXT_DIR}
X+		${DESTDIR}/bind${DESTMAN}/${MANDIR}${LIB_NETWORK_EXT_DIR} \
X+		${DESTDIR}/bind${DESTMAN}/${MANDIR}${FORMAT_EXT_DIR} \
X+		${DESTDIR}/bind${DESTMAN}/${MANDIR}${DESC_EXT_DIR}
X 	@set -x; N=${CMD_EXT}; for f in ${CMD_BASE}; do \
X 		${INSTALL} -c -m 444 ${MAN_OWNER} ${MAN_GROUP} \
X 		$${f}.${CMD_OUT_EXT} \
X@@ -389,25 +387,25 @@
X 	@set -x; N=${LIB_NETWORK_EXT}; for f in ${LIB_NETWORK_BASE}; do \
X 		${INSTALL} -c -m 444 ${MAN_OWNER} ${MAN_GROUP} \
X 		$${f}.${LIB_NETWORK_OUT_EXT} \
X-		${DESTDIR}${DESTMAN}/${MANDIR}${LIB_NETWORK_EXT_DIR}/$${f}.${CATEXT}; \
X+		${DESTDIR}/bind${DESTMAN}/${MANDIR}${LIB_NETWORK_EXT_DIR}/$${f}.${CATEXT}; \
X 	done
X 	@set -x; N=${FORMAT_EXT}; for f in ${FORMAT_BASE}; do \
X 		${INSTALL} -c -m 444 ${MAN_OWNER} ${MAN_GROUP} \
X 		$${f}.${FORMAT_OUT_EXT} \
X-		${DESTDIR}${DESTMAN}/${MANDIR}${FORMAT_EXT_DIR}/$${f}.${CATEXT}; \
X+		${DESTDIR}/bind${DESTMAN}/${MANDIR}${FORMAT_EXT_DIR}/$${f}.${CATEXT}; \
X 	done
X 	@set -x; N=${DESC_EXT}; for f in ${DESC_BASE}; do \
X 		${INSTALL} -c -m 444 ${MAN_OWNER} ${MAN_GROUP} \
X 		$${f}.${DESC_OUT_EXT} \
X-		${DESTDIR}${DESTMAN}/${MANDIR}${DESC_EXT_DIR}/$${f}.${CATEXT}; \
X+		${DESTDIR}/bind${DESTMAN}/${MANDIR}${DESC_EXT_DIR}/$${f}.${CATEXT}; \
X 	done
X 
X ${DESTDIR}${DESTMAN}/${MANDIR}${CMD_EXT_DIR} \
X ${DESTDIR}${DESTMAN}/${MANDIR}${SYS_OPS_EXT_DIR} \
X-${DESTDIR}${DESTMAN}/${MANDIR}${LIB_NETWORK_EXT_DIR} \
X-${DESTDIR}${DESTMAN}/${MANDIR}${FORMAT_EXT_DIR} \
X-	mkdir $@
X+${DESTDIR}/bind${DESTMAN}/${MANDIR}${LIB_NETWORK_EXT_DIR} \
X+${DESTDIR}/bind${DESTMAN}/${MANDIR}${FORMAT_EXT_DIR} \
X+${DESTDIR}/bind${DESTMAN}/${MANDIR}${DESC_EXT_DIR}:
X+	mkdir -p $@
X 
X links: FRC
X 	@set -ex; ln -s SRC/*.[0-9] .
END-of-patches/patch-ab
echo x - patches/patch-ac
sed 's/^X//' >patches/patch-ac << 'END-of-patches/patch-ac'
X+++ src/bin/Makefile	Wed Jul 28 19:30:00 1999
X@@ -61,7 +61,7 @@
X 
X CFLAGS=	${CDEBUG} -I${PORTINCL} -I${INCL}
X 
X-SUBDIRS = addr nslookup dig dnsquery host named named-xfer ndc nsupdate \
X+SUBDIRS = addr nslookup dig dnsquery named named-xfer ndc nsupdate \
X 	mkservdb irpd dnskeygen named-bootconf
X 
X all: ${SUBDIRS}
END-of-patches/patch-ac
echo x - pkg/COMMENT
sed 's/^X//' >pkg/COMMENT << 'END-of-pkg/COMMENT'
XThe Berkeley Internet Name Daemon, an implementation of DNS.
END-of-pkg/COMMENT
echo x - pkg/DESCR
sed 's/^X//' >pkg/DESCR << 'END-of-pkg/DESCR'
XThe Berkeley Internet Name Daemon, an implementation of a DNS server and
Xresolver library.
X
XBIND Version 8.2.1 features include:
X
X	-> DNS Dynamic Updates (RFC 2136)
X	-> DNS Change Notification (RFC 1996)
X	-> RFC 2308 (Negative Caching)
X	-> RFC 2181 (DNS Clarifications)
X	-> RFC 2065 (DNS Security)
X	-> Completely new configuration syntax
X	-> Flexible, categorized logging system
X	-> IP-address-based access control for queries, zone transfers, and
X	   updates that may be specified on a zone-by-zone basis
X	-> More efficient zone transfers
X	-> Improved performance for servers with thousands of zones
X	   (including single-zone reloads)
X	-> The server no longer forks for outbound zone transfers
X	-> Many many many *important* (i.e. security), and minor, bug fixes
X	-> Much improved event and error logging facilities (including
X	   flexible categorized logging to different types of destinations)
X	-> TSIG (Transaction SIGnatures)
X	-> support for multiple virtual name servers
X	-> "Split DNS" via zone type "forward"
END-of-pkg/DESCR
echo x - pkg/PLIST
sed 's/^X//' >pkg/PLIST << 'END-of-pkg/PLIST'
Xbin/addr
Xbin/dig
Xbin/dnsquery
Xbin/mkservdb
Xbin/nslookup
Xbin/nsupdate
Xbind/include/arpa/inet.h
Xbind/include/arpa/nameser.h
Xbind/include/arpa/nameser_compat.h
Xbind/include/hesiod.h
Xbind/include/irp.h
Xbind/include/irs.h
Xbind/include/isc/assertions.h
Xbind/include/isc/dst.h
Xbind/include/isc/eventlib.h
Xbind/include/isc/heap.h
Xbind/include/isc/irpmarshall.h
Xbind/include/isc/list.h
Xbind/include/isc/logging.h
Xbind/include/isc/memcluster.h
Xbind/include/isc/misc.h
Xbind/include/isc/tree.h
Xbind/include/netdb.h
Xbind/include/resolv.h
Xbind/include/sys/bitypes.h
Xbind/lib/libbind.a
Xbind/lib/libbind_r.a
Xbind/share/man/cat3/getaddrinfo.0
Xbind/share/man/cat3/gethostbyname.0
Xbind/share/man/cat3/getnetent.0
Xbind/share/man/cat3/hesiod.0
Xbind/share/man/cat3/inet_cidr.0
Xbind/share/man/cat3/resolver.0
Xbind/share/man/cat3/tsig.0
Xbind/share/man/cat5/irs.conf.0
Xbind/share/man/cat5/named.conf.0
Xbind/share/man/cat5/resolver.0
Xbind/share/man/cat7/hostname.0
Xbind/share/man/cat7/mailaddr.0
Xlibexec/dnskeygen
Xlibexec/named-xfer
Xsbin/irpd
Xsbin/named
Xsbin/named-bootconf
Xsbin/ndc
Xshare/doc/bind8/acl.html
Xshare/doc/bind8/address_list.html
Xshare/doc/bind8/comments.html
Xshare/doc/bind8/config.html
Xshare/doc/bind8/controls.html
Xshare/doc/bind8/docdef.html
Xshare/doc/bind8/example.html
Xshare/doc/bind8/include.html
Xshare/doc/bind8/index.html
Xshare/doc/bind8/key.html
Xshare/doc/bind8/logging.html
Xshare/doc/bind8/master.html
Xshare/doc/bind8/options.html
Xshare/doc/bind8/server.html
Xshare/doc/bind8/trusted-keys.html
Xshare/doc/bind8/zone.html
Xshare/man/cat1/dig.0
Xshare/man/cat1/dnsquery.0
Xshare/man/cat1/dnskeygen.0
Xshare/man/cat8/named.0
Xshare/man/cat8/named-bootconf.0
Xshare/man/cat8/named-xfer.0
Xshare/man/cat8/ndc.0
Xshare/man/cat8/nslookup.0
Xshare/man/cat8/nsupdate.0
Xshare/misc/nslookup.help
X@dirrm bind/include/arpa
X@dirrm bind/include/isc
X@dirrm bind/include/sys
X@dirrm bind/include
X@dirrm bind/lib
X@dirrm bind/share/man/cat3
X@dirrm bind/share/man/cat5
X@dirrm bind/share/man/cat7
X@dirrm bind/share/man
X@dirrm bind/share
X@dirrm bind
X@dirrm share/doc/bind8
END-of-pkg/PLIST
exit

>Audit-Trail:
>Unformatted: