pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/nsd Update nsd to 3.0.5:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f978737783b4
branches:  trunk
changeset: 532118:f978737783b4
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Aug 11 23:48:40 2007 +0000

description:
Update nsd to 3.0.5:

NOTE: the configuration file format has changed. Don't update blindly.

Major changes:
- integrated AXFR/IXFR support for zone transfer. IXFR is not supported
  when acting as master.
- TSIG authentication support for queries, notifies and zone transfers.
- full NOTIFY support
- DNAME type is supported
- experimental support for NSEC3 and NSID, not enabled in pkgsrc
- various bug fixes.

diffstat:

 net/nsd/MESSAGE          |   9 +++++----
 net/nsd/Makefile         |  39 ++++++++++++++++++++-------------------
 net/nsd/PLIST            |  23 ++++++++---------------
 net/nsd/distinfo         |  10 +++++-----
 net/nsd/files/nsd.sh     |   4 +---
 net/nsd/patches/patch-aa |  19 ++++++++-----------
 6 files changed, 47 insertions(+), 57 deletions(-)

diffs (193 lines):

diff -r 941f389419da -r f978737783b4 net/nsd/MESSAGE
--- a/net/nsd/MESSAGE   Sat Aug 11 23:22:44 2007 +0000
+++ b/net/nsd/MESSAGE   Sat Aug 11 23:48:40 2007 +0000
@@ -1,7 +1,8 @@
 ===========================================================================
-$NetBSD: MESSAGE,v 1.1 2005/11/05 21:27:53 joerg Exp $
+$NetBSD: MESSAGE,v 1.2 2007/08/11 23:48:40 joerg Exp $
 
-The default location of the NSD database has moved to
-${VARBASE}/db/nsd.db. This location can be overriden by -f for nsd
-and in ${SYSCONFDIR}/nsd/nsdc.conf for nsdc.
+The configuration format of nsd has changed between 2.x and 3.x.
+A sample Python script to help migrating the old nsd.zones format
+into the new nsd.conf can be found in share/examples/nsd.
+
 ===========================================================================
diff -r 941f389419da -r f978737783b4 net/nsd/Makefile
--- a/net/nsd/Makefile  Sat Aug 11 23:22:44 2007 +0000
+++ b/net/nsd/Makefile  Sat Aug 11 23:48:40 2007 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.38 2006/07/03 13:33:59 joerg Exp $
+# $NetBSD: Makefile,v 1.39 2007/08/11 23:48:40 joerg Exp $
 
-DISTNAME=      nsd-2.3.5
+DISTNAME=      nsd-3.0.5
 CATEGORIES=    net
 MASTER_SITES=  http://www.nlnetlabs.nl/downloads/nsd/
 
@@ -8,14 +8,18 @@
 HOMEPAGE=      http://www.nlnetlabs.nl/nsd/index.html
 COMMENT=       Authoritative-only DNS server
 
-BUILD_DEFS+=   USE_INET6
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+BUILD_DEFS+=   USE_INET6 VARBASE
 BUILDLINK_API_DEPENDS.openssl+=        openssl>=0.9.7
 
 .include "../../mk/bsd.prefs.mk"
 
 GNU_CONFIGURE= yes
 
-CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFDIR:Q}
+PKG_SYSCONFSUBDIR=     nsd
+
+CONFIGURE_ARGS+=--with-configdir=${PKG_SYSCONFDIR:Q}
 CONFIGURE_ARGS+=--enable-bind8-stats
 CONFIGURE_ARGS+=--with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers}
 .if !defined(USE_INET6)
@@ -23,29 +27,26 @@
 .endif
 
 CONFIGURE_ARGS+=--with-pidfile=${VARBASE}/run/nsd.pid
-CONFIGURE_ARGS+=--with-user=nsd
+CONFIGURE_ARGS+=--with-user=${NSD_USER}
 CONFIGURE_ARGS+=--with-dbfile=${VARBASE}/db/nsd.db
