summaryrefslogtreecommitdiff
path: root/net/gated
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-04-05 16:58:49 +0000
committerwiz <wiz@pkgsrc.org>2001-04-05 16:58:49 +0000
commitf2d3428fbb394c4a378b5df5d66dd71151761242 (patch)
tree1dff70e0d25160e3d69c54f91df805ac3f6b0ef0 /net/gated
parent2e147b387ef4bbe4c2f3dc7906ba8a8a84141ab6 (diff)
downloadpkgsrc-f2d3428fbb394c4a378b5df5d66dd71151761242.tar.gz
Add an rc.d style script (using the one from -current).
Sort PLIST.
Diffstat (limited to 'net/gated')
-rw-r--r--net/gated/Makefile5
-rw-r--r--net/gated/files/gated18
-rw-r--r--net/gated/pkg/PLIST30
3 files changed, 37 insertions, 16 deletions
diff --git a/net/gated/Makefile b/net/gated/Makefile
index ae7bcbdd2eb..e98a846d806 100644
--- a/net/gated/Makefile
+++ b/net/gated/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2001/02/17 18:18:53 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2001/04/05 16:58:49 wiz Exp $
# FreeBSD Id: Makefile,v 1.17 1998/04/26 18:47:12 peter Exp
#
@@ -22,6 +22,8 @@ ALL_TARGET= gated
post-extract:
@${SED} -e 's#@PREFIX@#${PREFIX}#' <${FILESDIR}/configuration \
>${WRKSRC}/src/configs/netbsd
+ ${SED} -e "s,@PREFIX@,${PREFIX}," ${FILESDIR}/gated \
+ > ${WRKDIR}/gated
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gated
@@ -29,5 +31,6 @@ post-install:
${GTAR} pcf - . | ( cd ${PREFIX}/share/doc/gated ; ${GTAR} pvxf - )
${CHOWN} -R ${SHAREOWN} ${PREFIX}/share/doc/gated
${CHGRP} -R ${SHAREGRP} ${PREFIX}/share/doc/gated
+ ${INSTALL_SCRIPT} ${WRKDIR}/gated ${PREFIX}/etc/rc.d
.include "../../mk/bsd.pkg.mk"
diff --git a/net/gated/files/gated b/net/gated/files/gated
new file mode 100644
index 00000000000..e0c6bc568cb
--- /dev/null
+++ b/net/gated/files/gated
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $NetBSD: gated,v 1.1 2001/04/05 16:58:50 wiz Exp $
+#
+
+# PROVIDE: gated
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="@PREFIX@/sbin/gated"
+rcvar=$name
+command="/usr/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+required_files="/etc/${name}.conf"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/net/gated/pkg/PLIST b/net/gated/pkg/PLIST
index 6d039470306..017f50791d4 100644
--- a/net/gated/pkg/PLIST
+++ b/net/gated/pkg/PLIST
@@ -1,19 +1,12 @@
-@comment $NetBSD: PLIST,v 1.3 1999/11/19 13:23:52 hubertf Exp $
-man/man8/gated.8.gz
-man/man8/ripquery.8.gz
-man/man8/ospf_monitor.8.gz
-man/man8/gdc.8.gz
-sbin/gated
-bin/ripquery
-bin/ospf_monitor
+@comment $NetBSD: PLIST,v 1.4 2001/04/05 16:58:50 wiz Exp $
bin/gdc
-share/doc/gated/logo.gif
-share/doc/gated/copyright-isis.html
-share/doc/gated/copyright-ospf.html
-share/doc/gated/copyright.html
-share/doc/gated/note.gif
-share/doc/gated/main.html
-share/doc/gated/warning.gif
+bin/ospf_monitor
+bin/ripquery
+man/man8/gated.8
+man/man8/gdc.8
+man/man8/ospf_monitor.8
+man/man8/ripquery.8
+sbin/gated
share/doc/gated/config_guide/aggr_stmt.html
share/doc/gated/config_guide/aspath.html
share/doc/gated/config_guide/bgp_stmt.html
@@ -51,7 +44,12 @@ share/doc/gated/config_guide/snmp_stmt.html
share/doc/gated/config_guide/statements.html
share/doc/gated/config_guide/static_stmt.html
share/doc/gated/config_guide/trace.html
+share/doc/gated/copyright-isis.html
+share/doc/gated/copyright-ospf.html
+share/doc/gated/copyright.html
share/doc/gated/installation_guide/installation.html
+share/doc/gated/logo.gif
+share/doc/gated/main.html
share/doc/gated/member_info/licenses/advisory.html
share/doc/gated/member_info/licenses/commercial_v4.html
share/doc/gated/member_info/licenses/commercial_v4_new.html
@@ -88,11 +86,13 @@ share/doc/gated/member_info/membership/small_commercial.member.html
share/doc/gated/member_info/membership/small_service.member.html
share/doc/gated/member_info/membership/supporting.member.html
share/doc/gated/member_info/membership/technical_advisory.member.html
+share/doc/gated/note.gif
share/doc/gated/operation_guide/gated.html
share/doc/gated/operation_guide/gdc.html
share/doc/gated/operation_guide/operation.html
share/doc/gated/operation_guide/ospf_monitor.html
share/doc/gated/operation_guide/ripquery.html
+share/doc/gated/warning.gif
@dirrm share/doc/gated/config_guide
@dirrm share/doc/gated/installation_guide
@dirrm share/doc/gated/member_info/licenses