Add an rc.d style script (using the one from -current).
Sort PLIST.
This commit is contained in:
parent
2e147b387e
commit
f2d3428fbb
3 changed files with 37 additions and 16 deletions
|
@ -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"
|
||||
|
|
18
net/gated/files/gated
Normal file
18
net/gated/files/gated
Normal file
|
@ -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"
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue