summaryrefslogtreecommitdiff
path: root/net/bind9-current
diff options
context:
space:
mode:
authoritojun <itojun>2001-02-04 12:19:24 +0000
committeritojun <itojun>2001-02-04 12:19:24 +0000
commitb1aa67f76cb71af4b2f8bc13d961df703d83e962 (patch)
treeed2eb364d8ccee37c28e3608be97fb8f260cf10c /net/bind9-current
parent0a6c794e08aaa9b127b15f01d65b985e4ba9cb6d (diff)
downloadpkgsrc-b1aa67f76cb71af4b2f8bc13d961df703d83e962.tar.gz
add rc.d/lwresd
Diffstat (limited to 'net/bind9-current')
-rw-r--r--net/bind9-current/Makefile6
-rw-r--r--net/bind9-current/files/lwresd.sh16
-rw-r--r--net/bind9-current/pkg/PLIST3
3 files changed, 23 insertions, 2 deletions
diff --git a/net/bind9-current/Makefile b/net/bind9-current/Makefile
index c67818f994b..1715c32b262 100644
--- a/net/bind9-current/Makefile
+++ b/net/bind9-current/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2001/02/04 11:15:43 itojun Exp $
+# $NetBSD: Makefile,v 1.13 2001/02/04 12:19:25 itojun Exp $
#
DISTNAME= bind-${BIND_VERSION}
@@ -32,6 +32,9 @@ post-build:
${SED} \
-e 's|@PREFIX@|${PREFIX}|' \
<${FILESDIR}/named.sh >${WRKDIR}/named
+ ${SED} \
+ -e 's|@PREFIX@|${PREFIX}|' \
+ <${FILESDIR}/lwresd.sh >${WRKDIR}/lwresd
PLIST_SRC= ${WRKDIR}/PLIST
@@ -50,5 +53,6 @@ post-install:
(cd ${PREFIX}; ${FIND} share/doc/bind9 -type f -print ) >> ${PLIST_SRC}
(cd ${PREFIX}; ${FIND} share/doc/bind9 -type d -print ) | ${SED} -e 's/^/@dirrm /' | sort -r >> ${PLIST_SRC}
${INSTALL_DATA} ${WRKDIR}/named ${PREFIX}/etc/rc.d/named9
+ ${INSTALL_DATA} ${WRKDIR}/lwresd ${PREFIX}/etc/rc.d/lwresd
.include "../../mk/bsd.pkg.mk"
diff --git a/net/bind9-current/files/lwresd.sh b/net/bind9-current/files/lwresd.sh
new file mode 100644
index 00000000000..be6edfe1d70
--- /dev/null
+++ b/net/bind9-current/files/lwresd.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# 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-current/pkg/PLIST b/net/bind9-current/pkg/PLIST
index 26b63818394..6ecf4052854 100644
--- a/net/bind9-current/pkg/PLIST
+++ b/net/bind9-current/pkg/PLIST
@@ -1,9 +1,10 @@
-@comment $NetBSD: PLIST,v 1.5 2001/02/04 10:40:00 itojun Exp $
+@comment $NetBSD: PLIST,v 1.6 2001/02/04 12:19:27 itojun Exp $
bin/dig
bin/host
bin/isc-config.sh
bin/nslookup
bin/nsupdate
+etc/rc.d/lwresd
etc/rc.d/named9
include/dns/a6.h
include/dns/acl.h