diff options
author | itojun <itojun@pkgsrc.org> | 2001-02-04 12:19:24 +0000 |
---|---|---|
committer | itojun <itojun@pkgsrc.org> | 2001-02-04 12:19:24 +0000 |
commit | 7d4ab2d6c1370bd8e7d12f880035b8633e65342c (patch) | |
tree | ed2eb364d8ccee37c28e3608be97fb8f260cf10c | |
parent | 2272c767b7d1a0f414448fff505f70c1134efb80 (diff) | |
download | pkgsrc-7d4ab2d6c1370bd8e7d12f880035b8633e65342c.tar.gz |
add rc.d/lwresd
-rw-r--r-- | net/bind9-current/Makefile | 6 | ||||
-rw-r--r-- | net/bind9-current/files/lwresd.sh | 16 | ||||
-rw-r--r-- | net/bind9-current/pkg/PLIST | 3 | ||||
-rw-r--r-- | net/bind9/Makefile | 6 | ||||
-rw-r--r-- | net/bind9/files/lwresd.sh | 16 | ||||
-rw-r--r-- | net/bind9/pkg/PLIST | 3 |
6 files changed, 46 insertions, 4 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 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 |