--- /usr/ports/dns/nsd/work/nsd-2.3.3/nsdc.sh	Tue May 23 14:05:13 2006
+++ ./nsdc.sh.in	Mon Dec  5 10:05:47 2005
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!@shell@
 #
 # nsdc.sh -- a shell script to manage the beast
 #
@@ -9,25 +9,25 @@
 #
 
 # Optional configuration file for nsdc
-configfile="/usr/local/etc/nsd/nsdc.conf"
+configfile="@configfile@"
 
 #
 # Default values in absense of ${configfile} (Usually ``/etc/nsd/nsdc.conf'')
 #
-prefix="/usr/local"
-exec_prefix="/usr/local"
+prefix="@prefix@"
+exec_prefix="@exec_prefix@"
 
-sbindir="/usr/local/sbin"
-zonesdir="/usr/local/etc/nsd"
+sbindir="@sbindir@"
+zonesdir="@zonesdir@"
 flags=""
-dbfile="/var/db/nsd.database"
-zonesfile="/usr/local/etc/nsd/nsd.zones"
-keysdir="/usr/local/etc/nsd/keys"
-notify="/usr/local/sbin/nsd-notify"
-nsdxfer="/usr/local/sbin/nsd-xfer"
+dbfile="@dbfile@"
+zonesfile="@zonesfile@"
+keysdir="@configdir@/keys"
+notify="@sbindir@/nsd-notify"
+nsdxfer="@sbindir@/nsd-xfer"
 nsdxfer_flags=""
-pidfile="/var/run/nsd.pid"
-lockfile="/var/db/nsd.database.lock"
+pidfile="@pidfile@"
+lockfile="@dbfile@.lock"
 
 ZONEC_VERBOSE=-v
 
@@ -181,15 +181,11 @@
 	fi
 
 	# read the nsd.zones file
-	while read zonekw zone file notify_src_kw notify_src notifykw slaves
+	while read zonekw zone file notifykw slaves
 	do	
 		if [ "X$zonekw" = "Xzone" -a "X$notifykw" = "Xnotify" ]
 		then
-			if [ "X$notify_src_kw" = "Xnotify-source" ]
-			then
-				notify_opts="-a $notify_src"
-			fi
-			$notify $notify_opts -z "$zone" $slaves
+			$notify -z "$zone" $slaves
 		fi
 	done < $zonesfile
 	;;
