Subject: pkg/24034: update net/nsd etc.
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <ishit@pluto.dti.ne.jp>
List: netbsd-bugs
Date: 01/09/2004 21:45:01
>Number:         24034
>Category:       pkg
>Synopsis:       update net/nsd etc.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 09 21:46:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     ISIHARA Takanori
>Release:        NetBSD/macppc 1.6.2_RC3
>Organization:
Nagoya *BSD Users' group :-)
>Environment:
NetBSD search.jkcc.gr.jp 1.6.2_RC3 NetBSD 1.6.2_RC3 (SEARCH) #3: Tue Dec  2 17:33:46 JST 2003     root@search.jkcc.gr.jp:/data/src/sys/arch/macppc/compile/SEARCH macppc

>Description:
* update 1.2.2 -> 1.2.3
* improvement(?)
** README etc. install
** NetBSD User useful setting

>How-To-Repeat:

>Fix:
cd /usr/pkgsrc/net
diff -uNr nsd.orig nsd

^-----
diff -uNr nsd.orig/Makefile nsd/Makefile
--- nsd.orig/Makefile	Tue Jul 29 07:38:26 2003
+++ nsd/Makefile	Sat Jan 10 05:55:16 2004
@@ -1,6 +1,6 @@
 # $NetBSD: Makefile,v 1.16 2003/07/28 22:38:26 itojun Exp $
 
-DISTNAME=	nsd-1.2.2
+DISTNAME=	nsd-1.2.3
 CATEGORIES=	net
 MASTER_SITES=	http://www.nlnetlabs.nl/downloads/nsd/
 
@@ -8,8 +8,34 @@
 HOMEPAGE=	http://www.nlnetlabs.nl/nsd/index.html
 COMMENT=	Authoritative-only DNS server
 
+BUILD_DEFS+=            USE_INET6
+
 GNU_CONFIGURE=	yes
+USE_BUILDLINK2=	yes
+
+.include "../../mk/bsd.prefs.mk"
+
+CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+=	--enable-bind8-stats
+CONFIGURE_ARGS+=        --with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers}
+.if defined(USE_INET6)
+CONFIGURE_ARGS+=	--enable-ipv6
+.endif
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ARGS+=        --with-pidfile=/var/run/nsd.pid
+CONFIGURE_ARGS+=        --with-user=named
+CONFIGURE_ARGS+=        --with-namedxfer=/usr/libexec/named-xfer
+.endif
 
-CONFIGURE_ARGS=	--sysconfdir=${PKG_SYSCONFDIR}
+post-install:
+	${INSTALL_DATA_DIR} ${PREFIX}/share/nsd
+	${INSTALL_DATA_DIR} ${PREFIX}/share/nsd/contrib
+.for FILE in README RELNOTES
+	${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/share/nsd
+.endfor
+.for FILE in README build-nsdzones.pl build-nsdzones.pl.README example-plugin.c
+	${INSTALL_DATA} ${WRKSRC}/contrib/${FILE} ${PREFIX}/share/nsd/contrib
+.endfor
 
+.include "../../security/tcp_wrappers/buildlink2.mk"
 .include "../../mk/bsd.pkg.mk"
diff -uNr nsd.orig/PLIST nsd/PLIST
--- nsd.orig/PLIST	Thu Aug 29 01:05:50 2002
+++ nsd/PLIST	Sat Jan 10 06:00:05 2004
@@ -1,8 +1,20 @@
-@comment $NetBSD: PLIST,v 1.2 2002/08/28 16:05:50 itojun Exp $
+@comment $NetBSD$
+etc/nsd/nsd.zones.sample
+etc/nsd/nsdc.conf.sample
+man/man8/nsd-notify.8
+man/man8/nsd.8
+man/man8/nsdc.8
+man/man8/zonec.8
 sbin/nsd
 sbin/nsd-notify
 sbin/nsdc
 sbin/zonec
-man/man8/nsd.8
-man/man8/nsdc.8
-man/man8/zonec.8
+share/nsd/README
+share/nsd/RELNOTES
+share/nsd/contrib/README
+share/nsd/contrib/build-nsdzones.pl
+share/nsd/contrib/build-nsdzones.pl.README
+share/nsd/contrib/example-plugin.c
+@dirrm share/nsd/contrib
+@dirrm share/nsd
+@dirrm etc/nsd
diff -uNr nsd.orig/distinfo nsd/distinfo
--- nsd.orig/distinfo	Tue Jul 29 07:38:26 2003
+++ nsd/distinfo	Sat Jan 10 04:58:44 2004
@@ -1,4 +1,4 @@
 $NetBSD: distinfo,v 1.11 2003/07/28 22:38:26 itojun Exp $
 
-SHA1 (nsd-1.2.2.tar.gz) = a3eb9dec6bd291936926eb26ec2b0bd8e161617d
-Size (nsd-1.2.2.tar.gz) = 140569 bytes
+SHA1 (nsd-1.2.3.tar.gz) = be1541c21340205415af3df53de6120324a133da
+Size (nsd-1.2.3.tar.gz) = 140913 bytes
-----$

>Release-Note:
>Audit-Trail:
>Unformatted: