summaryrefslogtreecommitdiff
path: root/net/bind9
diff options
context:
space:
mode:
authoritojun <itojun@pkgsrc.org>2001-02-04 12:19:24 +0000
committeritojun <itojun@pkgsrc.org>2001-02-04 12:19:24 +0000
commit7d4ab2d6c1370bd8e7d12f880035b8633e65342c (patch)
treeed2eb364d8ccee37c28e3608be97fb8f260cf10c /net/bind9
parent2272c767b7d1a0f414448fff505f70c1134efb80 (diff)
downloadpkgsrc-7d4ab2d6c1370bd8e7d12f880035b8633e65342c.tar.gz
add rc.d/lwresd
Diffstat (limited to 'net/bind9')
-rw-r--r--net/bind9/Makefile6
-rw-r--r--net/bind9/files/lwresd.sh16
-rw-r--r--net/bind9/pkg/PLIST3
3 files changed, 23 insertions, 2 deletions
diff --git a/net/bind9/Makefile b/net/bind9/Makefile
index 8c386ceda5d..2265989c48b 100644
--- a/net/bind9/Makefile
+++ b/net/bind9/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2001/01/31 04:07:36 hubertf Exp $
+# $NetBSD: Makefile,v 1.24 2001/02/04 12:19:24 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
post-install:
${MKDIR} ${PREFIX}/share/doc/bind9
@@ -49,5 +52,6 @@ post-install:
${INSTALL_MAN} ${WRKSRC}/doc/man/bin/*.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/man/dnssec/*.8 ${PREFIX}/man/man8
${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/files/lwresd.sh b/net/bind9/files/lwresd.sh
new file mode 100644
index 00000000000..be6edfe1d70
--- /dev/null
+++ b/net/bind9/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/pkg/PLIST b/net/bind9/pkg/PLIST
index d629e9dba29..8555fa16b7c 100644
--- a/net/bind9/pkg/PLIST
+++ b/net/bind9/pkg/PLIST
@@ -1,10 +1,11 @@
-@comment $NetBSD: PLIST,v 1.14 2001/01/31 04:07:37 hubertf Exp $
+@comment $NetBSD: PLIST,v 1.15 2001/02/04 12:19:25 itojun Exp $
bin/dig
bin/host
bin/isc-config.sh
bin/nslookup
bin/nsupdate
etc/rc.d/named9
+etc/rc.d/lwresd
include/dns/a6.h
include/dns/acl.h
include/dns/adb.h