From 0c3fa6d6e39a0674f777f3b690247a752281e0c6 Mon Sep 17 00:00:00 2001 From: Rong-En Fan Date: Wed, 29 Aug 2007 08:32:26 +0000 Subject: - Add rc script PR: ports/115793 (based on) Submitted by: Janos Mohacsi (maintainer) --- net-mgmt/ndpmon/Makefile | 2 ++ net-mgmt/ndpmon/files/ndpmonitor.in | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 net-mgmt/ndpmon/files/ndpmonitor.in (limited to 'net-mgmt') 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" -- cgit v1.2.3