--- /usr/ports/net/igmpproxy/Makefile 2010-08-31 13:36:51.000000000 +0200 +++ /usr/ports/net/igmpproxy/Makefile 2010-08-31 13:51:16.000000000 +0200 @@ -7,6 +7,7 @@ PORTNAME= igmpproxy PORTVERSION= 0.1 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} --- /usr/ports/net/igmpproxy/files/igmpproxy.in 2010-08-31 13:36:51.000000000 +0200 +++ /usr/ports/net/igmpproxy/files/igmpproxy.in 2010-08-31 14:11:53.000000000 +0200 @@ -5,19 +5,28 @@ # PROVIDE: igmpproxy # REQUIRE: NETWORKING +# KEYWORD: shutdown # The following variables are provided to control startup of igmpproxy # rc configuration file (eg /etc/rc.conf): # igmpproxy_enable (bool): Set to "NO" by default. # Set it to "YES" to enable igmpproxy. +# igmpproxy_conf (path): Set full path to configuration file. +# Default is "%%PREFIX%%/etc/igmpproxy.conf" . /etc/rc.subr name="igmpproxy" rcvar=`set_rcvar` -command="%%PREFIX%%/sbin/${name}" +procname="%%PREFIX%%/sbin/${name}" +command=/usr/sbin/daemon required_files="%%PREFIX%%/etc/igmpproxy.conf" -igmpproxy_enable=${igmpproxy_enable-"NO"} load_rc_config $name + +igmpproxy_enable=${igmpproxy_enable-"NO"} +igmpproxy_conf=${igmpproxy_config-"%%PREFIX%%/etc/igmpproxy.conf"} + +command_args=" -cf $procname $igmpproxy_conf" + run_rc_command "$1"