diff options
author | rafan <rafan@FreeBSD.org> | 2007-08-29 16:32:26 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2007-08-29 16:32:26 +0800 |
commit | 641b33ca7540a3d4663c1a878986c596c1954ba5 (patch) | |
tree | 3f5fa0742d9892e76a3730a5a2ef7763996673a9 /net-mgmt | |
parent | c428c3e1fa6807a1e4b89f6a3073711cac925abb (diff) | |
download | freebsd-ports-gnome-641b33ca7540a3d4663c1a878986c596c1954ba5.tar.gz freebsd-ports-gnome-641b33ca7540a3d4663c1a878986c596c1954ba5.tar.zst freebsd-ports-gnome-641b33ca7540a3d4663c1a878986c596c1954ba5.zip |
- Add rc script
PR: ports/115793 (based on)
Submitted by: Janos Mohacsi <janos.mohacsi at bsd.hu> (maintainer)
Diffstat (limited to 'net-mgmt')
-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" |