+CONFIGURE_ARGS+=--with-difffile=${VARBASE}/db/nsd-ixfr.db
+CONFIGURE_ARGS+=--with-xfrdfile=${VARBASE}/db/nsd-xfrd.state
 CONFIGURE_ARGS+=--with-ssl=${BUILDLINK_PREFIX.openssl}
 
 RCD_SCRIPTS=   nsd
-FILES_SUBST+=  NSDDB=${VARBASE}/db/nsd.db
+
+NSD_USER?=     nsd
+NSD_GROUP?=    nsd
 
-PKG_GROUPS?=   nsd
-PKG_USERS?=    nsd:nsd
+PKG_GROUPS=    ${NSD_GROUP}
+PKG_USERS=     ${NSD_USER}:${NSD_GROUP}
 
-.for _file_ in nsd.zones nsdc.conf
-CONF_FILES+=   ${EXAMPLEDIR}/${_file_} ${PKG_SYSCONFDIR}/nsd/${_file_}
-.endfor
+CONF_FILES+=   share/examples/nsd/nsd.conf ${PKG_SYSCONFDIR}/nsd.conf
+
+INSTALLATION_DIRS=     share/examples/nsd
 
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/nsd
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/nsd/contrib
-.for FILE in README RELNOTES DIFFERENCES LICENSE NSD-DATABASE TODO
-       ${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
+       ${INSTALL_DATA} ${WRKSRC}/contrib/nsd.zones2nsd.conf ${DESTDIR}${PREFIX}/share/examples/nsd
 
 .include "../../security/tcp_wrappers/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
diff -r 941f389419da -r f978737783b4 net/nsd/PLIST
--- a/net/nsd/PLIST     Sat Aug 11 23:22:44 2007 +0000
+++ b/net/nsd/PLIST     Sat Aug 11 23:48:40 2007 +0000
@@ -1,27 +1,20 @@
-@comment $NetBSD: PLIST,v 1.8 2005/11/06 16:36:48 joerg Exp $
+@comment $NetBSD: PLIST,v 1.9 2007/08/11 23:48:40 joerg Exp $
+man/man5/nsd.conf.5
+man/man8/nsd-checkconf.8
 man/man8/nsd-notify.8
+man/man8/nsd-patch.8
 man/man8/nsd-xfer.8
 man/man8/nsd.8
 man/man8/nsdc.8
 man/man8/zonec.8
 sbin/nsd
+sbin/nsd-checkconf
 sbin/nsd-notify
+sbin/nsd-patch
 sbin/nsd-xfer
 sbin/nsdc
 sbin/zonec
-share/examples/nsd/nsd.zones
-share/examples/nsd/nsdc.conf
 share/examples/rc.d/nsd
-share/nsd/DIFFERENCES
-share/nsd/LICENSE
-share/nsd/NSD-DATABASE
-share/nsd/README
-share/nsd/RELNOTES
-share/nsd/TODO
-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
+share/examples/nsd/nsd.conf
+share/examples/nsd/nsd.zones2nsd.conf
 @dirrm share/examples/nsd
diff -r 941f389419da -r f978737783b4 net/nsd/distinfo
--- a/net/nsd/distinfo  Sat Aug 11 23:22:44 2007 +0000
+++ b/net/nsd/distinfo  Sat Aug 11 23:48:40 2007 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.20 2006/07/03 13:33:59 joerg Exp $
+$NetBSD: distinfo,v 1.21 2007/08/11 23:48:40 joerg Exp $
 
-SHA1 (nsd-2.3.5.tar.gz) = 99d3e0a763700ffa130082bb7955ddb6fa1ad5d7
-RMD160 (nsd-2.3.5.tar.gz) = 7844faee0593bc67c8008d8c1140b1998ceb4945
-Size (nsd-2.3.5.tar.gz) = 239147 bytes
-SHA1 (patch-aa) = 65bac2ea618750ab629142c2c85cdfbc846e19e3
+SHA1 (nsd-3.0.5.tar.gz) = e6b433e0017d51b8c3f31897053d6c7718957627
+RMD160 (nsd-3.0.5.tar.gz) = 6d5a8ae0068dcab5ea55fd07b6e57444f47a9900
+Size (nsd-3.0.5.tar.gz) = 789687 bytes
+SHA1 (patch-aa) = 81b820eb4f2056ab85cad16b7dc526f1ba2737aa
diff -r 941f389419da -r f978737783b4 net/nsd/files/nsd.sh
--- a/net/nsd/files/nsd.sh      Sat Aug 11 23:22:44 2007 +0000
+++ b/net/nsd/files/nsd.sh      Sat Aug 11 23:48:40 2007 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: nsd.sh,v 1.1 2005/11/05 21:27:53 joerg Exp $
+# $NetBSD: nsd.sh,v 1.2 2007/08/11 23:48:40 joerg Exp $
 #
 # PROVIDE: nsd
 # REQUIRE: DAEMON
@@ -11,8 +11,6 @@
 name="nsd"
 rcvar=${name}
 
-required_files="@PKG_SYSCONFDIR@/nsd/nsd.zones @NSDDB@"
-
 command=/usr/pkg/sbin/${name}
 pidfile=/var/run/${name}.pid
 
diff -r 941f389419da -r f978737783b4 net/nsd/patches/patch-aa
--- a/net/nsd/patches/patch-aa  Sat Aug 11 23:22:44 2007 +0000
+++ b/net/nsd/patches/patch-aa  Sat Aug 11 23:48:40 2007 +0000
@@ -1,16 +1,13 @@
-$NetBSD: patch-aa,v 1.10 2006/07/03 13:34:00 joerg Exp $
+$NetBSD: patch-aa,v 1.11 2007/08/11 23:48:40 joerg Exp $
 
---- Makefile.in.orig   2006-05-08 09:26:05.000000000 +0000
+--- Makefile.in.orig   2007-08-12 00:06:16.000000000 +0200
 +++ Makefile.in
-@@ -173,8 +173,9 @@ install: all
-       $(INSTALL_DATA) zonec.8 $(DESTDIR)$(mandir)/man8
-       $(INSTALL_DATA) nsd-notify.8 $(DESTDIR)$(mandir)/man8/nsd-notify.8
-       $(INSTALL_DATA) nsd-xfer.8 $(DESTDIR)$(mandir)/man8/nsd-xfer.8
--      $(INSTALL_DATA) nsdc.conf.sample $(DESTDIR)$(configfile).sample
--      $(INSTALL_DATA) nsd.zones.sample $(DESTDIR)$(zonesfile).sample
-+      mkdir -p $(prefix)/share/examples/nsd
-+      $(INSTALL_DATA) nsdc.conf.sample $(prefix)/share/examples/nsd/nsdc.conf
-+      $(INSTALL_DATA) nsd.zones.sample $(prefix)/share/examples/nsd/nsd.zones
+@@ -328,7 +328,7 @@ install: all
+       $(INSTALL_DATA) $(srcdir)/nsd-patch.8 $(DESTDIR)$(mandir)/man8/nsd-patch.8
+       $(INSTALL_DATA) $(srcdir)/nsd-xfer.8 $(DESTDIR)$(mandir)/man8/nsd-xfer.8
+       $(INSTALL_DATA) $(srcdir)/nsd.conf.5 $(DESTDIR)$(mandir)/man5/nsd.conf.5
+-      $(INSTALL_DATA) nsd.conf.sample $(DESTDIR)$(nsdconfigfile).sample
++      $(INSTALL_DATA) nsd.conf.sample $(DESTDIR)${PREFIX}/share/examples/nsd/nsd.conf
  
  uninstall:
        @echo



Home | Main Index | Thread Index | Old Index