summaryrefslogtreecommitdiff
path: root/dns/nsd/scripts/configure.nsd
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2005-02-07 21:51:13 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2005-02-07 21:51:13 +0000
commit2926ccd9e637bafff0c35a6e9dbf37795151e5a5 (patch)
treec98a26939471146d2fd68a473c91eb10b255568f /dns/nsd/scripts/configure.nsd
parentFix INDEX build. (diff)
[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>
Notes
Notes: svn path=/head/; revision=128246
Diffstat (limited to '')
-rw-r--r--dns/nsd/scripts/configure.nsd86
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