aboutsummaryrefslogtreecommitdiffstats
path: root/dns/nsd
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-09-13 04:17:15 +0800
committermiwi <miwi@FreeBSD.org>2006-09-13 04:17:15 +0800
commit60936734f2a97382938b7a05f0fa89a4ef45c7b3 (patch)
tree6181fecaf03f61d46692ae1588ce993d9b250c99 /dns/nsd
parent965d13953d66cb428458abfcd210ef4517483799 (diff)
downloadfreebsd-ports-gnome-60936734f2a97382938b7a05f0fa89a4ef45c7b3.tar.gz
freebsd-ports-gnome-60936734f2a97382938b7a05f0fa89a4ef45c7b3.tar.zst
freebsd-ports-gnome-60936734f2a97382938b7a05f0fa89a4ef45c7b3.zip
- Update to 3.0.1
- Changed to OPTIONS - Added a warning for those using NSD_OPTIONS PR: ports/103196 Submitted by: Olafur Osvaldsson <oli(at)isnic.is> (maintainer)
Diffstat (limited to 'dns/nsd')
-rw-r--r--dns/nsd/Makefile103
-rw-r--r--dns/nsd/distinfo6
-rw-r--r--dns/nsd/pkg-plist5
-rw-r--r--dns/nsd/scripts/configure.nsd86
4 files changed, 78 insertions, 122 deletions
diff --git a/dns/nsd/Makefile b/dns/nsd/Makefile
index 6c60c89fbd66..5bc4c946bfe0 100644
--- a/dns/nsd/Makefile
+++ b/dns/nsd/Makefile
@@ -5,15 +5,8 @@
# $FreeBSD$
#
-# To pre-select options in batch mode, run make like this:
-#
-# make -DBATCH NSD_OPTIONS="ROOT_SERVER BIND8_STATS"
-#
-# the options are the same names as in the scripts/configure.nsd file.
-# NSD_OPTIONS can be set in /etc/make.conf also.
-
PORTNAME= nsd
-PORTVERSION= 2.3.5
+PORTVERSION= 3.0.1
CATEGORIES= dns ipv6
MASTER_SITES= http://www.nlnetlabs.nl/downloads/nsd/ \
ftp://ftp.rhnet.is/pub/nsd/
@@ -40,42 +33,90 @@ SED_SCRIPT= -e 's,%%NSDUSER%%,${NSDUSER},g' \
-e 's,%%PREFIX%%,${PREFIX},g' \
-e 's,%%RC_SUBR%%,${RC_SUBR},g'
-MAN8= nsd.8 zonec.8 nsdc.8 nsd-notify.8 nsd-xfer.8
+MAN5= nsd.conf.5
+MAN8= nsd.8 nsdc.8 zonec.8 nsd-checkconf.8 nsd-notify.8 nsd-patch.8 \
+ nsd-xfer.8
+
+PORTDOCS= CREDITS ChangeLog LICENSE NSD-DATABASE NSD-DIFFFILE \
+ NSD-FOR-BIND-USERS README README.icc RELNOTES \
+ REQUIREMENTS TESTPLAN TODO UPGRADING coding-style \
+ differences.tex
+
+OPTIONS= ROOT_SERVER "Configure NSD as a root server" Off \
+ LARGEFILE "Enable support for large files" On \
+ IPV6 "Enable IPv6 support" On \
+ DNSSEC "Enable DNSSEC" On \
+ BIND8_STATS "Enable BIND8 like NSTATS & XSTATS" Off \
+ CHECKING "Enable internal runtime checks" Off \
+ TSIG "Enable TSIG support" On \
+ NSEC3 "Enable NSEC3 support" Off \
+ NSID "Enable NSID support" Off \
+ DOCFILES "Enable PORTDOCS" On
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_ROOT_SERVER)
+CONFIGURE_ARGS+= --enable-root-server
+.endif
+
+.if defined(WITHOUT_LARGEFILE)
+CONFIGURE_ARGS+= --disable-largefile
+.endif
+
+.if defined(WITHOUT_IPV6)
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
+
+.if defined(WITHOUT_DNSSEC)
+CONFIGURE_ARGS+= --disable-dnssec
+.endif
-PORTDOCS= README RELNOTES CREDITS DIFFERENCES REQUIREMENTS
+.if defined(WITH_BIND8_STATS)
+CONFIGURE_ARGS+= --enable-bind8-stats
+.endif
-SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
- TOUCH="${TOUCH}" \
- MKDIR="${MKDIR}" \
- NSD_OPTIONS="${NSD_OPTIONS}"
+.if defined(WITH_CHECKING)
+CONFIGURE_ARGS+= --enable-checking
+.endif
-pre-fetch:
- @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.nsd
+.if defined(WITHOUT_TSIG)
+CONFIGURE_ARGS+= --disable-tsig
+.endif
-.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
-.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
+.if defined(WITH_NSEC3)
+CONFIGURE_ARGS+= --enable-nsec3
.endif
-.if defined(NOPORTDOCS)
-READMEDIR=no
-.else
-READMEDIR=${PREFIX}/share/doc/nsd
+.if defined(WITH_NSID)
+CONFIGURE_ARGS+= --enable-nsid
+.endif
+
+pre-patch:
+.if defined(NSD_OPTIONS)
+ @${ECHO_MSG}
+ @${ECHO_MSG}
+ @${ECHO_MSG}
+ @${ECHO_MSG} "***** ALERT *****"
+ @${ECHO_MSG} "NSD_OPTIONS is no longer supported,"
+ @${ECHO_MSG} "${PORTNAME} uses OPTIONS, consider running"
+ @${ECHO_MSG} "# make config"
+ @${ECHO_MSG}
+ @${ECHO_MSG}
+ @${ECHO_MSG}
+ @sleep 10
.endif
post-install:
${SED} ${SED_SCRIPT} < ${FILESDIR}/nsd.sh.tmpl >${WRKDIR}/nsd.sh
-.if !defined(NOPORTDOCS)
+ ${INSTALL_DATA} ${WRKSRC}/nsd.conf.sample \
+ ${NSDDIR}/nsd.conf.sample
+ ${INSTALL_SCRIPT} ${WRKDIR}/nsd.sh ${PREFIX}/etc/rc.d/
+.if !defined(WITHOUT_DOCFILES)
@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}/${f}
.endfor
.endif
- ${INSTALL_DATA} ${WRKSRC}/nsd.zones.sample \
- ${PREFIX}/etc/nsd/nsd.zones.sample
- ${INSTALL_SCRIPT} ${WRKDIR}/nsd.sh ${PREFIX}/etc/rc.d/
@${CAT} ${PKGMESSAGE}
-post-clean:
- @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
-
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/dns/nsd/distinfo b/dns/nsd/distinfo
index 538db6b3b7db..f79ab7256608 100644
--- a/dns/nsd/distinfo
+++ b/dns/nsd/distinfo
@@ -1,3 +1,3 @@
-MD5 (nsd-2.3.5.tar.gz) = e9dfb18d544cd37c57b05a91384037e9
-SHA256 (nsd-2.3.5.tar.gz) = cd16d3bbce2be200fb9fdbde20753642fe4f318b16e15528e953038a787fc6e2
-SIZE (nsd-2.3.5.tar.gz) = 239147
+MD5 (nsd-3.0.1.tar.gz) = 32932bc73b73fa267b232088931f412a
+SHA256 (nsd-3.0.1.tar.gz) = b19a3de2e6ab8b3316a34005287ef3138fe2e46bbe3d625aa636feb4a2ebfed9
+SIZE (nsd-3.0.1.tar.gz) = 403190
diff --git a/dns/nsd/pkg-plist b/dns/nsd/pkg-plist
index 1f13a4c52ae2..5a2d4d35a9f7 100644
--- a/dns/nsd/pkg-plist
+++ b/dns/nsd/pkg-plist
@@ -1,10 +1,11 @@
@comment $FreeBSD$
etc/rc.d/nsd.sh
-etc/nsd/nsd.zones.sample
-etc/nsd/nsdc.conf.sample
+etc/nsd/nsd.conf.sample
sbin/nsd
sbin/zonec
sbin/nsdc
sbin/nsd-notify
+sbin/nsd-checkconf
+sbin/nsd-patch
sbin/nsd-xfer
@dirrm etc/nsd
diff --git a/dns/nsd/scripts/configure.nsd b/dns/nsd/scripts/configure.nsd
deleted file mode 100644
index 8e82c7ee9ec2..000000000000
--- a/dns/nsd/scripts/configure.nsd
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/bin/sh
-# $FreeBSD$
-
-if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
- exit
-fi
-
-tempfile=`mktemp -t checklist`
-
-if [ "${NSD_OPTIONS}" ]; then
- set ${NSD_OPTIONS}
-fi
-
-for i; do
- eval status_$i=ON
-done
-
-if [ -z "${BATCH}" ]; then
- /usr/bin/dialog --title "NSD configuration options" --clear \
- --checklist "\n\
-Please select desired options:" -1 -1 16 \
-ROOT_SERVER "Configure NSD as a root server" "$status_ROOT_SERVER" \
-NOIPv6 "Disable IPv6 support" "$status_NOIPv6" \
-NODNSSEC "Disable DNSSEC" "$status_NODNSSEC" \
-NOAXFR "Disable AXFR" "$status_NOAXFR" \
-BIND8_STATS "Enable BIND8 like NSTATS & XSTATS" "$status_BIND8_STATS" \
-PLUGINS "Enable plugin support" "$status_PLUGINS" \
-NOTSIG "Disable TSIG support" "$status_NOTSIG" \
-MMAP "Configure NSD to load the database using mmap(2)" "$status_MMAP" \
-2> $tempfile
-
- retval=$?
-
- if [ -s $tempfile ]; then
- set `sed 's/"//g' $tempfile`
- fi
- rm -f $tempfile
-
- case $retval in
- 0) if [ -z "$*" ]; then
- echo "Nothing selected"
- fi
- ;;
- 1) echo "Cancel pressed."
- exit 1
- ;;
- esac
-fi
-
-${MKDIR} ${WRKDIRPREFIX}${CURDIR}
-exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
-
-while [ "$1" ]; do
- case $1 in
- ROOT_SERVER)
- echo "CONFIGURE_ARGS+= --enable-root-server"
- ;;
- NOIPv6)
- echo "CONFIGURE_ARGS+= --disable-ipv6"
- ;;
- NODNSSEC)
- echo "CONFIGURE_ARGS+= --disable-dnssec"
- ;;
- NOAXFR)
- echo "CONFIGURE_ARGS+= --disable-axfr"
- ;;
- BIND8_STATS)
- echo "CONFIGURE_ARGS+= --enable-bind8-stats"
- ;;
- PLUGINS)
- echo "CONFIGURE_ARGS+= --enable-plugins"
- ;;
- NOTSIG)
- echo "CONFIGURE_ARGS+= --disable-tsig"
- ;;
- MMAP)
- echo "CONFIGURE_ARGS+= --enable-mmap"
- ;;
- *)
- echo "Unknown option(s): $*" > /dev/stderr
- rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- exit 1
- ;;
- esac
- shift
-done