Skip to content

Commit

Permalink
add rc.d/lwresd
Browse files Browse the repository at this point in the history
  • Loading branch information
itojun committed Feb 4, 2001
1 parent 2272c76 commit 7d4ab2d
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 4 deletions.
6 changes: 5 additions & 1 deletion net/bind9-current/Makefile
Original file line number Diff line number Diff line change
@@ -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}
Expand Down Expand Up @@ -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

Expand All @@ -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"
16 changes: 16 additions & 0 deletions net/bind9-current/files/lwresd.sh
Original file line number Diff line number Diff line change
@@ -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"
3 changes: 2 additions & 1 deletion net/bind9-current/pkg/PLIST
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 5 additions & 1 deletion net/bind9/Makefile
Original file line number Diff line number Diff line change
@@ -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}
Expand Down Expand Up @@ -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
Expand All @@ -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"
16 changes: 16 additions & 0 deletions net/bind9/files/lwresd.sh
Original file line number Diff line number Diff line change
@@ -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"
3 changes: 2 additions & 1 deletion net/bind9/pkg/PLIST
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7d4ab2d

Please sign in to comment.