diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2007-08-29 08:32:26 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2007-08-29 08:32:26 +0000 |
commit | 0c3fa6d6e39a0674f777f3b690247a752281e0c6 (patch) | |
tree | fda52a2516750e4228cd0b600da6136473cbcb11 /net-mgmt/ndpmon | |
parent | 464462167e162b55a1dd0fbbdd49b04ca6db02f8 (diff) | |
download | ports-0c3fa6d6e39a0674f777f3b690247a752281e0c6.tar.gz ports-0c3fa6d6e39a0674f777f3b690247a752281e0c6.zip |
- Add rc script
PR: ports/115793 (based on)
Submitted by: Janos Mohacsi <janos.mohacsi at bsd.hu> (maintainer)
Notes
Notes:
svn path=/head/; revision=198484
Diffstat (limited to 'net-mgmt/ndpmon')
-rw-r--r-- | net-mgmt/ndpmon/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/ndpmon/files/ndpmonitor.in | 23 |
2 files changed, 25 insertions, 0 deletions
diff --git a/net-mgmt/ndpmon/Makefile b/net-mgmt/ndpmon/Makefile index fd3ccb0dfbd2..d3664b71e22a 100644 --- a/net-mgmt/ndpmon/Makefile +++ b/net-mgmt/ndpmon/Makefile @@ -7,6 +7,7 @@ PORTNAME= ndpmon PORTVERSION= 1.2 +PORTREVISION= 1 CATEGORIES= net-mgmt ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -17,6 +18,7 @@ COMMENT= On-link icmpv6 message monitoring and reporting daemon USE_GNOME= libxml2 USE_PERL5_RUN= yes +USE_RC_SUBR= ndpmonitor WRKSRC= ${WRKDIR}/${PORTNAME} GNU_CONFIGURE= yes diff --git a/net-mgmt/ndpmon/files/ndpmonitor.in b/net-mgmt/ndpmon/files/ndpmonitor.in new file mode 100644 index 000000000000..02989d32bd9d --- /dev/null +++ b/net-mgmt/ndpmon/files/ndpmonitor.in @@ -0,0 +1,23 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: ndpmonitor +# REQUIRE: DAEMON NETWORKING +# + +. %%RC_SUBR%% + +name="ndpmonitor" +rcvar=`set_rcvar` + +command="%%PREFIX%%/sbin/ndpmon" +required_files=%%PREFIX%%/etc/config_ndpmon.xml + +load_rc_config $name + +: ${ndpmonitor_enable="NO"} + +command_args=">/dev/null &" + +run_rc_command "$1" |