ports/104469: [NEW PORT] dns/nsd2: An authoritative only non-recursive name server

Olafur Osvaldsson oli at isnic.is
Mon Oct 16 15:10:19 UTC 2006


>Number:         104469
>Category:       ports
>Synopsis:       [NEW PORT] dns/nsd2: An authoritative only non-recursive name server
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 16 15:10:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Olafur Osvaldsson
>Release:        FreeBSD 5.4-RELEASE-p6 i386
>Organization:
ISNIC
>Environment:
System: FreeBSD aker.isnic.is 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #7: Wed Aug 23 15:43:16 UTC 2006
>Description:
I decided to submit a port of NSD version 2 since there are still quite alot of
people that are using it regardless of the version 3 upgrade.

I can maintain this as well as dns/nsd

---

NSD (Name Server Daemon) is a complete implementation of an
authoritative DNS nameserver.

WWW:	http://www.nlnetlabs.nl/nsd

>How-To-Repeat:
>Fix:

--- nsd-2.3.6.shar begins here ---
# 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:
#
#	nsd2
#	nsd2/files
#	nsd2/files/nsd.sh.tmpl
#	nsd2/Makefile
#	nsd2/distinfo
#	nsd2/pkg-descr
#	nsd2/pkg-message
#	nsd2/pkg-plist
#
echo c - nsd2
mkdir -p nsd2 > /dev/null 2>&1
echo c - nsd2/files
mkdir -p nsd2/files > /dev/null 2>&1
echo x - nsd2/files/nsd.sh.tmpl
sed 's/^X//' >nsd2/files/nsd.sh.tmpl << 'END-of-nsd2/files/nsd.sh.tmpl'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# PROVIDE: nsd
X# REQUIRE: DAEMON
X#
X# Add the following line to /etc/rc.conf to enable nsd:
X#
X# nsd_enable="YES"
X#
X
X. %%RC_SUBR%%
X
Xname=nsd
Xrcvar=`set_rcvar`
X
Xprefix=%%PREFIX%%
X
Xrequired_files=%%NSDDIR%%/nsd.zones
X
Xcommand=/usr/local/sbin/${name}
Xpidfile=/var/run/${name}.pid
X
X# set defaults
X
Xnsd_enable=${nsd_enable:-"NO"}
Xnsd_flags=${nsd_flags:-""}
X
Xload_rc_config ${name}
Xrun_rc_command "$1"
X
END-of-nsd2/files/nsd.sh.tmpl
echo x - nsd2/Makefile
sed 's/^X//' >nsd2/Makefile << 'END-of-nsd2/Makefile'
X# New ports collection makefile for:	nsd2
X# Date created:				16 October 2006
X# Whom:					oli at isnic.is
X#
X# $FreeBSD$
X#
X
XPORTNAME=	nsd
XPORTVERSION=	2.3.6
XCATEGORIES=	dns ipv6
XMASTER_SITES=	http://www.nlnetlabs.nl/downloads/nsd/	\
X		ftp://ftp.rhnet.is/pub/nsd/
X
XMAINTAINER=	oli at isnic.is
XCOMMENT=	An authoritative only non-recursive name server
X
XUSE_RC_SUBR=	yes
X
XNSDUSER?=	bind
XNSDDIR?=	${PREFIX}/etc/nsd
XNSDDBFILE?=	/var/db/nsd.database
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--with-user=${NSDUSER} \
X		--with-configdir=${NSDDIR} \
X		--with-pidfile=/var/run/nsd.pid \
X		--with-dbfile=${NSDDBFILE} \
X		--with-libwrap
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
X
XSED_SCRIPT=	-e 's,%%NSDUSER%%,${NSDUSER},g' \
X		-e 's,%%NSDDIR%%,${NSDDIR},g' \
X		-e 's,%%PREFIX%%,${PREFIX},g' \
X		-e 's,%%RC_SUBR%%,${RC_SUBR},g'
X
XMAN8=	nsd.8 nsdc.8 zonec.8 nsd-notify.8 nsd-xfer.8
X
XPORTDOCS=	CREDITS LICENSE NSD-DATABASE README README.icc \
X		RELNOTES REQUIREMENTS TODO
X
XOPTIONS=	ROOT_SERVER	"Configure NSD as a root server" Off \
X		IPV6		"Enable IPv6 support" On \
X		DNSSEC		"Enable DNSSEC" On \
X		AXFR		"Enable AXFR" On \
X		BIND8_STATS	"Enable BIND8 like NSTATS & XSTATS" Off \
X		NSID		"Enable NSID support" Off \
X		PLUGINS		"Enable plugin support" Off \
X		CHECKING	"Enable internal runtime checks" Off \
X		TSIG		"Enable TSIG support" On \
X		MMAP		"Load database using mmap(2)" Off \
X		DOCFILES	"Enable PORTDOCS" On
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_ROOT_SERVER)
XCONFIGURE_ARGS+=	--enable-root-server
X.endif
X
X.if defined(WITHOUT_IPV6)
XCONFIGURE_ARGS+=	--disable-ipv6
X.endif
X
X.if defined(WITHOUT_DNSSEC)
XCONFIGURE_ARGS+=	--disable-dnssec
X.endif
X
X.if defined(WITHOUT_AXFR)
XCONFIGURE_ARGS+=	--disable-axfr
X.endif
X
X.if defined(WITH_BIND8_STATS)
XCONFIGURE_ARGS+=	--enable-bind8-stats
X.endif
X
X.if defined(WITH_NSID)
XCONFIGURE_ARGS+=	--enable-nsid
X.endif
X
X.if defined(WITH_PLUGINS)
XCONFIGURE_ARGS+=	--enable-plugins
X.endif
X
X.if defined(WITH_CHECKING)
XCONFIGURE_ARGS+=	--enable-checking
X.endif
X
X.if defined(WITHOUT_TSIG)
XCONFIGURE_ARGS+=	--disable-tsig
X.endif
X
X.if defined(WITH_MMAP)
XCONFIGURE_ARGS+=	--enable-mmap
X.endif
X
Xpost-install:
X	${SED} ${SED_SCRIPT} < ${FILESDIR}/nsd.sh.tmpl >${WRKDIR}/nsd.sh
X	${INSTALL_DATA} ${WRKSRC}/nsd.zones.sample \
X		${NSDDIR}/nsd.zones.sample
X	${INSTALL_SCRIPT} ${WRKDIR}/nsd.sh ${PREFIX}/etc/rc.d/
X.if !defined(WITHOUT_DOCFILES)
X	@${MKDIR} ${DOCSDIR}
X.for f in ${PORTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/${f}
X.endfor
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-nsd2/Makefile
echo x - nsd2/distinfo
sed 's/^X//' >nsd2/distinfo << 'END-of-nsd2/distinfo'
XMD5 (nsd-2.3.6.tar.gz) = 72428cdacc5bee63b4477becda27bf64
XSHA256 (nsd-2.3.6.tar.gz) = 9f90c4bd250c536a0d3cd1ef3f2814a446d5cf4c19d5093b363de81eca8b56d4
XSIZE (nsd-2.3.6.tar.gz) = 244341
END-of-nsd2/distinfo
echo x - nsd2/pkg-descr
sed 's/^X//' >nsd2/pkg-descr << 'END-of-nsd2/pkg-descr'
XNSD (Name Server Daemon) is a complete implementation of an
Xauthoritative DNS nameserver.
X
XWWW:	http://www.nlnetlabs.nl/nsd
END-of-nsd2/pkg-descr
echo x - nsd2/pkg-message
sed 's/^X//' >nsd2/pkg-message << 'END-of-nsd2/pkg-message'
X**************************************************************************
X*                                                                        *
X*   To run nsd from startup, add nsd_enable="YES" to your /etc/rc.conf   *
X*                                                                        *
X**************************************************************************
END-of-nsd2/pkg-message
echo x - nsd2/pkg-plist
sed 's/^X//' >nsd2/pkg-plist << 'END-of-nsd2/pkg-plist'
X at comment $FreeBSD$
Xetc/rc.d/nsd.sh
Xetc/nsd/nsd.zones.sample
Xsbin/nsd
Xsbin/zonec
Xsbin/nsdc
Xsbin/nsd-notify
Xsbin/nsd-xfer
X at dirrm etc/nsd
END-of-nsd2/pkg-plist
exit
--- nsd-2.3.6.shar ends here ---

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



More information about the freebsd-ports-bugs mailing list