diff options
author | hubertf <hubertf> | 2001-01-26 04:25:36 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2001-01-26 04:25:36 +0000 |
commit | 4a3d10801630880ea369b255fc6cb1b4db824d6d (patch) | |
tree | db38f0f89c8c8d400d565cd62270b644a682e7cd /net | |
parent | 35ec1bd702d2f0c6c0bb886442403fdabc4b90b3 (diff) | |
download | pkgsrc-4a3d10801630880ea369b255fc6cb1b4db824d6d.tar.gz |
Add a startup script
Diffstat (limited to 'net')
-rw-r--r-- | net/bind9/Makefile | 8 | ||||
-rw-r--r-- | net/bind9/files/named.sh | 28 | ||||
-rw-r--r-- | net/bind9/pkg/DESCR | 3 | ||||
-rw-r--r-- | net/bind9/pkg/PLIST | 3 |
4 files changed, 40 insertions, 2 deletions
diff --git a/net/bind9/Makefile b/net/bind9/Makefile index 4168327740e..1eeaad481bc 100644 --- a/net/bind9/Makefile +++ b/net/bind9/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2001/01/18 13:12:04 itojun Exp $ +# $NetBSD: Makefile,v 1.19 2001/01/26 04:25:36 hubertf Exp $ # DISTNAME= bind-${BIND_VERSION} @@ -24,6 +24,11 @@ CONFIGURE_ARGS+=--with-mit-pthreads \ --localstatedir=/var LDFLAGS+= -Wl,-R${LOCALBASE}/pthreads/lib -L${LOCALBASE}/pthreads/lib +post-build: + ${SED} \ + -e 's|@PREFIX@|${PREFIX}|' \ + <${FILESDIR}/named.sh >${WRKDIR}/named + post-install: ${MKDIR} ${PREFIX}/share/doc/bind9 ${MKDIR} ${PREFIX}/share/doc/bind9/arm @@ -39,5 +44,6 @@ post-install: ${INSTALL_MAN} ${WRKSRC}/doc/man/bin/*.5 ${PREFIX}/man/man5 ${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 .include "../../mk/bsd.pkg.mk" diff --git a/net/bind9/files/named.sh b/net/bind9/files/named.sh new file mode 100644 index 00000000000..ed0fb29088b --- /dev/null +++ b/net/bind9/files/named.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +# PROVIDE: named +# REQUIRE: SERVERS + +. /etc/rc.subr + +name="named" +rcvar=${name}9 +command="@PREFIX@/sbin/${name}" +pidfile="/var/run/${name}.pid" + +extra_commands="reload" + +load_rc_config ${name}9 # check /etc/rc.conf.d/named9 + +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 +} +start_precmd="named_precmd" + +run_rc_command "$1" diff --git a/net/bind9/pkg/DESCR b/net/bind9/pkg/DESCR index c311081809b..c7a4c2deb27 100644 --- a/net/bind9/pkg/DESCR +++ b/net/bind9/pkg/DESCR @@ -12,3 +12,6 @@ necessitated by the expected demands of: The 9.0.0 release, and this release candidate, is aimed at early adopters and those who wish to make use of new 9.0 features, such as IPv6 and DNSSEC secure resolution support. + +** Set "named9=yes" and "named=no" in /etc/rc.conf to use the +** startup script! diff --git a/net/bind9/pkg/PLIST b/net/bind9/pkg/PLIST index fd07f55b0fc..57c3226bf5a 100644 --- a/net/bind9/pkg/PLIST +++ b/net/bind9/pkg/PLIST @@ -1,9 +1,10 @@ -@comment $NetBSD: PLIST,v 1.11 2001/01/18 13:12:07 itojun Exp $ +@comment $NetBSD: PLIST,v 1.12 2001/01/26 04:25:37 hubertf Exp $ bin/dig bin/host bin/isc-config.sh bin/nslookup bin/nsupdate +etc/rc.d/named include/dns/a6.h include/dns/acl.h include/dns/adb.h |