diff options
author | edwin <edwin@FreeBSD.org> | 2005-02-08 05:51:13 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2005-02-08 05:51:13 +0800 |
commit | 25c06fa777baecf7308b317f3cd41f9d19542ed8 (patch) | |
tree | 6ac2a0f53dd749003d9967bcf46138546891a2da /dns/nsd/scripts | |
parent | 8db8550bd13f7e8ef189690be75f12c5f4f0e423 (diff) | |
download | freebsd-ports-gnome-25c06fa777baecf7308b317f3cd41f9d19542ed8.tar.gz freebsd-ports-gnome-25c06fa777baecf7308b317f3cd41f9d19542ed8.tar.zst freebsd-ports-gnome-25c06fa777baecf7308b317f3cd41f9d19542ed8.zip |
[MAINTAINER] dns/nsd: update to 2.2.0
- Update to 2.2.0
With this release nsd no longer requires named-xfer to be
present on the system.
I also changed the options to a configure script.
Added file(s):
- scripts/configure.nsd
PR: ports/76412
Submitted by: Olafur Osvaldsson <oli@isnic.is>
Diffstat (limited to 'dns/nsd/scripts')
-rw-r--r-- | dns/nsd/scripts/configure.nsd | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/dns/nsd/scripts/configure.nsd b/dns/nsd/scripts/configure.nsd new file mode 100644 index 000000000000..f67ab73e5296 --- /dev/null +++ b/dns/nsd/scripts/configure.nsd @@ -0,0 +1,86 @@ +#!/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" \ +DNSSEC "Enable experimental DNSSEC support according to the latest drafts." "$status_DNSSEC" \ +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" + ;; + DNSSEC) + echo "CONFIGURE_ARGS+= --enable-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 |