summaryrefslogtreecommitdiff
path: root/net/bind9/files
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-10 17:30:26 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-10 17:30:26 +0000
commita5ba8b25f8a1dabf8d3d54b2b679898538b544af (patch)
treedc887383fd0a77af4ea56fa21f783dd185d420e0 /net/bind9/files
parent698c9b7c5c83d13cab0d2e8b61d2d0aca00fa20a (diff)
downloadpkgsrc-a5ba8b25f8a1dabf8d3d54b2b679898538b544af.tar.gz
Retire bind9.
Diffstat (limited to 'net/bind9/files')
-rw-r--r--net/bind9/files/lwresd.sh18
-rw-r--r--net/bind9/files/named9.sh56
2 files changed, 0 insertions, 74 deletions
diff --git a/net/bind9/files/lwresd.sh b/net/bind9/files/lwresd.sh
deleted file mode 100644
index 51369b6f693..00000000000
--- a/net/bind9/files/lwresd.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-#
-# $NetBSD: lwresd.sh,v 1.2 2002/09/23 14:40:51 grant Exp $
-#
-# PROVIDE: lwresd
-# REQUIRE: SERVERS
-
-. /etc/rc.subr
-
-name="lwresd"
-rcvar=${name}
-command="@PREFIX@/sbin/${name}"
-pidfile="/var/run/${name}.pid"
-
-extra_commands="reload"
-
-load_rc_config ${name} # check /etc/rc.conf.d/named9
-run_rc_command "$1"
diff --git a/net/bind9/files/named9.sh b/net/bind9/files/named9.sh
deleted file mode 100644
index 5859eb3ec5a..00000000000
--- a/net/bind9/files/named9.sh
+++ /dev/null
@@ -1,56 +0,0 @@
-#!@RCD_SCRIPTS_SHELL@
-#
-# $NetBSD: named9.sh,v 1.4 2009/12/11 16:21:21 taca Exp $
-#
-
-# PROVIDE: named
-# REQUIRE: SERVERS
-# BEFORE: DAEMON
-# KEYWORD: chrootdir
-
-. /etc/rc.subr
-
-name="named"
-rcvar="${name}9"
-command="@PREFIX@/sbin/${name}"
-pidfile="/var/run/${name}.pid"
-start_precmd="named_precmd"
-extra_commands="reload"
-required_dirs="$named_chrootdir" # if it is set, it must exist
-
-named_precmd()
-{
- # Die if $named is also set (i.e. the system's named is not disabled
- if checkyesno named ; then
- warn \
- "disable 'named' when setting 'named9'!"
- return 1
- fi
-
- if [ -z "$named_chrootdir" ]; then
- return 0;
- fi
-
- for i in null random
- do
- if [ ! -c "${named_chrootdir}/dev/$i" ]; then
- @RM@ -f "${named_chrootdir}/dev/$i"
- (cd /dev &&
- @PAX@ -rw -pe "$i" "${named_chrootdir}/dev")
- fi
- done
-
- if [ -f /etc/localtime ]; then
- @CMP@ -s /etc/localtime "${named_chrootdir}/etc/localtime" || \
- @CP@ -p /etc/localtime "${named_chrootdir}/etc/localtime"
- fi
- @RM@ -f ${pidfile}
- @LN@ -s "${named_chrootdir}${pidfile}" ${pidfile}
-
- # Change run_rc_commands()'s internal copy of $named_flags
- #
- rc_flags="-u @BIND_USER@ -t ${named_chrootdir} $rc_flags"
-}
-
-load_rc_config "$rcvar"
-run_rc_command "$1"