diff options
author | dougb <dougb@FreeBSD.org> | 2012-01-14 08:57:23 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2012-01-14 08:57:23 +0000 |
commit | 4500e6f95eef76996051b447f00584b31e4abedf (patch) | |
tree | aa85e69ac86658b87b78e09ff440d65dc0ff7518 | |
parent | 9b5808c5a6c860e753267e93e9516b3301002f03 (diff) | |
download | FreeBSD-ports-4500e6f95eef76996051b447f00584b31e4abedf.zip FreeBSD-ports-4500e6f95eef76996051b447f00584b31e4abedf.tar.gz |
In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().
In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
966 files changed, 1119 insertions, 1114 deletions
diff --git a/astro/gpsd/files/gpsd.in b/astro/gpsd/files/gpsd.in index a926cb3..644d474 100644 --- a/astro/gpsd/files/gpsd.in +++ b/astro/gpsd/files/gpsd.in @@ -24,7 +24,7 @@ . /etc/rc.subr name=gpsd -rcvar=`set_rcvar` +rcvar=gpsd_enable start_postcmd=start_postcmd stop_postcmd=stop_postcmd diff --git a/astro/gpxloggerd/files/gpxloggerd.in b/astro/gpxloggerd/files/gpxloggerd.in index 28b7ada..d3874cf 100644 --- a/astro/gpxloggerd/files/gpxloggerd.in +++ b/astro/gpxloggerd/files/gpxloggerd.in @@ -28,7 +28,7 @@ . /etc/rc.subr name=gpxloggerd -rcvar=`set_rcvar` +rcvar=gpxloggerd_enable load_rc_config $name diff --git a/audio/aureal-kmod/files/aureal.in b/audio/aureal-kmod/files/aureal.in index 58b543e..583c641 100644 --- a/audio/aureal-kmod/files/aureal.in +++ b/audio/aureal-kmod/files/aureal.in @@ -23,7 +23,7 @@ . /etc/rc.subr name="aureal" -rcvar=${name}_enable +rcvar=aureal_enable start_cmd="aureal_start" stop_cmd="aureal_stop" diff --git a/audio/autocd/files/autocd.in b/audio/autocd/files/autocd.in index a46cc53..d512e15 100644 --- a/audio/autocd/files/autocd.in +++ b/audio/autocd/files/autocd.in @@ -18,7 +18,7 @@ . /etc/rc.subr name=autocd -rcvar=${name}_enable +rcvar=autocd_enable command=%%PREFIX%%/sbin/autocd diff --git a/audio/darkice/files/darkice.in b/audio/darkice/files/darkice.in index 5a25593..8a01894 100644 --- a/audio/darkice/files/darkice.in +++ b/audio/darkice/files/darkice.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="darkice" -rcvar=`set_rcvar` +rcvar=darkice_enable command="%%PREFIX%%/bin/$name" command_args="& 1>/dev/null" diff --git a/audio/ezstream/files/ezstream.in b/audio/ezstream/files/ezstream.in index 620868b..24e5157 100644 --- a/audio/ezstream/files/ezstream.in +++ b/audio/ezstream/files/ezstream.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="ezstream" -rcvar=`set_rcvar` +rcvar=ezstream_enable # read configuration and set defaults load_rc_config "$name" diff --git a/audio/firefly/files/mt-daapd.in b/audio/firefly/files/mt-daapd.in index 0a600ef0..28ac781 100644 --- a/audio/firefly/files/mt-daapd.in +++ b/audio/firefly/files/mt-daapd.in @@ -9,7 +9,7 @@ : ${firefly_enable=NO} name="firefly" -rcvar="`set_rcvar`" +rcvar=firefly_enable command="%%PREFIX%%/sbin/mt-daapd" command_args="-c %%PREFIX%%/etc/mt-daapd.conf" diff --git a/audio/gnump3d/files/gnump3d.sh.in b/audio/gnump3d/files/gnump3d.sh.in index 8159669..e68f1c1 100644 --- a/audio/gnump3d/files/gnump3d.sh.in +++ b/audio/gnump3d/files/gnump3d.sh.in @@ -12,7 +12,7 @@ gnump3d_flags=${gnump3d_flags-"--fast --quiet --background"} gnump3d_pidfile=${gnump3d_pidfile:-/var/run/gnump3d.pid} name="gnump3d" -rcvar=`set_rcvar` +rcvar=gnump3d_enable command="%%PREFIX%%/bin/gnump3d" command_interpreter="%%PERL%%" pidfile="${gnump3d_pidfile}" diff --git a/audio/icecast2/files/icecast2.sh.in b/audio/icecast2/files/icecast2.sh.in index caa5ede..05f0f74 100644 --- a/audio/icecast2/files/icecast2.sh.in +++ b/audio/icecast2/files/icecast2.sh.in @@ -24,7 +24,7 @@ . /etc/rc.subr name="icecast" -rcvar=`set_rcvar` +rcvar=icecast_enable command="%%PREFIX%%/bin/icecast" command_args="-b 1>/dev/null" diff --git a/audio/ices0/files/ices0.sh.in b/audio/ices0/files/ices0.sh.in index 18c7b39..698128f 100644 --- a/audio/ices0/files/ices0.sh.in +++ b/audio/ices0/files/ices0.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="ices0" -rcvar=`set_rcvar` +rcvar=ices0_enable command="%%PREFIX%%/bin/$name" command_args="1>/dev/null 2>&1" diff --git a/audio/liquidsoap/files/liquidsoap.sh.in b/audio/liquidsoap/files/liquidsoap.sh.in index 03c3bdd..bc7bb18 100644 --- a/audio/liquidsoap/files/liquidsoap.sh.in +++ b/audio/liquidsoap/files/liquidsoap.sh.in @@ -12,7 +12,7 @@ . /etc/rc.subr name=liquidsoap -rcvar=`set_rcvar` +rcvar=liquidsoap_enable command=%%PREFIX%%/bin/liquidsoap diff --git a/audio/madfufw/files/maudio.in b/audio/madfufw/files/maudio.in index b12a2b5..e60c6c9 100644 --- a/audio/madfufw/files/maudio.in +++ b/audio/madfufw/files/maudio.in @@ -22,7 +22,7 @@ echo $$ >/var/run/maudio.pid . /etc/rc.subr name="maudio" -rcvar=`set_rcvar` +rcvar=maudio_enable load_rc_config $name : ${maudio_enable="NO"} diff --git a/audio/mpdas/files/mpdas.in b/audio/mpdas/files/mpdas.in index f9d17b0..3556061 100644 --- a/audio/mpdas/files/mpdas.in +++ b/audio/mpdas/files/mpdas.in @@ -12,7 +12,7 @@ . /etc/rc.subr name=mpdas -rcvar=`set_rcvar` +rcvar=mpdas_enable command=%%PREFIX%%/bin/mpdas diff --git a/audio/mpdscribble/files/mpdscribble.in b/audio/mpdscribble/files/mpdscribble.in index 1193858..d7e62fb 100644 --- a/audio/mpdscribble/files/mpdscribble.in +++ b/audio/mpdscribble/files/mpdscribble.in @@ -12,7 +12,7 @@ . /etc/rc.subr name=mpdscribble -rcvar=`set_rcvar` +rcvar=mpdscribble_enable command=%%PREFIX%%/bin/mpdscribble diff --git a/audio/murmur/files/murmur.in b/audio/murmur/files/murmur.in index 185730e..a3baee3 100644 --- a/audio/murmur/files/murmur.in +++ b/audio/murmur/files/murmur.in @@ -22,7 +22,7 @@ : ${murmur_user="murmur"} name=murmur -rcvar=${name}_enable +rcvar=murmur_enable command="%%PREFIX%%/sbin/murmurd" command_args="-ini %%PREFIX%%/etc/murmur.ini" diff --git a/audio/musicpd/files/musicpd.in b/audio/musicpd/files/musicpd.in index 05ce1d9..cf41cc5 100644 --- a/audio/musicpd/files/musicpd.in +++ b/audio/musicpd/files/musicpd.in @@ -13,7 +13,7 @@ . /etc/rc.subr name=musicpd -rcvar=`set_rcvar` +rcvar=musicpd_enable start_precmd="${name}_getpidfile" stop_precmd="${name}_getpidfile" diff --git a/audio/oss/files/oss.in b/audio/oss/files/oss.in index aa4a8a9..1ed4914 100644 --- a/audio/oss/files/oss.in +++ b/audio/oss/files/oss.in @@ -7,7 +7,7 @@ . /etc/rc.subr name="oss" -rcvar=`set_rcvar` +rcvar=oss_enable stop_cmd="oss_stop" start_cmd="oss_start" diff --git a/audio/shairport/files/shairport.in b/audio/shairport/files/shairport.in index d4177ff..8113274 100644 --- a/audio/shairport/files/shairport.in +++ b/audio/shairport/files/shairport.in @@ -20,7 +20,7 @@ . /etc/rc.subr name="shairport" -rcvar=${name}_enable +rcvar=shairport_enable load_rc_config ${name} diff --git a/audio/squeezeboxserver/files/squeezeboxserver.sh.in b/audio/squeezeboxserver/files/squeezeboxserver.sh.in index 3974568..833ea18 100644 --- a/audio/squeezeboxserver/files/squeezeboxserver.sh.in +++ b/audio/squeezeboxserver/files/squeezeboxserver.sh.in @@ -18,7 +18,7 @@ name=%%PORTNAME%% start_precmd="%%PORTNAME%%_start_precmd" stop_postcmd="%%PORTNAME%%_stop_postcmd" -rcvar=`set_rcvar` +rcvar=%%PORTNAME%%_enable command=%%PREFIX%%/%%SLIMDIR%%/slimserver.pl command_interpreter=%%PERL%% diff --git a/audio/teamspeak3-server/files/teamspeak.in b/audio/teamspeak3-server/files/teamspeak.in index d9edb0a..e580ccc 100644 --- a/audio/teamspeak3-server/files/teamspeak.in +++ b/audio/teamspeak3-server/files/teamspeak.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="teamspeak" -rcvar=${name}_enable +rcvar=teamspeak_enable db_dir=/var/db/teamspeak log_dir=/var/log/teamspeak diff --git a/audio/teamspeak_server/files/teamspeak-server.in b/audio/teamspeak_server/files/teamspeak-server.in index 450b096..1052c17 100644 --- a/audio/teamspeak_server/files/teamspeak-server.in +++ b/audio/teamspeak_server/files/teamspeak-server.in @@ -19,7 +19,7 @@ teamspeak_user=${teamspeak_user:-"teamspeak"} name=teamspeak -rcvar=${name}_enable +rcvar=teamspeak_enable command="%%PREFIX%%/lib/teamspeak_server/server_linux" command_args=">/dev/null" diff --git a/audio/umurmur/files/umurmur.in b/audio/umurmur/files/umurmur.in index e6b022b..7bd77f2 100644 --- a/audio/umurmur/files/umurmur.in +++ b/audio/umurmur/files/umurmur.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=umurmur -rcvar=${name}_enable +rcvar=umurmur_enable # pidfile pidfile="/var/run/umurmur/umurmur.pid" diff --git a/audio/ventrilo-server/files/ventrilo-server.sh.in b/audio/ventrilo-server/files/ventrilo-server.sh.in index 9b3df66..f638cd2 100644 --- a/audio/ventrilo-server/files/ventrilo-server.sh.in +++ b/audio/ventrilo-server/files/ventrilo-server.sh.in @@ -9,6 +9,8 @@ . /etc/rc.subr name=ventrilo +rcvar=ventrilo_enable + homedir="%%PREFIX%%/ventrilo-server" pidfile="${homedir}/ventrilo_srv.pid" ventrilo_user=${name} @@ -17,8 +19,6 @@ command_args="'-f${homedir}/ventrilo_srv' -d >/dev/null" extra_commands="info" info_cmd="ventrilo_info" -rcvar=`set_rcvar` - load_rc_config $name : ${ventrilo_enable="NO"} diff --git a/benchmarks/thrulay/files/thrulayd.in b/benchmarks/thrulay/files/thrulayd.in index 9161623..369de3b 100644 --- a/benchmarks/thrulay/files/thrulayd.in +++ b/benchmarks/thrulay/files/thrulayd.in @@ -10,7 +10,7 @@ . /etc/rc.subr name="thrulayd" -rcvar=`set_rcvar` +rcvar=thrulayd_enable # read settings, set default values load_rc_config "${name}" diff --git a/comms/aprsd/files/aprsd b/comms/aprsd/files/aprsd index 5556e85..3f260af 100644 --- a/comms/aprsd/files/aprsd +++ b/comms/aprsd/files/aprsd @@ -10,7 +10,7 @@ . /etc/rc.subr name="aprsd" -rcvar=`set_rcvar` +rcvar=aprsd_enable load_rc_config $name aprsd_enable=${aprsd_enable-"NO"} aprsd_root=${aprsd_root-"NO"} diff --git a/comms/atslog/files/atslogd.in b/comms/atslog/files/atslogd.in index f8ccc67..d1db9a2 100644 --- a/comms/atslog/files/atslogd.in +++ b/comms/atslog/files/atslogd.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="atslogd" -rcvar=${name}_enable +rcvar=atslogd_enable load_rc_config $name diff --git a/comms/conserver-com/files/conserver.sh.in b/comms/conserver-com/files/conserver.sh.in index d73e9c5..cb7e87d 100644 --- a/comms/conserver-com/files/conserver.sh.in +++ b/comms/conserver-com/files/conserver.sh.in @@ -10,7 +10,7 @@ . /etc/rc.subr name="conserver" -rcvar=`set_rcvar` +rcvar=conserver_enable command=%%PREFIX%%/sbin/${name} pidfile=/var/run/${name}.pid diff --git a/comms/conserver/files/conserver.sh.in b/comms/conserver/files/conserver.sh.in index 73c41fc..0cc210e 100644 --- a/comms/conserver/files/conserver.sh.in +++ b/comms/conserver/files/conserver.sh.in @@ -16,7 +16,7 @@ conserver_enable=${conserver_enable:-"no"} . /etc/rc.subr name=conserver -rcvar=`set_rcvar` +rcvar=conserver_enable command=%%PREFIX%%/sbin/conserver conserver_configfile=${conserver_configfile:-"%%PREFIX%%/etc/conserver.cf"} diff --git a/comms/hylafax/files/hylafax.sh.in b/comms/hylafax/files/hylafax.sh.in index 3fa44f7..3e08c32 100644 --- a/comms/hylafax/files/hylafax.sh.in +++ b/comms/hylafax/files/hylafax.sh.in @@ -17,7 +17,7 @@ hylafax_enable=${hylafax_enable-"NO"} . /etc/rc.subr name="hylafax" -rcvar=`set_rcvar` +rcvar=hylafax_enable start_cmd="%%PREFIX%%/sbin/hylafax start" stop_cmd="%%PREFIX%%/sbin/hylafax stop" diff --git a/comms/lirc/files/lircd.sh.in b/comms/lirc/files/lircd.sh.in index c1ade26..ecc2cc8 100644 --- a/comms/lirc/files/lircd.sh.in +++ b/comms/lirc/files/lircd.sh.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="lircd" -rcvar=`set_rcvar` +rcvar=lircd_enable load_rc_config ${name} : ${lircd_enable="NO"} diff --git a/comms/qpage/files/qpage.in b/comms/qpage/files/qpage.in index dc29bc6..f552238 100644 --- a/comms/qpage/files/qpage.in +++ b/comms/qpage/files/qpage.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="qpage" -rcvar=${name}_enable +rcvar=qpage_enable command=%%PREFIX%%/bin/${name} diff --git a/comms/ser2net/files/ser2net.in b/comms/ser2net/files/ser2net.in index 7d6e3cd..5e96e01 100644 --- a/comms/ser2net/files/ser2net.in +++ b/comms/ser2net/files/ser2net.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="ser2net" -rcvar=`set_rcvar` +rcvar=ser2net_enable command="%%PREFIX%%/sbin/ser2net" load_rc_config $name diff --git a/comms/smstools3/files/smsd.in b/comms/smstools3/files/smsd.in index 68ca168..df8062f 100644 --- a/comms/smstools3/files/smsd.in +++ b/comms/smstools3/files/smsd.in @@ -13,6 +13,7 @@ . /etc/rc.subr name="smsd" +rcvar=smsd_enable load_rc_config ${name} : ${smsd_enable="NO"} @@ -23,7 +24,6 @@ load_rc_config ${name} : ${smsd_user="uucp"} : ${smsd_group="dialer"} -rcvar=`set_rcvar` pidfile=${smsd_pidfile} command="%%PREFIX%%/bin/smsd" command_args="-c${smsd_config} -p${smsd_pidfile} -i${smsd_infofile} -l${smsd_logfile} -u${smsd_user} -g${smsd_group}" diff --git a/comms/soundmodem/files/soundmodem b/comms/soundmodem/files/soundmodem index 4bfdf0c..f602fd3 100644 --- a/comms/soundmodem/files/soundmodem +++ b/comms/soundmodem/files/soundmodem @@ -10,7 +10,7 @@ . /etc/rc.subr name=soundmodem -rcvar=`set_rcvar` +rcvar=soundmodem_enable load_rc_config $name soundmodem_enable=${soundmodem_enable-"NO"} diff --git a/comms/thebridge/files/tbd.in b/comms/thebridge/files/tbd.in index 6ba5d97..4fee292 100644 --- a/comms/thebridge/files/tbd.in +++ b/comms/thebridge/files/tbd.in @@ -20,7 +20,7 @@ tbd_enable=${tbd_enable-"NO"} . /etc/rc.subr name="tbd" -rcvar=`set_rcvar` +rcvar=tbd_enable command="%%PREFIX%%/libexec/tbd" load_rc_config $name diff --git a/comms/tits/files/tits.in b/comms/tits/files/tits.in index fe2ebd2..ffddab6 100644 --- a/comms/tits/files/tits.in +++ b/comms/tits/files/tits.in @@ -19,7 +19,7 @@ tits_enable="${tits_enable-NO}" . /etc/rc.subr name="tits" -rcvar=`set_rcvar` +rcvar=tits_enable command="%%PREFIX%%/sbin/tits" load_rc_config $name diff --git a/databases/cassandra/files/cassandra.in b/databases/cassandra/files/cassandra.in index 4e023d1..0058f2e 100644 --- a/databases/cassandra/files/cassandra.in +++ b/databases/cassandra/files/cassandra.in @@ -33,7 +33,7 @@ . /etc/rc.subr name="cassandra" -rcvar=`set_rcvar` +rcvar=cassandra_enable load_rc_config $name cassandra_enable=${cassandra_enable:-"NO"} diff --git a/databases/cego/files/cego.in b/databases/cego/files/cego.in index c4b09cf..138079b 100644 --- a/databases/cego/files/cego.in +++ b/databases/cego/files/cego.in @@ -20,7 +20,7 @@ . /etc/rc.subr name="cego" -rcvar=`set_rcvar` +rcvar=cego_enable command="%%PREFIX%%/bin/cego" diff --git a/databases/couchdb/files/couchdb.in b/databases/couchdb/files/couchdb.in index 0bdf41f..480c03f 100644 --- a/databases/couchdb/files/couchdb.in +++ b/databases/couchdb/files/couchdb.in @@ -23,7 +23,7 @@ . /etc/rc.subr name="couchdb" -rcvar=${name}_enable +rcvar=couchdb_enable load_rc_config $name diff --git a/databases/cyrus-imspd/files/imspd.in b/databases/cyrus-imspd/files/imspd.in index 9644df1..f18ef0f 100644 --- a/databases/cyrus-imspd/files/imspd.in +++ b/databases/cyrus-imspd/files/imspd.in @@ -13,13 +13,13 @@ . /etc/rc.subr name=imspd +rcvar=imspd_enable load_rc_config ${name} : ${imspd_enable="NO"} : ${imspd_pidfile=/var/run/imspd.pid} : ${imspd_options=/var/imspd/options} -rcvar=`set_rcvar` pidfile=${imspd_pidfile} start_postcmd="start_postcmd" stop_postcmd="stop_postcmd" diff --git a/databases/dbXML/files/dbxml.in b/databases/dbXML/files/dbxml.in index 8f5b98a..4d3d7be 100644 --- a/databases/dbXML/files/dbxml.in +++ b/databases/dbXML/files/dbxml.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="%%PORTNAME%%" -rcvar=${name}_enable +rcvar=%%PORTNAME%%_enable command=%%LOCALBASE%%/bin/dbxmlctl pidfile=%%DBXML_HOME%%/config/${name}.pid diff --git a/databases/drizzle/files/drizzle-server.sh.in b/databases/drizzle/files/drizzle-server.sh.in index aeeedef..162d3e7 100644 --- a/databases/drizzle/files/drizzle-server.sh.in +++ b/databases/drizzle/files/drizzle-server.sh.in @@ -26,7 +26,7 @@ . /etc/rc.subr name="drizzle" -rcvar=`set_rcvar` +rcvar=drizzle_enable load_rc_config $name diff --git a/databases/exist/files/eXist.in b/databases/exist/files/eXist.in index b0cd433..3a4af78 100644 --- a/databases/exist/files/eXist.in +++ b/databases/exist/files/eXist.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="eXist" -rcvar=`set_rcvar` +rcvar=eXist_enable # Read settings and set default values. load_rc_config "$name" diff --git a/databases/firebird25-server/files/firebird.in b/databases/firebird25-server/files/firebird.in index ef97db4..a402391 100644 --- a/databases/firebird25-server/files/firebird.in +++ b/databases/firebird25-server/files/firebird.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=firebird -rcvar=`set_rcvar` +rcvar=firebird_enable load_rc_config $name diff --git a/databases/flare/files/flared.in b/databases/flare/files/flared.in index 633e8af..dec0678 100644 --- a/databases/flare/files/flared.in +++ b/databases/flare/files/flared.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=flared -rcvar=`set_rcvar` +rcvar=flared_enable command=%%PREFIX%%/bin/${name} extra_commands="reload" start_precmd=${name}_prestart diff --git a/databases/flare/files/flarei.in b/databases/flare/files/flarei.in index 2b83a0e..4dc0342 100644 --- a/databases/flare/files/flarei.in +++ b/databases/flare/files/flarei.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=flarei -rcvar=`set_rcvar` +rcvar=flarei_enable command=%%PREFIX%%/bin/${name} extra_commands="reload" start_precmd=${name}_prestart diff --git a/databases/frontbase/files/frontbase.sh.in b/databases/frontbase/files/frontbase.sh.in index 14b69a3..b11a623 100644 --- a/databases/frontbase/files/frontbase.sh.in +++ b/databases/frontbase/files/frontbase.sh.in @@ -11,8 +11,11 @@ # /etc/rc.conf.local # # DO NOT CHANGE THESE DEFAULT VALUES HERE -# + +. /etc/rc.subr + name="frontbase" +rcvar=frontbase_enable frontbase_enable="${frontbase_enable-NO}" frontbase_user="${frontbase_user-frontbase}" @@ -20,10 +23,6 @@ frontbase_flags="${frontbase_flags--autostart}" frontbase_pidfile="${frontbase_pidfile-/var/run/frontbase.pid}" frontbase_logfile="${frontbase_logfile-/var/log/frontbase.log}" -. /etc/rc.subr - -rcvar=`set_rcvar` - logfile=${frontbase_logfile} runuser=${frontbase_user} diff --git a/databases/kumofs/files/kumofs-gateway.in b/databases/kumofs/files/kumofs-gateway.in index ce6d170..e82a00e 100644 --- a/databases/kumofs/files/kumofs-gateway.in +++ b/databases/kumofs/files/kumofs-gateway.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="kumofs_gateway" -rcvar=`set_rcvar` +rcvar=kumofs_gateway_enable load_rc_config $name diff --git a/databases/kumofs/files/kumofs-manager.in b/databases/kumofs/files/kumofs-manager.in index 36ebaab..6cfcc9e 100644 --- a/databases/kumofs/files/kumofs-manager.in +++ b/databases/kumofs/files/kumofs-manager.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="kumofs_manager" -rcvar=`set_rcvar` +rcvar=kumofs_manager_enable load_rc_config $name diff --git a/databases/kumofs/files/kumofs-server.in b/databases/kumofs/files/kumofs-server.in index 4437817..2f87b63 100644 --- a/databases/kumofs/files/kumofs-server.in +++ b/databases/kumofs/files/kumofs-server.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="kumofs_server" -rcvar=`set_rcvar` +rcvar=kumofs_server_enable load_rc_config $name diff --git a/databases/mariadb-server/files/mysql-server.in b/databases/mariadb-server/files/mysql-server.in index 8f79202..b0b6bff 100644 --- a/databases/mariadb-server/files/mysql-server.in +++ b/databases/mariadb-server/files/mysql-server.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="mysql" -rcvar="mysql_enable" +rcvar=mysql_enable load_rc_config $name diff --git a/databases/memcached/files/memcached.in b/databases/memcached/files/memcached.in index 91040c8..41865e5 100644 --- a/databases/memcached/files/memcached.in +++ b/databases/memcached/files/memcached.in @@ -20,7 +20,7 @@ . /etc/rc.subr name="memcached" -rcvar=${name}_enable +rcvar=memcached_enable _piddir="/var/run/memcached" pidfile="${_piddir}/memcached.pid" diff --git a/databases/memcached12/files/memcached.in b/databases/memcached12/files/memcached.in index 77e8c4d..113a139 100644 --- a/databases/memcached12/files/memcached.in +++ b/databases/memcached12/files/memcached.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="memcached" -rcvar=${name}_enable +rcvar=memcached_enable load_rc_config ${name} diff --git a/databases/memcachedb/files/memcachedb.in b/databases/memcachedb/files/memcachedb.in index ec4331e..59e8ae1 100644 --- a/databases/memcachedb/files/memcachedb.in +++ b/databases/memcachedb/files/memcachedb.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="memcachedb" -rcvar=`set_rcvar` +rcvar=memcachedb_enable load_rc_config $name diff --git a/databases/memcacheq/files/memcacheq.in b/databases/memcacheq/files/memcacheq.in index 74353e7..e0384db 100644 --- a/databases/memcacheq/files/memcacheq.in +++ b/databases/memcacheq/files/memcacheq.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="memcacheq" -rcvar=${name}_enable +rcvar=memcacheq_enable sig_stop=KILL load_rc_config ${name} diff --git a/databases/mongodb/files/mongod.in b/databases/mongodb/files/mongod.in index 1aad701..c0e8efb 100644 --- a/databases/mongodb/files/mongod.in +++ b/databases/mongodb/files/mongod.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="mongod" -rcvar=${name}_enable +rcvar=mongod_enable command=%%PREFIX%%/bin/${name} diff --git a/databases/mysql-proxy/files/mysql-proxy.in b/databases/mysql-proxy/files/mysql-proxy.in index 03cdabf..125156e 100644 --- a/databases/mysql-proxy/files/mysql-proxy.in +++ b/databases/mysql-proxy/files/mysql-proxy.in @@ -26,7 +26,7 @@ . /etc/rc.subr name="mysql_proxy" -rcvar=`set_rcvar` +rcvar=mysql_proxy_enable load_rc_config $name diff --git a/databases/mysql41-server/files/mysql-server.sh.in b/databases/mysql41-server/files/mysql-server.sh.in index 1484247..7d32b43 100644 --- a/databases/mysql41-server/files/mysql-server.sh.in +++ b/databases/mysql41-server/files/mysql-server.sh.in @@ -23,7 +23,7 @@ . /etc/rc.subr name="mysql" -rcvar=`set_rcvar` +rcvar=mysql_enable load_rc_config $name diff --git a/databases/mysql50-server/files/mysql-server.sh.in b/databases/mysql50-server/files/mysql-server.sh.in index dbc3b80..0f09381c 100644 --- a/databases/mysql50-server/files/mysql-server.sh.in +++ b/databases/mysql50-server/files/mysql-server.sh.in @@ -27,7 +27,7 @@ . /etc/rc.subr name="mysql" -rcvar=`set_rcvar` +rcvar=mysql_enable load_rc_config $name diff --git a/databases/mysql51-server/files/mysql-server.sh.in b/databases/mysql51-server/files/mysql-server.sh.in index f5aab77..14104b1 100644 --- a/databases/mysql51-server/files/mysql-server.sh.in +++ b/databases/mysql51-server/files/mysql-server.sh.in @@ -25,7 +25,7 @@ . /etc/rc.subr name="mysql" -rcvar=`set_rcvar` +rcvar=mysql_enable load_rc_config $name diff --git a/databases/mysql55-server/files/mysql-server.sh.in b/databases/mysql55-server/files/mysql-server.sh.in index d7a666b..fa701dc 100644 --- a/databases/mysql55-server/files/mysql-server.sh.in +++ b/databases/mysql55-server/files/mysql-server.sh.in @@ -25,7 +25,7 @@ . /etc/rc.subr name="mysql" -rcvar=`set_rcvar` +rcvar=mysql_enable load_rc_config $name diff --git a/databases/percona55-server/files/mysql-server.sh.in b/databases/percona55-server/files/mysql-server.sh.in index d7a666b..fa701dc 100644 --- a/databases/percona55-server/files/mysql-server.sh.in +++ b/databases/percona55-server/files/mysql-server.sh.in @@ -25,7 +25,7 @@ . /etc/rc.subr name="mysql" -rcvar=`set_rcvar` +rcvar=mysql_enable load_rc_config $name diff --git a/databases/pgbouncer/files/pgbouncer.sh.in b/databases/pgbouncer/files/pgbouncer.sh.in index 9d4c8f2..f66379a 100644 --- a/databases/pgbouncer/files/pgbouncer.sh.in +++ b/databases/pgbouncer/files/pgbouncer.sh.in @@ -20,7 +20,7 @@ . /etc/rc.subr name="pgbouncer" -rcvar=`set_rcvar` +rcvar=pgbouncer_enable load_rc_config "$name" : ${pgbouncer_enable="NO"} diff --git a/databases/pgpool-II-22/files/pgpool.in b/databases/pgpool-II-22/files/pgpool.in index 6566ef9..9a9326a 100644 --- a/databases/pgpool-II-22/files/pgpool.in +++ b/databases/pgpool-II-22/files/pgpool.in @@ -22,7 +22,7 @@ . /etc/rc.subr name=pgpool -rcvar=${name}_enable +rcvar=pgpool_enable load_rc_config $name diff --git a/databases/pgpool-II-23/files/pgpool.in b/databases/pgpool-II-23/files/pgpool.in index 6566ef9..9a9326a 100644 --- a/databases/pgpool-II-23/files/pgpool.in +++ b/databases/pgpool-II-23/files/pgpool.in @@ -22,7 +22,7 @@ . /etc/rc.subr name=pgpool -rcvar=${name}_enable +rcvar=pgpool_enable load_rc_config $name diff --git a/databases/pgpool-II-30/files/pgpool.in b/databases/pgpool-II-30/files/pgpool.in index 6566ef9..9a9326a 100644 --- a/databases/pgpool-II-30/files/pgpool.in +++ b/databases/pgpool-II-30/files/pgpool.in @@ -22,7 +22,7 @@ . /etc/rc.subr name=pgpool -rcvar=${name}_enable +rcvar=pgpool_enable load_rc_config $name diff --git a/databases/pgpool-II/files/pgpool.in b/databases/pgpool-II/files/pgpool.in index e85863d..90ec820 100644 --- a/databases/pgpool-II/files/pgpool.in +++ b/databases/pgpool-II/files/pgpool.in @@ -22,7 +22,7 @@ . /etc/rc.subr name=pgpool -rcvar=${name}_enable +rcvar=pgpool_enable load_rc_config $name diff --git a/databases/pgpool/files/pgpool.in b/databases/pgpool/files/pgpool.in index 0654f23..5d39db2 100644 --- a/databases/pgpool/files/pgpool.in +++ b/databases/pgpool/files/pgpool.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=pgpool -rcvar=${name}_enable +rcvar=pgpool_enable load_rc_config $name diff --git a/databases/postgresql-relay/files/postgresql-relay.in b/databases/postgresql-relay/files/postgresql-relay.in index 15017ee..d3e2e69 100644 --- a/databases/postgresql-relay/files/postgresql-relay.in +++ b/databases/postgresql-relay/files/postgresql-relay.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=postgresqlrelay -rcvar=`set_rcvar` +rcvar=postgresqlrelay_enable command=%%PREFIX%%/bin/postgresql-relay required_files=%%PREFIX%%/etc/postgresql-relay.conf diff --git a/databases/postgresql82-server/files/postgresql.in b/databases/postgresql82-server/files/postgresql.in index 405d2ef..0558e10 100644 --- a/databases/postgresql82-server/files/postgresql.in +++ b/databases/postgresql82-server/files/postgresql.in @@ -38,7 +38,7 @@ postgresql_class=${postgresql_class:-"default"} postgresql_initdb_flags=${postgresql_initdb_flags:-"--encoding=utf-8 --lc-collate=C"} name=postgresql -rcvar=`set_rcvar` +rcvar=postgresql_enable command_args="-D ${postgresql_data} ${postgresql_flags}" extra_commands="reload initdb" diff --git a/databases/postgresql83-server/files/postgresql.in b/databases/postgresql83-server/files/postgresql.in index 405d2ef..0558e10 100644 --- a/databases/postgresql83-server/files/postgresql.in +++ b/databases/postgresql83-server/files/postgresql.in @@ -38,7 +38,7 @@ postgresql_class=${postgresql_class:-"default"} postgresql_initdb_flags=${postgresql_initdb_flags:-"--encoding=utf-8 --lc-collate=C"} name=postgresql -rcvar=`set_rcvar` +rcvar=postgresql_enable command_args="-D ${postgresql_data} ${postgresql_flags}" extra_commands="reload initdb" diff --git a/databases/postgresql84-server/files/postgresql.in b/databases/postgresql84-server/files/postgresql.in index d1e3c76..76a52ba 100644 --- a/databases/postgresql84-server/files/postgresql.in +++ b/databases/postgresql84-server/files/postgresql.in @@ -38,7 +38,7 @@ postgresql_class=${postgresql_class:-"default"} postgresql_initdb_flags=${postgresql_initdb_flags:-"--encoding=utf-8 --lc-collate=C"} name=postgresql -rcvar=`set_rcvar` +rcvar=postgresql_enable command_args="-D ${postgresql_data} ${postgresql_flags}" extra_commands="reload initdb" diff --git a/databases/postgresql90-server/files/postgresql.in b/databases/postgresql90-server/files/postgresql.in index d1e3c76..76a52ba 100644 --- a/databases/postgresql90-server/files/postgresql.in +++ b/databases/postgresql90-server/files/postgresql.in @@ -38,7 +38,7 @@ postgresql_class=${postgresql_class:-"default"} postgresql_initdb_flags=${postgresql_initdb_flags:-"--encoding=utf-8 --lc-collate=C"} name=postgresql -rcvar=`set_rcvar` +rcvar=postgresql_enable command_args="-D ${postgresql_data} ${postgresql_flags}" extra_commands="reload initdb" diff --git a/databases/postgresql91-server/files/postgresql.in b/databases/postgresql91-server/files/postgresql.in index 1d89451..ea7e9b9 100644 --- a/databases/postgresql91-server/files/postgresql.in +++ b/databases/postgresql91-server/files/postgresql.in @@ -38,7 +38,7 @@ postgresql_class=${postgresql_class:-"default"} postgresql_initdb_flags=${postgresql_initdb_flags:-"--encoding=utf-8 --lc-collate=C"} name=postgresql -rcvar=`set_rcvar` +rcvar=postgresql_enable command_args="-D ${postgresql_data} ${postgresql_flags}" extra_commands="reload initdb" diff --git a/databases/postgresql92-server/files/postgresql.in b/databases/postgresql92-server/files/postgresql.in index 1d89451..ea7e9b9 100644 --- a/databases/postgresql92-server/files/postgresql.in +++ b/databases/postgresql92-server/files/postgresql.in @@ -38,7 +38,7 @@ postgresql_class=${postgresql_class:-"default"} postgresql_initdb_flags=${postgresql_initdb_flags:-"--encoding=utf-8 --lc-collate=C"} name=postgresql -rcvar=`set_rcvar` +rcvar=postgresql_enable command_args="-D ${postgresql_data} ${postgresql_flags}" extra_commands="reload initdb" diff --git a/databases/redis-scripting/files/redis.sh.in b/databases/redis-scripting/files/redis.sh.in index 0e232f7..70bf3a6 100644 --- a/databases/redis-scripting/files/redis.sh.in +++ b/databases/redis-scripting/files/redis.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="redis" -rcvar=`set_rcvar` +rcvar=redis_enable extra_commands="reload" diff --git a/databases/redis/files/redis.sh.in b/databases/redis/files/redis.sh.in index 0e232f7..70bf3a6 100644 --- a/databases/redis/files/redis.sh.in +++ b/databases/redis/files/redis.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="redis" -rcvar=`set_rcvar` +rcvar=redis_enable extra_commands="reload" diff --git a/databases/rrdtool/files/rrdcached.in b/databases/rrdtool/files/rrdcached.in index d08dd33..bcd7eda 100644 --- a/databases/rrdtool/files/rrdcached.in +++ b/databases/rrdtool/files/rrdcached.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=rrdcached -rcvar=`set_rcvar` +rcvar=rrdcached_enable load_rc_config $name diff --git a/databases/rubygem-rubyrep/files/rubyrep.in b/databases/rubygem-rubyrep/files/rubyrep.in index 7e55e62..e770745 100644 --- a/databases/rubygem-rubyrep/files/rubyrep.in +++ b/databases/rubygem-rubyrep/files/rubyrep.in @@ -137,7 +137,7 @@ rubyrep_init() { } name="rubyrep" -rcvar=`set_rcvar` +rcvar=rubyrep_enable # read configuration and set defaults load_rc_config $name diff --git a/databases/slony1/files/slon.sh.in b/databases/slony1/files/slon.sh.in index c2f1113..6a5f1a4 100644 --- a/databases/slony1/files/slon.sh.in +++ b/databases/slony1/files/slon.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="slon" -rcvar=`set_rcvar` +rcvar=slon_enable load_rc_config "$name" _pidprefix="/var/run/${name}" diff --git a/databases/slony1v2/files/slon.sh.in b/databases/slony1v2/files/slon.sh.in index c2f1113..6a5f1a4 100644 --- a/databases/slony1v2/files/slon.sh.in +++ b/databases/slony1v2/files/slon.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="slon" -rcvar=`set_rcvar` +rcvar=slon_enable load_rc_config "$name" _pidprefix="/var/run/${name}" diff --git a/databases/tarantool/files/tarantool.in b/databases/tarantool/files/tarantool.in index 65383b0..d4b9ce8 100644 --- a/databases/tarantool/files/tarantool.in +++ b/databases/tarantool/files/tarantool.in @@ -13,17 +13,15 @@ . /etc/rc.subr name="tarantool" +rcvar=tarantool_enable + +load_rc_config "$name" tarantool_enable=${tarantool_enable:-"NO"} tarantool_config=${tarantool_config:-"%%ETCDIR%%/$name.cfg"} -rcvar=`set_rcvar` - -load_rc_config "$name" - command="%%PREFIX%%/bin/tarantool_silverbox" command_args="--daemonize --config ${tarantool_config}" pidfile="/var/run/$name.pid" run_rc_command "$1" - diff --git a/databases/tokyotyrant/files/ttserver.in b/databases/tokyotyrant/files/ttserver.in index d4ed5d6..ae03234 100644 --- a/databases/tokyotyrant/files/ttserver.in +++ b/databases/tokyotyrant/files/ttserver.in @@ -10,7 +10,7 @@ . /etc/rc.subr name="ttserver" -rcvar=`set_rcvar` +rcvar=ttserver_enable : ${ttserver_enable:="NO"} diff --git a/databases/virtuoso/files/virtuoso.sh.in b/databases/virtuoso/files/virtuoso.sh.in index 4762154..da1c267 100644 --- a/databases/virtuoso/files/virtuoso.sh.in +++ b/databases/virtuoso/files/virtuoso.sh.in @@ -29,7 +29,7 @@ virtuoso_user=virtuoso virtuoso_data=%%PREFIX%%/virtuoso name=virtuoso -rcvar=`set_rcvar` +rcvar=virtuoso_enable command=%%PREFIX%%/bin/virtuoso-t command_args="+configfile ${virtuoso_config} ${virtuoso_flags}" diff --git a/devel/cvsd/files/cvsd.in b/devel/cvsd/files/cvsd.in index 171cd7e..0791f61 100644 --- a/devel/cvsd/files/cvsd.in +++ b/devel/cvsd/files/cvsd.in @@ -8,7 +8,7 @@ . /etc/rc.subr name="cvsd" -rcvar=${name}_enable +rcvar=cvsd_enable command="%%PREFIX%%/sbin/$name" command_args='-f $cvsd_config' diff --git a/devel/dbus/files/dbus.in b/devel/dbus/files/dbus.in index 702a6e1..6a2b772 100644 --- a/devel/dbus/files/dbus.in +++ b/devel/dbus/files/dbus.in @@ -17,7 +17,7 @@ dbus_enable=${dbus_enable-${gnome_enable}} dbus_flags=${dbus_flags-"--system"} name=dbus -rcvar=`set_rcvar` +rcvar=dbus_enable command="%%PREFIX%%/bin/dbus-daemon" pidfile="/var/run/dbus/${name}.pid" diff --git a/devel/distcc/files/distccd.sh.in b/devel/distcc/files/distccd.sh.in index faab446..c9b9d4a 100644 --- a/devel/distcc/files/distccd.sh.in +++ b/devel/distcc/files/distccd.sh.in @@ -19,7 +19,7 @@ distccd_flags=${distccd_flags-"-a 127.0.0.0/8 --user distcc --daemon -P %%DISTCC . /etc/rc.subr name=distccd -rcvar=`set_rcvar` +rcvar=distccd_enable command=%%PREFIX%%/sbin/${name} # extract pid file from distccd_flags (if any) diff --git a/devel/gearmand/files/gearmand.sh.in b/devel/gearmand/files/gearmand.sh.in index 0b31162..e313c2e 100644 --- a/devel/gearmand/files/gearmand.sh.in +++ b/devel/gearmand/files/gearmand.sh.in @@ -9,7 +9,7 @@ . /etc/rc.subr name="gearmand" -rcvar=`set_rcvar` +rcvar=gearmand_enable command="%%PREFIX%%/sbin/gearmand" load_rc_config "$name" diff --git a/devel/git/files/git_daemon.in b/devel/git/files/git_daemon.in index 40ef95a..7782594 100644 --- a/devel/git/files/git_daemon.in +++ b/devel/git/files/git_daemon.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="git_daemon" -rcvar=`set_rcvar` +rcvar=git_daemon_enable load_rc_config $name diff --git a/devel/jenkins/files/jenkins.in b/devel/jenkins/files/jenkins.in index b0f5b86..3746dc0 100644 --- a/devel/jenkins/files/jenkins.in +++ b/devel/jenkins/files/jenkins.in @@ -44,7 +44,7 @@ . /etc/rc.subr name="jenkins" -rcvar=`set_rcvar` +rcvar=jenkins_enable load_rc_config "${name}" diff --git a/devel/linux-js/files/jscal.sh.in b/devel/linux-js/files/jscal.sh.in index 8249308..1553dac 100644 --- a/devel/linux-js/files/jscal.sh.in +++ b/devel/linux-js/files/jscal.sh.in @@ -12,7 +12,7 @@ jscal_state="${jscal_state:-/var/db/jscal-state}" . /etc/rc.subr name="jscal" -rcvar=`set_rcvar` +rcvar=jscal_enable command="%%PREFIX%%/bin/jscal" start_cmd="jscal_start" stop_cmd="jscal_stop" diff --git a/devel/linux-js/files/linux_js.sh.in b/devel/linux-js/files/linux_js.sh.in index 3d519d1..14b61dc 100644 --- a/devel/linux-js/files/linux_js.sh.in +++ b/devel/linux-js/files/linux_js.sh.in @@ -9,7 +9,7 @@ linux_js_enable=${linux_js_enable-"NO"} . /etc/rc.subr name="linux_js" -rcvar=`set_rcvar` +rcvar=linux_js_enable start_cmd="linux_js_start" stop_cmd="linux_js_stop" diff --git a/devel/p4d/files/p4d.sh.in b/devel/p4d/files/p4d.sh.in index 020ed98..8cfbce2 100644 --- a/devel/p4d/files/p4d.sh.in +++ b/devel/p4d/files/p4d.sh.in @@ -28,7 +28,7 @@ . /etc/rc.subr name="p4d" -rcvar=`set_rcvar` +rcvar=p4d_enable load_rc_config $name diff --git a/devel/p4ftpd/files/p4ftpd.sh.in b/devel/p4ftpd/files/p4ftpd.sh.in index 064889b..aa7c0d5 100644 --- a/devel/p4ftpd/files/p4ftpd.sh.in +++ b/devel/p4ftpd/files/p4ftpd.sh.in @@ -28,7 +28,7 @@ . /etc/rc.subr name="p4ftpd" -rcvar=`set_rcvar` +rcvar=p4ftpd_enable load_rc_config $name diff --git a/devel/p4p/files/p4p.sh.in b/devel/p4p/files/p4p.sh.in index 83babd4..aa407e4 100644 --- a/devel/p4p/files/p4p.sh.in +++ b/devel/p4p/files/p4p.sh.in @@ -30,7 +30,7 @@ . /etc/rc.subr name="p4p" -rcvar=`set_rcvar` +rcvar=p4p_enable load_rc_config $name diff --git a/devel/p4web/files/p4web.sh.in b/devel/p4web/files/p4web.sh.in index efc69ef..b2c3276 100644 --- a/devel/p4web/files/p4web.sh.in +++ b/devel/p4web/files/p4web.sh.in @@ -29,7 +29,7 @@ . /etc/rc.subr name="p4web" -rcvar=`set_rcvar` +rcvar=p4web_enable load_rc_config $name diff --git a/devel/p5-Gearman-Server/files/gearmand-perl.in b/devel/p5-Gearman-Server/files/gearmand-perl.in index 14ecec7..da5ff24 100644 --- a/devel/p5-Gearman-Server/files/gearmand-perl.in +++ b/devel/p5-Gearman-Server/files/gearmand-perl.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="%%NAME%%" -rcvar=`set_rcvar` +rcvar=%%NAME%%_enable command="%%PREFIX%%/bin/gearmand" command_interpreter="%%PREFIX%%/bin/perl" diff --git a/devel/p5-Java/files/javaserver.sh.in b/devel/p5-Java/files/javaserver.sh.in index 9f80eb1..db4069d 100644 --- a/devel/p5-Java/files/javaserver.sh.in +++ b/devel/p5-Java/files/javaserver.sh.in @@ -20,7 +20,7 @@ . /etc/rc.subr name="javaserver" -rcvar=`set_rcvar` +rcvar=javaserver_enable load_rc_config $name diff --git a/devel/pcsc-lite/files/pcscd.in b/devel/pcsc-lite/files/pcscd.in index d8e781b..8612fce 100644 --- a/devel/pcsc-lite/files/pcscd.in +++ b/devel/pcsc-lite/files/pcscd.in @@ -12,7 +12,7 @@ . /etc/rc.subr name="pcscd" -rcvar="pcscd_enable" +rcvar=pcscd_enable command="%%PREFIX%%/sbin/pcscd" diff --git a/devel/subversion/files/svnserve.in b/devel/subversion/files/svnserve.in index ca09c07..29b1df8 100644 --- a/devel/subversion/files/svnserve.in +++ b/devel/subversion/files/svnserve.in @@ -32,7 +32,7 @@ svnserve_user=${svnserve_user:-"svn"} svnserve_group=${svnserve_group:-"svn"} name=svnserve -rcvar=`set_rcvar` +rcvar=svnserve_enable load_rc_config $name command=%%PREFIX%%/bin/svnserve%%SVNSERVE_BIN_EXT%% command_args="-r ${svnserve_data}" diff --git a/devel/subversion16/files/svnserve.in b/devel/subversion16/files/svnserve.in index ca09c07..29b1df8 100644 --- a/devel/subversion16/files/svnserve.in +++ b/devel/subversion16/files/svnserve.in @@ -32,7 +32,7 @@ svnserve_user=${svnserve_user:-"svn"} svnserve_group=${svnserve_group:-"svn"} name=svnserve -rcvar=`set_rcvar` +rcvar=svnserve_enable load_rc_config $name command=%%PREFIX%%/bin/svnserve%%SVNSERVE_BIN_EXT%% command_args="-r ${svnserve_data}" diff --git a/devel/trac-bitten/files/bitten-slave.in b/devel/trac-bitten/files/bitten-slave.in index c4e5406..1847de9 100644 --- a/devel/trac-bitten/files/bitten-slave.in +++ b/devel/trac-bitten/files/bitten-slave.in @@ -12,7 +12,7 @@ . /etc/rc.subr name=bitten_slave -rcvar=`set_rcvar` +rcvar=bitten_slave_enable logfile=/var/log/bitten-slave.log conffile=%%ETCDIR%%/bitten-slave.conf workdir=/var/lib/bitten-slave diff --git a/devel/viewvc/files/viewvc.in b/devel/viewvc/files/viewvc.in index 3e51534..0e812de 100644 --- a/devel/viewvc/files/viewvc.in +++ b/devel/viewvc/files/viewvc.in @@ -30,7 +30,7 @@ . /etc/rc.subr name=viewvc -rcvar=${name}_enable +rcvar=viewvc_enable load_rc_config $name # Set defaults diff --git a/dns/adsuck/files/adsuck.in b/dns/adsuck/files/adsuck.in index 966af06..d9c694e 100644 --- a/dns/adsuck/files/adsuck.in +++ b/dns/adsuck/files/adsuck.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="adsuck" -rcvar=${name}_enable +rcvar=adsuck_enable command=%%PREFIX%%/sbin/${name} extra_commands="reload" diff --git a/dns/bindgraph/files/bindgraph.in b/dns/bindgraph/files/bindgraph.in index 2856d87..62b0fd3 100644 --- a/dns/bindgraph/files/bindgraph.in +++ b/dns/bindgraph/files/bindgraph.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="bindgraph" -rcvar=`set_rcvar` +rcvar=bindgraph_enable command=%%PREFIX%%/sbin/${name}.pl > /dev/null 2>&1 command_interpreter=/usr/bin/perl diff --git a/dns/ddclient/files/ddclient.in b/dns/ddclient/files/ddclient.in index ea066dd..7e32aa4 100644 --- a/dns/ddclient/files/ddclient.in +++ b/dns/ddclient/files/ddclient.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="ddclient" -rcvar=${name}_enable +rcvar=ddclient_enable command="%%PREFIX%%/sbin/${name}" required_files="%%PREFIX%%/etc/${name}.conf" diff --git a/dns/dnrd/files/dnrd.sh.in b/dns/dnrd/files/dnrd.sh.in index 0ec87c0..1e801c5 100644 --- a/dns/dnrd/files/dnrd.sh.in +++ b/dns/dnrd/files/dnrd.sh.in @@ -15,7 +15,7 @@ dnrd_enable=${dnrd_enable-"NO"} . /etc/rc.subr name=dnrd -rcvar=$(set_rcvar) +rcvar=dnrd_enable command=%%PREFIX%%/sbin/${name} pidfile=/var/run/${name}.pid diff --git a/dns/dns_balance/files/dns_balance.sh.in b/dns/dns_balance/files/dns_balance.sh.in index cbeac7a..50a5109 100644 --- a/dns/dns_balance/files/dns_balance.sh.in +++ b/dns/dns_balance/files/dns_balance.sh.in @@ -12,7 +12,7 @@ . /etc/rc.subr name=dns_balance -rcvar=`set_rcvar` +rcvar=dns_balance_enable load_rc_config ${name} : ${dns_balance_enable="NO"} diff --git a/dns/dnscheckengine/files/patch-contrib_dnscheck-dispatcher.sh b/dns/dnscheckengine/files/patch-contrib_dnscheck-dispatcher.sh index 5aa9989..bc9b80e 100644 --- a/dns/dnscheckengine/files/patch-contrib_dnscheck-dispatcher.sh +++ b/dns/dnscheckengine/files/patch-contrib_dnscheck-dispatcher.sh @@ -6,7 +6,7 @@ $FreeBSD$ @@ -20,7 +20,7 @@ name="dnscheck_dispatcher" - rcvar=`set_rcvar` + rcvar=dnscheck_dispatcher_enable -command="/usr/local/bin/dnscheck-dispatcher" +command="%%PREFIX%%/libexec/dnscheck/dnscheck-dispatcher" diff --git a/dns/dnsmasq/files/dnsmasq.sh.in b/dns/dnsmasq/files/dnsmasq.sh.in index a56289a..26d7b26 100644 --- a/dns/dnsmasq/files/dnsmasq.sh.in +++ b/dns/dnsmasq/files/dnsmasq.sh.in @@ -43,7 +43,7 @@ . /etc/rc.subr name=dnsmasq -rcvar=$(set_rcvar) +rcvar=dnsmasq_enable command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/${name}.pid" diff --git a/dns/dnsproxy/files/dnsproxy.in b/dns/dnsproxy/files/dnsproxy.in index e35fd56..9e60ce4 100644 --- a/dns/dnsproxy/files/dnsproxy.in +++ b/dns/dnsproxy/files/dnsproxy.in @@ -24,7 +24,7 @@ command_args=${dnsproxy_flags:-"-c %%ETCDIR%%/dnsproxy.conf -d"} . /etc/rc.subr name="dnsproxy" -rcvar=`set_rcvar` +rcvar=dnsproxy_enable command="%%PREFIX%%/sbin/dnsproxy" diff --git a/dns/dnsreflector/files/dnsreflector.in b/dns/dnsreflector/files/dnsreflector.in index 6d51b18..c70af61 100644 --- a/dns/dnsreflector/files/dnsreflector.in +++ b/dns/dnsreflector/files/dnsreflector.in @@ -24,7 +24,7 @@ command_args=${dnsreflector_flags:-"-d -a 127.0.0.1 -p 53000"} . /etc/rc.subr name="dnsreflector" -rcvar=`set_rcvar` +rcvar=dnsreflector_enable command="%%PREFIX%%/sbin/dnsreflector" diff --git a/dns/dualserver/files/dualserver.sh.in b/dns/dualserver/files/dualserver.sh.in index bcd54f6..9c90a19 100644 --- a/dns/dualserver/files/dualserver.sh.in +++ b/dns/dualserver/files/dualserver.sh.in @@ -9,7 +9,7 @@ . /etc/rc.subr name="dualserver" -rcvar=`set_rcvar` +rcvar=dualserver_enable start_cmd="dualserver_startcmd" stop_cmd="dualserver_stopcmd" diff --git a/dns/ez-ipupdate/files/ez-ipupdate.sh.in b/dns/ez-ipupdate/files/ez-ipupdate.sh.in index fb9a4a7..1209b62 100644 --- a/dns/ez-ipupdate/files/ez-ipupdate.sh.in +++ b/dns/ez-ipupdate/files/ez-ipupdate.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=ez_ipupdate -rcvar=`set_rcvar` +rcvar=ez_ipupdate_enable load_rc_config $name diff --git a/dns/inadyn/files/inadyn.in b/dns/inadyn/files/inadyn.in index e7ed881..8f70254 100644 --- a/dns/inadyn/files/inadyn.in +++ b/dns/inadyn/files/inadyn.in @@ -23,7 +23,7 @@ . /etc/rc.subr name="inadyn" -rcvar=`set_rcvar` +rcvar=inadyn_enable command=%%PREFIX%%/bin/${name} diff --git a/dns/maradns/files/maradns.in b/dns/maradns/files/maradns.in index dafc71d..0d36f30 100644 --- a/dns/maradns/files/maradns.in +++ b/dns/maradns/files/maradns.in @@ -15,7 +15,7 @@ : ${maradns_conf="%%PREFIX%%/etc/mararc"} name="maradns" -rcvar=`set_rcvar` +rcvar=maradns_enable command="%%PREFIX%%/bin/duende" command_args="%%PREFIX%%/sbin/maradns -f ${maradns_conf}" pidfile="/var/run/${name}.pid" diff --git a/dns/maradns/files/zoneserver.in b/dns/maradns/files/zoneserver.in index 84e5931..40614d2 100644 --- a/dns/maradns/files/zoneserver.in +++ b/dns/maradns/files/zoneserver.in @@ -15,7 +15,7 @@ : ${maradns_conf="%%PREFIX%%/etc/mararc"} name="zoneserver" -rcvar=`set_rcvar` +rcvar=zoneserver_enable command="%%PREFIX%%/bin/duende" command_args="%%PREFIX%%/sbin/zoneserver -f ${maradns_conf}" pidfile="/var/run/${name}.pid" diff --git a/dns/mydns-ng/files/mydns.in b/dns/mydns-ng/files/mydns.in index 20bd91a..896a550 100644 --- a/dns/mydns-ng/files/mydns.in +++ b/dns/mydns-ng/files/mydns.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="mydns" -rcvar=`set_rcvar` +rcvar=mydns_enable load_rc_config $name diff --git a/dns/mydns/files/mydns.sh.in b/dns/mydns/files/mydns.sh.in index 20bd91a..896a550 100644 --- a/dns/mydns/files/mydns.sh.in +++ b/dns/mydns/files/mydns.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="mydns" -rcvar=`set_rcvar` +rcvar=mydns_enable load_rc_config $name diff --git a/dns/noip/files/noip.in b/dns/noip/files/noip.in index b9e7326..6750906 100644 --- a/dns/noip/files/noip.in +++ b/dns/noip/files/noip.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="noip" -rcvar=`set_rcvar` +rcvar=noip_enable command="%%PREFIX%%/bin/noip2" diff --git a/dns/nsd/files/nsd.in b/dns/nsd/files/nsd.in index a040d4d..5021db3 100644 --- a/dns/nsd/files/nsd.in +++ b/dns/nsd/files/nsd.in @@ -15,7 +15,7 @@ . /etc/rc.subr name=nsd -rcvar=`set_rcvar` +rcvar=nsd_enable required_files=%%PREFIX%%/etc/nsd/nsd.conf diff --git a/dns/opendd/files/opendd.in b/dns/opendd/files/opendd.in index b8f3ce6..c1b6d5b 100644 --- a/dns/opendd/files/opendd.in +++ b/dns/opendd/files/opendd.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="opendd" -rcvar=${name}_enable +rcvar=opendd_enable load_rc_config $name diff --git a/dns/opendnssec/files/opendnssec.in b/dns/opendnssec/files/opendnssec.in index 9fedbd1..7f76f0e 100644 --- a/dns/opendnssec/files/opendnssec.in +++ b/dns/opendnssec/files/opendnssec.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=opendnssec -rcvar=`set_rcvar` +rcvar=opendnssec_enable load_rc_config $name diff --git a/dns/pdnsd/files/pdnsd.in b/dns/pdnsd/files/pdnsd.in index 1d8172b..0d49705 100644 --- a/dns/pdnsd/files/pdnsd.in +++ b/dns/pdnsd/files/pdnsd.in @@ -7,7 +7,7 @@ . /etc/rc.subr name="pdnsd" -rcvar=${name}_enable +rcvar=pdnsd_enable command="%%PREFIX%%/sbin/pdnsd" command_args="-d" required_files="%%PREFIX%%/etc/pdnsd.conf" diff --git a/dns/powerdns-devel/files/pdns-devel.in b/dns/powerdns-devel/files/pdns-devel.in index 5d4e241..27be465 100644 --- a/dns/powerdns-devel/files/pdns-devel.in +++ b/dns/powerdns-devel/files/pdns-devel.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=pdns -rcvar=`set_rcvar` +rcvar=pdns_enable command=%%PREFIX%%/sbin/pdns_server diff --git a/dns/powerdns-recursor/files/pdns-recursor.in b/dns/powerdns-recursor/files/pdns-recursor.in index fa96b8e..8c3310b 100644 --- a/dns/powerdns-recursor/files/pdns-recursor.in +++ b/dns/powerdns-recursor/files/pdns-recursor.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=pdns_recursor -rcvar=`set_rcvar` +rcvar=pdns_recursor_enable command=%%PREFIX%%/sbin/pdns_recursor diff --git a/dns/powerdns/files/pdns.in b/dns/powerdns/files/pdns.in index 5d4e241..27be465 100644 --- a/dns/powerdns/files/pdns.in +++ b/dns/powerdns/files/pdns.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=pdns -rcvar=`set_rcvar` +rcvar=pdns_enable command=%%PREFIX%%/sbin/pdns_server diff --git a/dns/radns/files/radns.in b/dns/radns/files/radns.in index 81d3149..63977fd 100644 --- a/dns/radns/files/radns.in +++ b/dns/radns/files/radns.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=radns -rcvar=`set_rcvar` +rcvar=radns_enable radns_dir="%%PREFIX%%/etc/radns" load_rc_config $name diff --git a/dns/rbldnsd/files/rbldnsd.in b/dns/rbldnsd/files/rbldnsd.in index 799d4c7..dcab5de 100644 --- a/dns/rbldnsd/files/rbldnsd.in +++ b/dns/rbldnsd/files/rbldnsd.in @@ -18,7 +18,7 @@ . /etc/rc.subr name=rbldnsd -rcvar=`set_rcvar` +rcvar=rbldnsd_enable command=%%PREFIX%%/sbin/rbldnsd pidfile=/var/run/rbldnsd.pid diff --git a/dns/totd/files/totd.in b/dns/totd/files/totd.in index d66cdfa..c0c9eb9 100644 --- a/dns/totd/files/totd.in +++ b/dns/totd/files/totd.in @@ -20,7 +20,7 @@ totd_enable=${totd_enable:-"NO"} # Enable totd . /etc/rc.subr name="totd" -rcvar=`set_rcvar` +rcvar=totd_enable command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/${name}.pid" required_files="%%PREFIX%%/etc/${name}.conf" diff --git a/dns/unbound/files/unbound.in b/dns/unbound/files/unbound.in index a6125df..94d3807 100644 --- a/dns/unbound/files/unbound.in +++ b/dns/unbound/files/unbound.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="unbound" -rcvar=`set_rcvar` +rcvar=unbound_enable command="%%PREFIX%%/sbin/unbound" extra_commands="reload" diff --git a/emulators/kqemu-kmod-devel/files/kqemu.in b/emulators/kqemu-kmod-devel/files/kqemu.in index 7662ca3..1903dee 100644 --- a/emulators/kqemu-kmod-devel/files/kqemu.in +++ b/emulators/kqemu-kmod-devel/files/kqemu.in @@ -12,7 +12,7 @@ . /etc/rc.subr name="kqemu" -rcvar=${name}_enable +rcvar=kqemu_enable load_rc_config $name diff --git a/emulators/kqemu-kmod/files/kqemu.in b/emulators/kqemu-kmod/files/kqemu.in index 7662ca3..1903dee 100644 --- a/emulators/kqemu-kmod/files/kqemu.in +++ b/emulators/kqemu-kmod/files/kqemu.in @@ -12,7 +12,7 @@ . /etc/rc.subr name="kqemu" -rcvar=${name}_enable +rcvar=kqemu_enable load_rc_config $name diff --git a/emulators/open-vm-tools/files/vmware-guestd.sh.in b/emulators/open-vm-tools/files/vmware-guestd.sh.in index 08b77e5..25c4293 100644 --- a/emulators/open-vm-tools/files/vmware-guestd.sh.in +++ b/emulators/open-vm-tools/files/vmware-guestd.sh.in @@ -14,7 +14,7 @@ checkvm_cmd="%%PREFIX%%/bin/vmware-checkvm > /dev/null" # VMware guest daemon name="vmware_guestd" -rcvar=`set_rcvar` +rcvar=vmware_guestd_enable start_precmd="${checkvm_cmd}" unset start_cmd stop_precmd="${checkvm_cmd}" diff --git a/emulators/open-vm-tools/files/vmware-kmod.sh.in b/emulators/open-vm-tools/files/vmware-kmod.sh.in index 433604f..4831d99 100644 --- a/emulators/open-vm-tools/files/vmware-kmod.sh.in +++ b/emulators/open-vm-tools/files/vmware-kmod.sh.in @@ -42,7 +42,7 @@ vmware_mod_status() # VMware kernel module: vmmemctl kernel_mod="vmmemctl" name="vmware_guest_${kernel_mod}" -rcvar=`set_rcvar` +rcvar=vmware_guest_${kernel_mod}_enable extra_commands="status" status_cmd="vmware_mod_status ${kernel_mod}" start_precmd="${checkvm_cmd}" @@ -58,7 +58,7 @@ run_rc_command "$1" # VMware kernel module: vmxnet kernel_mod="vmxnet" name="vmware_guest_${kernel_mod}" -rcvar=`set_rcvar` +rcvar=vmware_guest_${kernel_mod}_enable extra_commands="status" status_cmd="vmware_mod_status ${kernel_mod}" start_precmd="${checkvm_cmd}" @@ -73,7 +73,7 @@ run_rc_command "$1" # VMware kernel module: vmblock kernel_mod="vmblock" name="vmware_guest_${kernel_mod}" -rcvar=`set_rcvar` +rcvar=vmware_guest_${kernel_mod}_enable extra_commands="status" status_cmd="vmware_mod_status ${kernel_mod}" start_precmd="${checkvm_cmd}" @@ -88,7 +88,7 @@ run_rc_command "$1" # VMware kernel module: vmhgfs kernel_mod="vmhgfs" name="vmware_guest_${kernel_mod}" -rcvar=`set_rcvar` +rcvar=vmware_guest_${kernel_mod}_enable extra_commands="status" status_cmd="vmware_mod_status ${kernel_mod}" start_precmd="${checkvm_cmd}" diff --git a/emulators/tpm-emulator/files/tpmd.in b/emulators/tpm-emulator/files/tpmd.in index 0af8eae..42e07df 100644 --- a/emulators/tpm-emulator/files/tpmd.in +++ b/emulators/tpm-emulator/files/tpmd.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=tpmd -rcvar=`set_rcvar` +rcvar=tpmd_enable command="%%PREFIX%%/bin/${name}" load_rc_config $name diff --git a/emulators/virtualbox-ose-additions/files/vboxguest.in b/emulators/virtualbox-ose-additions/files/vboxguest.in index 702b834..e2e1b50 100644 --- a/emulators/virtualbox-ose-additions/files/vboxguest.in +++ b/emulators/virtualbox-ose-additions/files/vboxguest.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="vboxguest" -rcvar=${name}_enable +rcvar=vboxguest_enable start_cmd="vboxguest_start" stop_cmd="vboxguest_stop" diff --git a/emulators/virtualbox-ose-additions/files/vboxservice.in b/emulators/virtualbox-ose-additions/files/vboxservice.in index 85a235f..cb23758 100644 --- a/emulators/virtualbox-ose-additions/files/vboxservice.in +++ b/emulators/virtualbox-ose-additions/files/vboxservice.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="vboxservice" -rcvar=`set_rcvar` +rcvar=vboxservice_enable command="%%PREFIX%%/sbin/VBoxService" load_rc_config $name diff --git a/emulators/virtualbox-ose-kmod-legacy/files/vboxnet.in b/emulators/virtualbox-ose-kmod-legacy/files/vboxnet.in index 17f079b..cf42254 100644 --- a/emulators/virtualbox-ose-kmod-legacy/files/vboxnet.in +++ b/emulators/virtualbox-ose-kmod-legacy/files/vboxnet.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="vboxnet" -rcvar=${name}_enable +rcvar=vboxnet_enable start_cmd="vboxnet_start" stop_cmd="vboxnet_stop" diff --git a/emulators/virtualbox-ose-kmod/files/vboxnet.in b/emulators/virtualbox-ose-kmod/files/vboxnet.in index 17f079b..cf42254 100644 --- a/emulators/virtualbox-ose-kmod/files/vboxnet.in +++ b/emulators/virtualbox-ose-kmod/files/vboxnet.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="vboxnet" -rcvar=${name}_enable +rcvar=vboxnet_enable start_cmd="vboxnet_start" stop_cmd="vboxnet_stop" diff --git a/emulators/virtualbox-ose-legacy/files/vboxheadless.in b/emulators/virtualbox-ose-legacy/files/vboxheadless.in index 8913f19..544b591 100644 --- a/emulators/virtualbox-ose-legacy/files/vboxheadless.in +++ b/emulators/virtualbox-ose-legacy/files/vboxheadless.in @@ -26,7 +26,7 @@ . /etc/rc.subr name="vboxheadless" -rcvar=`set_rcvar` +rcvar=vboxheadless_enable command="%%PREFIX%%/bin/VBoxHeadless" pidbase="/var/run/${name}" diff --git a/emulators/virtualbox-ose-legacy/files/vboxwebsrv.in b/emulators/virtualbox-ose-legacy/files/vboxwebsrv.in index 2905eff..73dabca 100644 --- a/emulators/virtualbox-ose-legacy/files/vboxwebsrv.in +++ b/emulators/virtualbox-ose-legacy/files/vboxwebsrv.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=vboxwebsrv -rcvar=`set_rcvar` +rcvar=vboxwebsrv_enable command="%%PREFIX%%/bin/vboxwebsrv" pidfile="/var/run/${name}.pid" diff --git a/emulators/virtualbox-ose/files/vboxheadless.in b/emulators/virtualbox-ose/files/vboxheadless.in index 8913f19..544b591 100644 --- a/emulators/virtualbox-ose/files/vboxheadless.in +++ b/emulators/virtualbox-ose/files/vboxheadless.in @@ -26,7 +26,7 @@ . /etc/rc.subr name="vboxheadless" -rcvar=`set_rcvar` +rcvar=vboxheadless_enable command="%%PREFIX%%/bin/VBoxHeadless" pidbase="/var/run/${name}" diff --git a/emulators/virtualbox-ose/files/vboxwebsrv.in b/emulators/virtualbox-ose/files/vboxwebsrv.in index 2905eff..73dabca 100644 --- a/emulators/virtualbox-ose/files/vboxwebsrv.in +++ b/emulators/virtualbox-ose/files/vboxwebsrv.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=vboxwebsrv -rcvar=`set_rcvar` +rcvar=vboxwebsrv_enable command="%%PREFIX%%/bin/vboxwebsrv" pidfile="/var/run/${name}.pid" diff --git a/emulators/vmware-guestd4/files/vmware-guestd.sh.in b/emulators/vmware-guestd4/files/vmware-guestd.sh.in index 8c9521a..2e076c9 100644 --- a/emulators/vmware-guestd4/files/vmware-guestd.sh.in +++ b/emulators/vmware-guestd4/files/vmware-guestd.sh.in @@ -22,7 +22,7 @@ vmware_guest_kmod_start() # VMware kernel modules name="vmware_guest_kmod" -rcvar=`set_rcvar` +rcvar=vmware_guest_kmod_enable start_precmd="${checkvm_cmd}" start_cmd="vmware_guest_kmod_start" stop_precmd="${checkvm_cmd}" @@ -34,7 +34,7 @@ run_rc_command "$1" # VMware guest daemon name="vmware_guestd" -rcvar=`set_rcvar` +rcvar=vmware_guestd_enable start_precmd="${checkvm_cmd}" unset start_cmd stop_precmd="${checkvm_cmd}" diff --git a/emulators/vmware-guestd5/files/vmware-guestd.sh.in b/emulators/vmware-guestd5/files/vmware-guestd.sh.in index d66fccb..98bcad2 100644 --- a/emulators/vmware-guestd5/files/vmware-guestd.sh.in +++ b/emulators/vmware-guestd5/files/vmware-guestd.sh.in @@ -27,7 +27,7 @@ vmware_guest_vmxnet_start() # VMware kernel module: vmmemctl name="vmware_guest_vmmemctl" -rcvar=`set_rcvar` +rcvar=vmware_guest_vmmemctl_enable start_precmd="${checkvm_cmd}" start_cmd="vmware_guest_vmmemctl_start" stop_precmd="${checkvm_cmd}" @@ -40,7 +40,7 @@ run_rc_command "$1" # VMware kernel module: vmxnet name="vmware_guest_vmxnet" -rcvar=`set_rcvar` +rcvar=vmware_guest_vmxnet_enable start_precmd="${checkvm_cmd}" start_cmd="vmware_guest_vmxnet_start" stop_precmd="${checkvm_cmd}" @@ -52,7 +52,7 @@ run_rc_command "$1" # VMware guest daemon name="vmware_guestd" -rcvar=`set_rcvar` +rcvar=vmware_guestd_enable start_precmd="${checkvm_cmd}" unset start_cmd stop_precmd="${checkvm_cmd}" diff --git a/emulators/vmware-guestd6/files/vmware-guestd.sh.in b/emulators/vmware-guestd6/files/vmware-guestd.sh.in index d66fccb..98bcad2 100644 --- a/emulators/vmware-guestd6/files/vmware-guestd.sh.in +++ b/emulators/vmware-guestd6/files/vmware-guestd.sh.in @@ -27,7 +27,7 @@ vmware_guest_vmxnet_start() # VMware kernel module: vmmemctl name="vmware_guest_vmmemctl" -rcvar=`set_rcvar` +rcvar=vmware_guest_vmmemctl_enable start_precmd="${checkvm_cmd}" start_cmd="vmware_guest_vmmemctl_start" stop_precmd="${checkvm_cmd}" @@ -40,7 +40,7 @@ run_rc_command "$1" # VMware kernel module: vmxnet name="vmware_guest_vmxnet" -rcvar=`set_rcvar` +rcvar=vmware_guest_vmxnet_enable start_precmd="${checkvm_cmd}" start_cmd="vmware_guest_vmxnet_start" stop_precmd="${checkvm_cmd}" @@ -52,7 +52,7 @@ run_rc_command "$1" # VMware guest daemon name="vmware_guestd" -rcvar=`set_rcvar` +rcvar=vmware_guestd_enable start_precmd="${checkvm_cmd}" unset start_cmd stop_precmd="${checkvm_cmd}" diff --git a/finance/openerp-server/files/openerpd.in b/finance/openerp-server/files/openerpd.in index 0d70d63..240e2eb 100644 --- a/finance/openerp-server/files/openerpd.in +++ b/finance/openerp-server/files/openerpd.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="openerpd" -rcvar=${name}_enable +rcvar=openerpd_enable command=%%PREFIX%%/bin/openerp-server diff --git a/finance/openerp-web/files/openerp-web.in b/finance/openerp-web/files/openerp-web.in index 7fba9cf..4e083eb 100644 --- a/finance/openerp-web/files/openerp-web.in +++ b/finance/openerp-web/files/openerp-web.in @@ -33,7 +33,7 @@ . /etc/rc.subr name="openerpweb" -rcvar=`set_rcvar` +rcvar=openerpweb_enable #command="/usr/local/bin/${name}" command="/usr/local/bin/openerp-web" command_interpreter="/bin/sh" diff --git a/finance/openerp/files/openerpd.in b/finance/openerp/files/openerpd.in index 0d70d63..240e2eb 100644 --- a/finance/openerp/files/openerpd.in +++ b/finance/openerp/files/openerpd.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="openerpd" -rcvar=${name}_enable +rcvar=openerpd_enable command=%%PREFIX%%/bin/openerp-server diff --git a/ftp/atftp/files/atftpd.in b/ftp/atftp/files/atftpd.in index 505536f..fafc3f0 100644 --- a/ftp/atftp/files/atftpd.in +++ b/ftp/atftp/files/atftpd.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="atftpd" -rcvar=`set_rcvar` +rcvar=atftpd_enable command=%%PREFIX%%/sbin/${name} pidfile=/var/run/${name}.pid diff --git a/ftp/bbftp/files/bbftpd.in b/ftp/bbftp/files/bbftpd.in index 0c02f39..e4c6cfa 100644 --- a/ftp/bbftp/files/bbftpd.in +++ b/ftp/bbftp/files/bbftpd.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="bbftpd" -rcvar=${name}_enable +rcvar=bbftpd_enable command=%%PREFIX%%/bin/${name} pidfile=/var/run/${name}.pid diff --git a/ftp/bsdftpd-ssl/files/bsdftpd-ssl.in b/ftp/bsdftpd-ssl/files/bsdftpd-ssl.in index dd04d4e..cd34159 100644 --- a/ftp/bsdftpd-ssl/files/bsdftpd-ssl.in +++ b/ftp/bsdftpd-ssl/files/bsdftpd-ssl.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="bsdftpd_ssl" -rcvar=`set_rcvar` +rcvar=bsdftpd_ssl_enable pidfile="/var/run/ftpd.pid" command="%%PREFIX%%/libexec/ftpd" command_args="-D -p ${pidfile}" diff --git a/ftp/frox/files/frox.sh.in b/ftp/frox/files/frox.sh.in index d873926..4b584b4 100644 --- a/ftp/frox/files/frox.sh.in +++ b/ftp/frox/files/frox.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=frox -rcvar=`set_rcvar` +rcvar=frox_enable command=%%PREFIX%%/sbin/frox pidfile=/var/run/frox.pid diff --git a/ftp/ftp-proxy/files/ftp-proxy.in b/ftp/ftp-proxy/files/ftp-proxy.in index ed74e5a..af70fa5 100644 --- a/ftp/ftp-proxy/files/ftp-proxy.in +++ b/ftp/ftp-proxy/files/ftp-proxy.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="ftpproxy" -rcvar=${name}_enable +rcvar=ftpproxy_enable load_rc_config $name diff --git a/ftp/ftpd-tls/files/ftpd-tls.sh.in b/ftp/ftpd-tls/files/ftpd-tls.sh.in index d6344c0..a276e72 100644 --- a/ftp/ftpd-tls/files/ftpd-tls.sh.in +++ b/ftp/ftpd-tls/files/ftpd-tls.sh.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="ftpd_tls" -rcvar=${name}_enable +rcvar=ftpd_tls_enable command=%%PREFIX%%/libexec/ftpd-tls command_args="> /dev/null" diff --git a/ftp/ftpsesame/files/ftpsesame.sh.in b/ftp/ftpsesame/files/ftpsesame.sh.in index eb8b16d..6bcb29a 100644 --- a/ftp/ftpsesame/files/ftpsesame.sh.in +++ b/ftp/ftpsesame/files/ftpsesame.sh.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=ftpsesame -rcvar=`set_rcvar` +rcvar=ftpsesame_enable command=%%PREFIX%%/bin/${name} pidfile="/var/run/${name}.pid" diff --git a/ftp/jftpgw/files/jftpgw.in b/ftp/jftpgw/files/jftpgw.in index 44a5f07..19993c7 100644 --- a/ftp/jftpgw/files/jftpgw.in +++ b/ftp/jftpgw/files/jftpgw.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=jftpgw -rcvar=`set_rcvar` +rcvar=jftpgw_enable command=%%PREFIX%%/sbin/jftpgw jftpgw_config=${jftpgw_config:-"%%PREFIX%%/etc/jftpgw.conf"} diff --git a/ftp/ncftpd/files/ncftpd.sh.in b/ftp/ncftpd/files/ncftpd.sh.in index 5c4d309..779a780 100644 --- a/ftp/ncftpd/files/ncftpd.sh.in +++ b/ftp/ncftpd/files/ncftpd.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="ncftpd" -rcvar=`set_rcvar` +rcvar=ncftpd_enable load_rc_config $name : ${ncftpd_enable:="NO"} diff --git a/ftp/proftpd/files/proftpd.in b/ftp/proftpd/files/proftpd.in index 1ea8d03..a4674f2 100644 --- a/ftp/proftpd/files/proftpd.in +++ b/ftp/proftpd/files/proftpd.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=proftpd -rcvar=`set_rcvar` +rcvar=proftpd_enable command=%%PREFIX%%/sbin/proftpd pidfile=$(grep PidFile /usr/local/etc/proftpd.conf | awk '{print($2)}') diff --git a/ftp/pure-ftpd/files/pure-ftpd.sh.in b/ftp/pure-ftpd/files/pure-ftpd.sh.in index 2ef475e..50043ab 100644 --- a/ftp/pure-ftpd/files/pure-ftpd.sh.in +++ b/ftp/pure-ftpd/files/pure-ftpd.sh.in @@ -18,7 +18,7 @@ . /etc/rc.subr name=pureftpd -rcvar=`set_rcvar` +rcvar=pureftpd_enable load_rc_config $name diff --git a/ftp/smbftpd/files/smbftpd.sh.in b/ftp/smbftpd/files/smbftpd.sh.in index 4a2ed7d..c079c40 100644 --- a/ftp/smbftpd/files/smbftpd.sh.in +++ b/ftp/smbftpd/files/smbftpd.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=smbftpd -rcvar=`set_rcvar` +rcvar=smbftpd_enable load_rc_config $name diff --git a/ftp/tftp-hpa/files/tftpd.in b/ftp/tftp-hpa/files/tftpd.in index ad5fc47..318f59f 100644 --- a/ftp/tftp-hpa/files/tftpd.in +++ b/ftp/tftp-hpa/files/tftpd.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="tftpd" -rcvar=`set_rcvar` +rcvar=tftpd_enable pidfile=${tftpd_pidfile:-"/var/run/tftpd.pid"} command="%%PREFIX%%/libexec/in.tftpd" command_args="-P $pidfile -l" diff --git a/ftp/vsftpd-ext/files/vsftpd.sh.in b/ftp/vsftpd-ext/files/vsftpd.sh.in index 27d6c9c..1832f6fe 100644 --- a/ftp/vsftpd-ext/files/vsftpd.sh.in +++ b/ftp/vsftpd-ext/files/vsftpd.sh.in @@ -23,7 +23,7 @@ . /etc/rc.subr name="vsftpd" -rcvar=`set_rcvar` +rcvar=vsftpd_enable load_rc_config "$name" : ${vsftpd_enable:="NO"} diff --git a/ftp/vsftpd/files/vsftpd.sh.in b/ftp/vsftpd/files/vsftpd.sh.in index 6b26ed8..581eaa5 100644 --- a/ftp/vsftpd/files/vsftpd.sh.in +++ b/ftp/vsftpd/files/vsftpd.sh.in @@ -24,7 +24,7 @@ . /etc/rc.subr name="vsftpd" -rcvar=`set_rcvar` +rcvar=vsftpd_enable load_rc_config "$name" : ${vsftpd_enable:="NO"} diff --git a/ftp/wzdftpd/files/wzdftpd.sh.in b/ftp/wzdftpd/files/wzdftpd.sh.in index 77eb75a..133f8a3 100644 --- a/ftp/wzdftpd/files/wzdftpd.sh.in +++ b/ftp/wzdftpd/files/wzdftpd.sh.in @@ -18,7 +18,7 @@ wzdftpd_enable=${wzdftpd_enable:-"NO"} # Enable wzdftpd . /etc/rc.subr name="wzdftpd" -rcvar=`set_rcvar` +rcvar=wzdftpd_enable command="%%PREFIX%%/sbin/${name}" required_files="%%PREFIX%%/etc/wzd.cfg" diff --git a/games/armagetron/files/armagetronad_dedicated.in b/games/armagetron/files/armagetronad_dedicated.in index 6a3048b..4732d52 100644 --- a/games/armagetron/files/armagetronad_dedicated.in +++ b/games/armagetron/files/armagetronad_dedicated.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="armagetronad_dedicated" -rcvar=${name}_enable +rcvar=armagetronad_dedicated_enable command=%%PREFIX%%/bin/${name} pidfile=/var/run/${name}.pid diff --git a/games/kaid/files/kaid.sh b/games/kaid/files/kaid.sh index 4cf3de9..f87a939 100644 --- a/games/kaid/files/kaid.sh +++ b/games/kaid/files/kaid.sh @@ -17,7 +17,7 @@ kaid_enable="${kaid_enable-NO}" . /etc/rc.subr name=kaid -rcvar=`set_rcvar` +rcvar=kaid_enable command=/usr/local/sbin/${name} command_args=-d diff --git a/games/ldmud/files/ldmud.in b/games/ldmud/files/ldmud.in index 95a7815..8b37449 100644 --- a/games/ldmud/files/ldmud.in +++ b/games/ldmud/files/ldmud.in @@ -12,7 +12,7 @@ name=ldmud ldmud_user=mud -rcvar=`set_rcvar` +rcvar=ldmud_enable start_cmd="${name}_start" diff --git a/games/minecraft-server/files/minecraft.in b/games/minecraft-server/files/minecraft.in index 1108a8d..bd068e3 100644 --- a/games/minecraft-server/files/minecraft.in +++ b/games/minecraft-server/files/minecraft.in @@ -7,7 +7,7 @@ . /etc/rc.subr name="minecraft" -rcvar=`set_rcvar` +rcvar=minecraft_enable load_rc_config $name diff --git a/games/mtaserver/files/mtad.in b/games/mtaserver/files/mtad.in index 6541676..4883303 100644 --- a/games/mtaserver/files/mtad.in +++ b/games/mtaserver/files/mtad.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="mtad" -rcvar=${name}_enable +rcvar=mtad_enable load_rc_config $name diff --git a/games/openttd/files/openttd.in b/games/openttd/files/openttd.in index a2b5e0e..031a227 100644 --- a/games/openttd/files/openttd.in +++ b/games/openttd/files/openttd.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="openttd" -rcvar=`set_rcvar` +rcvar=openttd_enable command="%%PREFIX%%/bin/${name}" command_args="-s null -m null -v null -b null -D -f" diff --git a/games/pvpgn/files/bnetd.sh.in b/games/pvpgn/files/bnetd.sh.in index f8389f6..c0381ea 100644 --- a/games/pvpgn/files/bnetd.sh.in +++ b/games/pvpgn/files/bnetd.sh.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=bnetd -rcvar=`set_rcvar` +rcvar=bnetd_enable command=%%PREFIX%%/sbin/bnetd pidfile=/var/run/pvpgn/bnetd.pid diff --git a/games/quaqut/files/quaqut.in b/games/quaqut/files/quaqut.in index 30e3cf5..c3b4233 100644 --- a/games/quaqut/files/quaqut.in +++ b/games/quaqut/files/quaqut.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="quaqut" -rcvar=${name}_enable +rcvar=quaqut_enable load_rc_config $name diff --git a/games/sampsvr/files/sampd.in b/games/sampsvr/files/sampd.in index d766caf..366b116 100644 --- a/games/sampsvr/files/sampd.in +++ b/games/sampsvr/files/sampd.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="sampd" -rcvar=${name}_enable +rcvar=sampd_enable load_rc_config $name diff --git a/games/utserver/files/ucc.in b/games/utserver/files/ucc.in index d3382d7..6ec3298 100644 --- a/games/utserver/files/ucc.in +++ b/games/utserver/files/ucc.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="ucc" -rcvar=${name}_enable +rcvar=ucc_enable load_rc_config $name diff --git a/games/wolfpack/files/wolfpack.in b/games/wolfpack/files/wolfpack.in index be0ab90..355ef7a 100644 --- a/games/wolfpack/files/wolfpack.in +++ b/games/wolfpack/files/wolfpack.in @@ -13,7 +13,7 @@ . /etc/rc.subr name=wolfpack -rcvar=`set_rcvar` +rcvar=wolfpack_enable load_rc_config $name diff --git a/graphics/geoserver/files/geoserver.in b/graphics/geoserver/files/geoserver.in index 5bfb4be..3f81eca 100644 --- a/graphics/geoserver/files/geoserver.in +++ b/graphics/geoserver/files/geoserver.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="geoserver" -rcvar=${name}_enable +rcvar=geoserver_enable load_rc_config ${name} diff --git a/graphics/sane-backends/files/saned.in b/graphics/sane-backends/files/saned.in index ae4345a..dd1ddff 100644 --- a/graphics/sane-backends/files/saned.in +++ b/graphics/sane-backends/files/saned.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="saned" -rcvar=`set_rcvar` +rcvar=saned_enable command="%%PREFIX%%/sbin/${name}" start_precmd=${name}_prestart diff --git a/irc/anope/files/anope.in b/irc/anope/files/anope.in index c3df3a6..124e394 100644 --- a/irc/anope/files/anope.in +++ b/irc/anope/files/anope.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="anope" -rcvar=`set_rcvar` +rcvar=anope_enable command=%%PREFIX%%/libexec/anope/services # set defaults diff --git a/irc/bitlbee/files/bitlbee.in b/irc/bitlbee/files/bitlbee.in index b28069a..a2f138e 100644 --- a/irc/bitlbee/files/bitlbee.in +++ b/irc/bitlbee/files/bitlbee.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="bitlbee" -rcvar=`set_rcvar` +rcvar=bitlbee_enable load_rc_config $name diff --git a/irc/bopm/files/bopm.in b/irc/bopm/files/bopm.in index 95d040d..82b3913 100644 --- a/irc/bopm/files/bopm.in +++ b/irc/bopm/files/bopm.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="bopm" -rcvar=`set_rcvar` +rcvar=bopm_enable load_rc_config $name diff --git a/irc/charybdis/files/charybdis.in b/irc/charybdis/files/charybdis.in index 54ac827..aa32cff 100644 --- a/irc/charybdis/files/charybdis.in +++ b/irc/charybdis/files/charybdis.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="charybdis" -rcvar=`set_rcvar` +rcvar=charybdis_enable load_rc_config $name diff --git a/irc/inspircd/files/inspircd.in b/irc/inspircd/files/inspircd.in index 88ebad8..9844084 100644 --- a/irc/inspircd/files/inspircd.in +++ b/irc/inspircd/files/inspircd.in @@ -30,7 +30,7 @@ . /etc/rc.subr name=%%PORTNAME%% -rcvar=`set_rcvar` +rcvar=%%PORTNAME%%_enable load_rc_config ${name} diff --git a/irc/inspircd12/files/inspircd.sh.in b/irc/inspircd12/files/inspircd.sh.in index 441aa3a..eb9e836 100644 --- a/irc/inspircd12/files/inspircd.sh.in +++ b/irc/inspircd12/files/inspircd.sh.in @@ -29,7 +29,7 @@ . /etc/rc.subr name=inspircd -rcvar=`set_rcvar` +rcvar=inspircd_enable load_rc_config ${name} diff --git a/irc/irc/files/ircd.sh.in b/irc/irc/files/ircd.sh.in index 3a6fbb3..5e1ff85 100644 --- a/irc/irc/files/ircd.sh.in +++ b/irc/irc/files/ircd.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="ircd" -rcvar=`set_rcvar` +rcvar=ircd_enable load_rc_config $name diff --git a/irc/irc2dc/files/irc2dc.in b/irc/irc2dc/files/irc2dc.in index 8723dea..0309224 100644 --- a/irc/irc2dc/files/irc2dc.in +++ b/irc/irc2dc/files/irc2dc.in @@ -6,7 +6,7 @@ . /etc/rc.subr name="irc2dc" -rcvar=`set_rcvar` +rcvar=irc2dc_enable load_rc_config $name command="%%PREFIX%%/bin/irc2dc" pidfile="/var/run/irc2dc.pid" diff --git a/irc/ircd-hybrid/files/ircd-hybrid.sh.in b/irc/ircd-hybrid/files/ircd-hybrid.sh.in index c70decf..64b97bc 100644 --- a/irc/ircd-hybrid/files/ircd-hybrid.sh.in +++ b/irc/ircd-hybrid/files/ircd-hybrid.sh.in @@ -12,7 +12,7 @@ . /etc/rc.subr name="ircd_hybrid" -rcvar=`set_rcvar` +rcvar=ircd_hybrid_enable command=/usr/local/bin/ircd pidfile=/var/run/ircd/ircd.pid diff --git a/irc/ircd-ratbox-devel/files/ircd-ratbox.sh.in b/irc/ircd-ratbox-devel/files/ircd-ratbox.sh.in index 26ff7ca..464cb95 100644 --- a/irc/ircd-ratbox-devel/files/ircd-ratbox.sh.in +++ b/irc/ircd-ratbox-devel/files/ircd-ratbox.sh.in @@ -7,7 +7,7 @@ . /etc/rc.subr name="ircd_ratbox" -rcvar=`set_rcvar` +rcvar=ircd_ratbox_enable load_rc_config $name ircd_ratbox_enable=${ircd_ratbox_enable:-"NO"} diff --git a/irc/ircd-ratbox/files/ircd-ratbox.sh.in b/irc/ircd-ratbox/files/ircd-ratbox.sh.in index 3cac766..fedd43d 100644 --- a/irc/ircd-ratbox/files/ircd-ratbox.sh.in +++ b/irc/ircd-ratbox/files/ircd-ratbox.sh.in @@ -7,7 +7,7 @@ . /etc/rc.subr name="ircd_ratbox" -rcvar=`set_rcvar` +rcvar=ircd_ratbox_enable load_rc_config $name ircd_ratbox_enable=${ircd_ratbox_enable:-"NO"} diff --git a/irc/ircd-ru/files/ircd.in b/irc/ircd-ru/files/ircd.in index a7d5e33..a95392b 100644 --- a/irc/ircd-ru/files/ircd.in +++ b/irc/ircd-ru/files/ircd.in @@ -8,7 +8,7 @@ . /etc/rc.subr name="ircd" -rcvar=${name}_enable +rcvar=ircd_enable command="%%PREFIX%%/sbin/$name" required_files="%%PREFIX%%/etc/ircd-ru/ircd.conf %%PREFIX%%/etc/ircd-ru/ircd.motd %%PREFIX%%/etc/ircd-ru/ircd.smotd" diff --git a/irc/ircservices/files/ircservices.in b/irc/ircservices/files/ircservices.in index 702a6c0..5e4c84a 100644 --- a/irc/ircservices/files/ircservices.in +++ b/irc/ircservices/files/ircservices.in @@ -8,7 +8,7 @@ . /etc/rc.subr name=ircservices -rcvar=${name}_enable +rcvar=ircservices_enable command="%%PREFIX%%/sbin/${name}" command_args="-dir=%%PREFIX%%/etc/ircservices" diff --git a/irc/iroffer-dinoex/files/iroffer-dinoex.in b/irc/iroffer-dinoex/files/iroffer-dinoex.in index c8abb47..08ef365 100644 --- a/irc/iroffer-dinoex/files/iroffer-dinoex.in +++ b/irc/iroffer-dinoex/files/iroffer-dinoex.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="iroffer" -rcvar=`set_rcvar` +rcvar=iroffer_enable # read configuration and set defaults load_rc_config "$name" diff --git a/irc/minbif/files/minbif.in b/irc/minbif/files/minbif.in index 6947fef..10e689e 100644 --- a/irc/minbif/files/minbif.in +++ b/irc/minbif/files/minbif.in @@ -12,7 +12,7 @@ . /etc/rc.subr name="minbif" -rcvar=`set_rcvar` +rcvar=minbif_enable load_rc_config $name diff --git a/irc/ngircd/files/ngircd.in b/irc/ngircd/files/ngircd.in index d0ffeb7..68c54b8 100644 --- a/irc/ngircd/files/ngircd.in +++ b/irc/ngircd/files/ngircd.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="ngircd" -rcvar=`set_rcvar` +rcvar=ngircd_enable load_rc_config $name diff --git a/irc/quassel/files/quasselcore.in b/irc/quassel/files/quasselcore.in index 1039d04..19b9151 100644 --- a/irc/quassel/files/quasselcore.in +++ b/irc/quassel/files/quasselcore.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=quasselcore -rcvar=`set_rcvar` +rcvar=quasselcore_enable load_rc_config ${name} diff --git a/irc/ratbox-services/files/ratbox-services.sh.in b/irc/ratbox-services/files/ratbox-services.sh.in index e2467d2..5096eb5 100644 --- a/irc/ratbox-services/files/ratbox-services.sh.in +++ b/irc/ratbox-services/files/ratbox-services.sh.in @@ -7,7 +7,7 @@ . /etc/rc.subr name="ratbox_services" -rcvar=`set_rcvar` +rcvar=ratbox_services_enable load_rc_config $name ratbox_services_enable=${ratbox_services_enable:-"NO"} diff --git a/irc/thales/files/thales.sh.in b/irc/thales/files/thales.sh.in index 4c070fc..6e007ac 100644 --- a/irc/thales/files/thales.sh.in +++ b/irc/thales/files/thales.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="thales" -rcvar=`set_rcvar` +rcvar=thales_enable command="%%PREFIX%%/sbin/thales" diff --git a/irc/tircd/files/tircd.sh.in b/irc/tircd/files/tircd.sh.in index aaef1c8..eae1eda 100644 --- a/irc/tircd/files/tircd.sh.in +++ b/irc/tircd/files/tircd.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="tircd" -rcvar=${name}_enable +rcvar=tircd_enable command="%%PREFIX%%/bin/$name.pl" command_args="> /dev/null &" diff --git a/irc/tr-ircd/files/trircd.in b/irc/tr-ircd/files/trircd.in index 23af95c..fc0c3a3 100644 --- a/irc/tr-ircd/files/trircd.in +++ b/irc/tr-ircd/files/trircd.in @@ -12,6 +12,7 @@ . /etc/rc.subr name=trircd +rcvar=trircd_enable load_rc_config ${name} : ${trircd_enable="NO"} @@ -22,7 +23,6 @@ load_rc_config ${name} : ${trircd_pidfile=%%TRIRCD_RUNDIR%%/ircd.pid} : ${trircd_flags="-d ${trircd_confdir} -c ${trircd_conf} >/dev/null 2>&1"} -rcvar=`set_rcvar` command=%%PREFIX%%/bin/tr-ircd pidfile=${trircd_pidfile} required_files="${trircd_conf}" diff --git a/irc/undernet-ircu/files/undernet.sh.in b/irc/undernet-ircu/files/undernet.sh.in index 4eea938..e30e7a8 100644 --- a/irc/undernet-ircu/files/undernet.sh.in +++ b/irc/undernet-ircu/files/undernet.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=undernet -rcvar=`set_rcvar` +rcvar=undernet_enable load_rc_config ${name} diff --git a/irc/unreal/files/unrealircd.sh.in b/irc/unreal/files/unrealircd.sh.in index 57ffc03..9781f57 100644 --- a/irc/unreal/files/unrealircd.sh.in +++ b/irc/unreal/files/unrealircd.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="unrealircd" -rcvar=`set_rcvar` +rcvar=unrealircd_enable command="%%PREFIX%%/libexec/ircd" pidfile="%%RUNDIR%%/ircd.pid" diff --git a/japanese/FreeWnn-server/files/cwnn.sh.in b/japanese/FreeWnn-server/files/cwnn.sh.in index ba07c66..721bc7d 100644 --- a/japanese/FreeWnn-server/files/cwnn.sh.in +++ b/japanese/FreeWnn-server/files/cwnn.sh.in @@ -9,7 +9,7 @@ . /etc/rc.subr name=cwnn -rcvar=`set_rcvar` +rcvar=cwnn_enable command=%%PREFIX%%/bin/cWnn4/cserver procname=%%PREFIX%%/bin/cWnn4/cserver start_precmd=start_precmd diff --git a/japanese/FreeWnn-server/files/kwnn.sh.in b/japanese/FreeWnn-server/files/kwnn.sh.in index eeae088..fe7c4fa 100644 --- a/japanese/FreeWnn-server/files/kwnn.sh.in +++ b/japanese/FreeWnn-server/files/kwnn.sh.in @@ -9,7 +9,7 @@ . /etc/rc.subr name=kwnn -rcvar=`set_rcvar` +rcvar=kwnn_enable command=%%PREFIX%%/bin/kWnn4/kserver procname=%%PREFIX%%/bin/kWnn4/kserver start_precmd=start_precmd diff --git a/japanese/FreeWnn-server/files/twnn.sh.in b/japanese/FreeWnn-server/files/twnn.sh.in index 753d0b8..88b91c9 100644 --- a/japanese/FreeWnn-server/files/twnn.sh.in +++ b/japanese/FreeWnn-server/files/twnn.sh.in @@ -9,7 +9,7 @@ . /etc/rc.subr name=twnn -rcvar=`set_rcvar` +rcvar=twnn_enable command=%%PREFIX%%/bin/cWnn4/tserver procname=%%PREFIX%%/bin/cWnn4/tserver start_precmd=start_precmd diff --git a/japanese/FreeWnn-server/files/wnn.sh.in b/japanese/FreeWnn-server/files/wnn.sh.in index 1a76d023..1656fd9 100644 --- a/japanese/FreeWnn-server/files/wnn.sh.in +++ b/japanese/FreeWnn-server/files/wnn.sh.in @@ -9,7 +9,7 @@ . /etc/rc.subr name=wnn -rcvar=`set_rcvar` +rcvar=wnn_enable command=%%PREFIX%%/bin/Wnn4/jserver procname=%%PREFIX%%/bin/Wnn4/jserver start_precmd=start_precmd diff --git a/japanese/canna-server/files/canna.sh.in b/japanese/canna-server/files/canna.sh.in index 158d6c8..db9b910 100644 --- a/japanese/canna-server/files/canna.sh.in +++ b/japanese/canna-server/files/canna.sh.in @@ -25,7 +25,7 @@ canna_flags=${canna_flags:-"-u bin"} # Flags to canna program . /etc/rc.subr name="canna" -rcvar=`set_rcvar` +rcvar=canna_enable command="%%PREFIX%%/sbin/cannaserver" start_precmd="canna_start_precmd" stop_cmd="canna_stop_cmd" diff --git a/japanese/ebnetd/files/ebnetd.sh b/japanese/ebnetd/files/ebnetd.sh index c3cd2f5..ae55580 100644 --- a/japanese/ebnetd/files/ebnetd.sh +++ b/japanese/ebnetd/files/ebnetd.sh @@ -27,7 +27,7 @@ # ebnetd name=ebnetd -rcvar=`set_rcvar` +rcvar=ebnetd_enable command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/ebnetd/ebnd.pid" required_dirs="/var/run/ebnetd" @@ -44,7 +44,7 @@ run_rc_command "$1" # ndtpd name=ndtpd -rcvar=`set_rcvar` +rcvar=ndtpd_enable command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/ebnetd/${name}.pid" required_dirs="/var/run/ebnetd" @@ -61,7 +61,7 @@ run_rc_command "$1" # ebhttpd name=ebhttpd -rcvar=`set_rcvar` +rcvar=ebhttpd_enable command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/ebnetd/${name}.pid" required_dirs="/var/run/ebnetd" diff --git a/japanese/esecanna/files/esecanna.in b/japanese/esecanna/files/esecanna.in index 6306ecb..a88d1d4 100644 --- a/japanese/esecanna/files/esecanna.in +++ b/japanese/esecanna/files/esecanna.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=esecanna -rcvar=`set_rcvar` +rcvar=esecanna_enable esecannaserver=%%PREFIX%%/sbin/esecannaserver diff --git a/japanese/multiskkserv/files/multiskkserv.in b/japanese/multiskkserv/files/multiskkserv.in index 93740cd..e0c3a32 100644 --- a/japanese/multiskkserv/files/multiskkserv.in +++ b/japanese/multiskkserv/files/multiskkserv.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=multiskkserv -rcvar=`set_rcvar` +rcvar=multiskkserv_enable command=%%PREFIX%%/sbin/multiskkserv diff --git a/japanese/p5-Mail-SpamAssassin/files/sa-spamd.sh.in b/japanese/p5-Mail-SpamAssassin/files/sa-spamd.sh.in index ce42c0a..5398ea6 100644 --- a/japanese/p5-Mail-SpamAssassin/files/sa-spamd.sh.in +++ b/japanese/p5-Mail-SpamAssassin/files/sa-spamd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=spamd -rcvar=`set_rcvar` +rcvar=spamd_enable extra_commands="reload" load_rc_config $name diff --git a/japanese/rskkserv/files/rskkserv.sh.in b/japanese/rskkserv/files/rskkserv.sh.in index b9d1e91..80b9121 100644 --- a/japanese/rskkserv/files/rskkserv.sh.in +++ b/japanese/rskkserv/files/rskkserv.sh.in @@ -15,7 +15,7 @@ rskkserv_flags=${rskkserv_flags:-""} . /etc/rc.subr name="rskkserv" -rcvar=`set_rcvar` +rcvar=rskkserv_enable command="${prefix}/sbin/${name}" command_interpreter="${prefix}/bin/ruby" pidfile="/var/run/${name}.pid" diff --git a/japanese/sj3-server/files/sj3.sh.in b/japanese/sj3-server/files/sj3.sh.in index 3753bf7..6d00504 100644 --- a/japanese/sj3-server/files/sj3.sh.in +++ b/japanese/sj3-server/files/sj3.sh.in @@ -21,7 +21,7 @@ sj3_enable=${sj3_enable:-"NO"} # Enable sj3 . /etc/rc.subr name="sj3" -rcvar=`set_rcvar` +rcvar=sj3_enable command="%%PREFIX%%/sbin/sj3serv" start_precmd="sj3serv_precmd" diff --git a/japanese/skkserv/files/skkserv.sh.in b/japanese/skkserv/files/skkserv.sh.in index cf7e2ab..f2bbe58 100644 --- a/japanese/skkserv/files/skkserv.sh.in +++ b/japanese/skkserv/files/skkserv.sh.in @@ -9,7 +9,7 @@ . /etc/rc.subr name=skkserv -rcvar=`set_rcvar` +rcvar=skkserv_enable command=%%PREFIX%%/sbin/skkserv : ${skkserv_flags:="-a 127.0.0.1 -u skkserv"} diff --git a/japanese/tiarra/files/tiarra.in b/japanese/tiarra/files/tiarra.in index 816c367..4707de6 100644 --- a/japanese/tiarra/files/tiarra.in +++ b/japanese/tiarra/files/tiarra.in @@ -8,19 +8,17 @@ # BEFORE: LOGIN # KEYWORD: shutdown -prefix=%%PREFIX%% +. /etc/rc.subr + name="tiarra" +rcvar=tiarra_enable + +load_rc_config $name tiarra_enable=${tiarra_enable:-"NO"} tiarra_flags=${tiarra_flags:-"--quiet"} tiarra_user=${tiarra_user:-"%%TIARRA_USER%%"} -tiarra_chdir=${tiarra_chdir:-"${prefix}/${name}"} - -. /etc/rc.subr - -rcvar=`set_rcvar` - -load_rc_config $name +tiarra_chdir=${tiarra_chdir:-"%%PREFIX%%/${name}"} command="${tiarra_chdir}/${name}" command_interpreter="/usr/bin/perl" diff --git a/java/avis/files/avisd.in b/java/avis/files/avisd.in index 2b1c9f0..8cb6222 100644 --- a/java/avis/files/avisd.in +++ b/java/avis/files/avisd.in @@ -24,7 +24,7 @@ . /etc/rc.subr name="avisd" -rcvar=`set_rcvar` +rcvar=avisd_enable command=%%PREFIX%%/sbin/avisd command_interpreter=/bin/sh diff --git a/java/jboss5/files/jboss5.sh.in b/java/jboss5/files/jboss5.sh.in index 2f8bc2a..d497027 100644 --- a/java/jboss5/files/jboss5.sh.in +++ b/java/jboss5/files/jboss5.sh.in @@ -21,7 +21,7 @@ %%APP_SHORTNAME%%_logdir="%%LOG_DIR%%" name="%%APP_SHORTNAME%%" -rcvar=`set_rcvar` +rcvar=%%APP_SHORTNAME%%_enable load_rc_config $name diff --git a/lang/erlang/files/epmd.sh.in b/lang/erlang/files/epmd.sh.in index 7782174..acf9c58 100644 --- a/lang/erlang/files/epmd.sh.in +++ b/lang/erlang/files/epmd.sh.in @@ -15,7 +15,7 @@ epmd_enable=${epmd_enable:-"NO"} . /etc/rc.subr name=epmd -rcvar=`set_rcvar` +rcvar=epmd_enable procname=%%PREFIX%%/bin/epmd start_cmd="%%PREFIX%%/bin/epmd -daemon" diff --git a/lang/erlang14/files/epmd.sh.in b/lang/erlang14/files/epmd.sh.in index 7782174..acf9c58 100644 --- a/lang/erlang14/files/epmd.sh.in +++ b/lang/erlang14/files/epmd.sh.in @@ -15,7 +15,7 @@ epmd_enable=${epmd_enable:-"NO"} . /etc/rc.subr name=epmd -rcvar=`set_rcvar` +rcvar=epmd_enable procname=%%PREFIX%%/bin/epmd start_cmd="%%PREFIX%%/bin/epmd -daemon" diff --git a/lang/php5/files/php-fpm.in b/lang/php5/files/php-fpm.in index af61d93..55e2ac9 100644 --- a/lang/php5/files/php-fpm.in +++ b/lang/php5/files/php-fpm.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="php_fpm" -rcvar=`set_rcvar` +rcvar=php_fpm_enable load_rc_config "$name" diff --git a/lang/php52/files/php-fpm.in b/lang/php52/files/php-fpm.in index 4bf983f..ffa32344 100644 --- a/lang/php52/files/php-fpm.in +++ b/lang/php52/files/php-fpm.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="php_fpm" -rcvar=`set_rcvar` +rcvar=php_fpm_enable extra_commands="reload logrotate" diff --git a/lang/php53/files/php-fpm.in b/lang/php53/files/php-fpm.in index af61d93..55e2ac9 100644 --- a/lang/php53/files/php-fpm.in +++ b/lang/php53/files/php-fpm.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="php_fpm" -rcvar=`set_rcvar` +rcvar=php_fpm_enable load_rc_config "$name" diff --git a/lang/rexx-regina/files/rxstack.in b/lang/rexx-regina/files/rxstack.in index 7b9a9b7..58d2341 100644 --- a/lang/rexx-regina/files/rxstack.in +++ b/lang/rexx-regina/files/rxstack.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="rxstack" -rcvar=`set_rcvar` +rcvar=rxstack_enable command=%%PREFIX%%/bin/${name} diff --git a/mail/antivirus-milter/files/antivirus-milter.sh.in b/mail/antivirus-milter/files/antivirus-milter.sh.in index cee3319..8e56830 100644 --- a/mail/antivirus-milter/files/antivirus-milter.sh.in +++ b/mail/antivirus-milter/files/antivirus-milter.sh.in @@ -25,7 +25,7 @@ antivirus_socket=${antivirus_socket:-"%%ANTIVIRUS%%/antivirus.sock"} # Path to s . /etc/rc.subr name="antivirus" -rcvar=`set_rcvar` +rcvar=antivirus_enable command="%%PREFIX%%/libexec/antivirus" required_files="%%PREFIX%%/etc/antivirus.conf" start_precmd="antivirus_prestart" diff --git a/mail/anubis/files/anubis.in b/mail/anubis/files/anubis.in index 99b5e85..dded8c7 100644 --- a/mail/anubis/files/anubis.in +++ b/mail/anubis/files/anubis.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="anubis" -rcvar=`set_rcvar` +rcvar=anubis_enable load_rc_config ${name} diff --git a/mail/archiveopteryx/files/archiveopteryx.in b/mail/archiveopteryx/files/archiveopteryx.in index c65a334..620724f 100644 --- a/mail/archiveopteryx/files/archiveopteryx.in +++ b/mail/archiveopteryx/files/archiveopteryx.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="archiveopteryx" -rcvar=`set_rcvar` +rcvar=archiveopteryx_enable archiveopteryx_enable=${archiveopteryx_enable:-"NO"} pidfile=/var/run/${name}.pid diff --git a/mail/archivesmtp/files/archivesmtp.in b/mail/archivesmtp/files/archivesmtp.in index 6463f1c..dddeffa 100644 --- a/mail/archivesmtp/files/archivesmtp.in +++ b/mail/archivesmtp/files/archivesmtp.in @@ -6,7 +6,7 @@ . /etc/rc.subr name="archivesmtp" -rcvar=`set_rcvar` +rcvar=archivesmtp_enable command="%%PREFIX%%/sbin/${name}" diff --git a/mail/assp/files/510.assp.in b/mail/assp/files/510.assp.in index af074b4..9b8331a 100644 --- a/mail/assp/files/510.assp.in +++ b/mail/assp/files/510.assp.in @@ -20,7 +20,7 @@ fi . /etc/rc.subr name=assp -rcvar=`set_rcvar` +rcvar=assp_enable load_rc_config $name : ${assp_logexpire="45"} diff --git a/mail/assp/files/assp.in b/mail/assp/files/assp.in index 9fdd0b3..0105b5c 100644 --- a/mail/assp/files/assp.in +++ b/mail/assp/files/assp.in @@ -10,7 +10,7 @@ . /etc/rc.subr name=assp -rcvar=`set_rcvar` +rcvar=assp_enable command=%%PREFIX%%/sbin/assp command_interpreter=%%PERL%% diff --git a/mail/batv-milter/files/milter-batv.sh.in b/mail/batv-milter/files/milter-batv.sh.in index 8fdaee6..f9f9017 100644 --- a/mail/batv-milter/files/milter-batv.sh.in +++ b/mail/batv-milter/files/milter-batv.sh.in @@ -33,7 +33,7 @@ . /etc/rc.subr name="milterbatv" -rcvar=`set_rcvar` +rcvar=milterbatv_enable start_precmd="batv_prepcmd" stop_postcmd="batv_postcmd" diff --git a/mail/courier-imap/files/courier-imap-imapd-ssl.in b/mail/courier-imap/files/courier-imap-imapd-ssl.in index 5c140b5..526b696 100644 --- a/mail/courier-imap/files/courier-imap-imapd-ssl.in +++ b/mail/courier-imap/files/courier-imap-imapd-ssl.in @@ -18,7 +18,7 @@ courier_imap_imapd_ssl_enable=${courier_imap_imapd_ssl_enable-"NO"} . /etc/rc.subr name="courier_imap_imapd_ssl" -rcvar=`set_rcvar` +rcvar=courier_imap_imapd_ssl_enable command="%%PREFIX%%/libexec/courier-imap/imapd-ssl.rc" pidfile="/var/run/imapd-ssl.pid" procname="%%PREFIX%%/sbin/courierlogger" diff --git a/mail/courier-imap/files/courier-imap-imapd.in b/mail/courier-imap/files/courier-imap-imapd.in index 783a18c..9115554 100644 --- a/mail/courier-imap/files/courier-imap-imapd.in +++ b/mail/courier-imap/files/courier-imap-imapd.in @@ -18,7 +18,7 @@ courier_imap_imapd_enable=${courier_imap_imapd_enable-"NO"} . /etc/rc.subr name="courier_imap_imapd" -rcvar=`set_rcvar` +rcvar=courier_imap_imapd_enable command="%%PREFIX%%/libexec/courier-imap/imapd.rc" pidfile="/var/run/imapd.pid" procname="%%PREFIX%%/sbin/courierlogger" diff --git a/mail/courier-imap/files/courier-imap-pop3d-ssl.in b/mail/courier-imap/files/courier-imap-pop3d-ssl.in index 165ab12..03072bd 100644 --- a/mail/courier-imap/files/courier-imap-pop3d-ssl.in +++ b/mail/courier-imap/files/courier-imap-pop3d-ssl.in @@ -18,7 +18,7 @@ courier_imap_pop3d_ssl_enable=${courier_imap_pop3d_ssl_enable-"NO"} . /etc/rc.subr name="courier_imap_pop3d_ssl" -rcvar=`set_rcvar` +rcvar=courier_imap_pop3d_ssl_enable command="%%PREFIX%%/libexec/courier-imap/pop3d-ssl.rc" pidfile="/var/run/pop3d-ssl.pid" procname="%%PREFIX%%/sbin/courierlogger" diff --git a/mail/courier-imap/files/courier-imap-pop3d.in b/mail/courier-imap/files/courier-imap-pop3d.in index 5f8d3fc..8d002db 100644 --- a/mail/courier-imap/files/courier-imap-pop3d.in +++ b/mail/courier-imap/files/courier-imap-pop3d.in @@ -18,7 +18,7 @@ courier_imap_pop3d_enable=${courier_imap_pop3d_enable-"NO"} . /etc/rc.subr name="courier_imap_pop3d" -rcvar=`set_rcvar` +rcvar=courier_imap_pop3d_enable command="%%PREFIX%%/libexec/courier-imap/pop3d.rc" pidfile="/var/run/pop3d.pid" procname="%%PREFIX%%/sbin/courierlogger" diff --git a/mail/courier/files/courier.sh.in b/mail/courier/files/courier.sh.in index 977b14d..38e676c 100644 --- a/mail/courier/files/courier.sh.in +++ b/mail/courier/files/courier.sh.in @@ -36,7 +36,7 @@ courier_enable=${courier_enable:-"NO"} # Run Courier-MTA (YES/NO). . /etc/rc.subr name="courier" -rcvar=`set_rcvar` +rcvar=courier_enable start_precmd="${name}_prestart" start_cmd="${name}_start" diff --git a/mail/couriergraph/files/couriergraph.sh.in b/mail/couriergraph/files/couriergraph.sh.in index 33fb155..c398592 100644 --- a/mail/couriergraph/files/couriergraph.sh.in +++ b/mail/couriergraph/files/couriergraph.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=couriergraph -rcvar=`set_rcvar` +rcvar=couriergraph_enable command=%%PREFIX%%/sbin/couriergraph.pl > /dev/null 2>&1 command_interpreter=/usr/bin/perl diff --git a/mail/cyrus-imapd2/files/imapd.sh.in b/mail/cyrus-imapd2/files/imapd.sh.in index 4fc58fb..1af0b40 100644 --- a/mail/cyrus-imapd2/files/imapd.sh.in +++ b/mail/cyrus-imapd2/files/imapd.sh.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="cyrus_imapd" -rcvar=`set_rcvar` +rcvar=cyrus_imapd_enable command="%%PREFIX%%/cyrus/bin/master" pidfile="/var/run/cyrus-master.pid" required_files="%%PREFIX%%/etc/cyrus.conf %%PREFIX%%/etc/imapd.conf" diff --git a/mail/cyrus-imapd22/files/imapd.sh.in b/mail/cyrus-imapd22/files/imapd.sh.in index 4fc58fb..1af0b40 100644 --- a/mail/cyrus-imapd22/files/imapd.sh.in +++ b/mail/cyrus-imapd22/files/imapd.sh.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="cyrus_imapd" -rcvar=`set_rcvar` +rcvar=cyrus_imapd_enable command="%%PREFIX%%/cyrus/bin/master" pidfile="/var/run/cyrus-master.pid" required_files="%%PREFIX%%/etc/cyrus.conf %%PREFIX%%/etc/imapd.conf" diff --git a/mail/cyrus-imapd23/files/imapd.sh.in b/mail/cyrus-imapd23/files/imapd.sh.in index 4fc58fb..1af0b40 100644 --- a/mail/cyrus-imapd23/files/imapd.sh.in +++ b/mail/cyrus-imapd23/files/imapd.sh.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="cyrus_imapd" -rcvar=`set_rcvar` +rcvar=cyrus_imapd_enable command="%%PREFIX%%/cyrus/bin/master" pidfile="/var/run/cyrus-master.pid" required_files="%%PREFIX%%/etc/cyrus.conf %%PREFIX%%/etc/imapd.conf" diff --git a/mail/cyrus-imapd24/files/imapd.sh.in b/mail/cyrus-imapd24/files/imapd.sh.in index 4fc58fb..1af0b40 100644 --- a/mail/cyrus-imapd24/files/imapd.sh.in +++ b/mail/cyrus-imapd24/files/imapd.sh.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="cyrus_imapd" -rcvar=`set_rcvar` +rcvar=cyrus_imapd_enable command="%%PREFIX%%/cyrus/bin/master" pidfile="/var/run/cyrus-master.pid" required_files="%%PREFIX%%/etc/cyrus.conf %%PREFIX%%/etc/imapd.conf" diff --git a/mail/davmail/files/davmail.in b/mail/davmail/files/davmail.in index 24415bf..0e0dec6 100644 --- a/mail/davmail/files/davmail.in +++ b/mail/davmail/files/davmail.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="davmail" -rcvar=`set_rcvar` +rcvar=davmail_enable load_rc_config $name diff --git a/mail/dbmail/files/dbmail-imapd.sh.in b/mail/dbmail/files/dbmail-imapd.sh.in index 66d4e34..7d1ca96 100644 --- a/mail/dbmail/files/dbmail-imapd.sh.in +++ b/mail/dbmail/files/dbmail-imapd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_imapd -rcvar=`set_rcvar` +rcvar=dbmail_imapd_enable command=%%PREFIX%%/sbin/dbmail-imapd pidfile=/var/run/dbmail-imapd.pid diff --git a/mail/dbmail/files/dbmail-lmtpd.sh.in b/mail/dbmail/files/dbmail-lmtpd.sh.in index 97677ad..f1805db 100644 --- a/mail/dbmail/files/dbmail-lmtpd.sh.in +++ b/mail/dbmail/files/dbmail-lmtpd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_lmtpd -rcvar=`set_rcvar` +rcvar=dbmail_lmtpd_enable command=%%PREFIX%%/sbin/dbmail-lmtpd pidfile=/var/run/dbmail-lmtpd.pid diff --git a/mail/dbmail/files/dbmail-pop3d.sh.in b/mail/dbmail/files/dbmail-pop3d.sh.in index 2430180..71a567f 100644 --- a/mail/dbmail/files/dbmail-pop3d.sh.in +++ b/mail/dbmail/files/dbmail-pop3d.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_pop3d -rcvar=`set_rcvar` +rcvar=dbmail_pop3d_enable command=%%PREFIX%%/sbin/dbmail-pop3d pidfile=/var/run/dbmail-pop3d.pid diff --git a/mail/dbmail/files/dbmail-timsieved.sh.in b/mail/dbmail/files/dbmail-timsieved.sh.in index 5db24ff..27eb495 100644 --- a/mail/dbmail/files/dbmail-timsieved.sh.in +++ b/mail/dbmail/files/dbmail-timsieved.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_timsieved -rcvar=`set_rcvar` +rcvar=dbmail_timsieved_enable command=%%PREFIX%%/sbin/dbmail-timsieved pidfile=/var/run/dbmail-timsieved.pid diff --git a/mail/dbmail20/files/dbmail-imapd.sh.in b/mail/dbmail20/files/dbmail-imapd.sh.in index 66d4e34..7d1ca96 100644 --- a/mail/dbmail20/files/dbmail-imapd.sh.in +++ b/mail/dbmail20/files/dbmail-imapd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_imapd -rcvar=`set_rcvar` +rcvar=dbmail_imapd_enable command=%%PREFIX%%/sbin/dbmail-imapd pidfile=/var/run/dbmail-imapd.pid diff --git a/mail/dbmail20/files/dbmail-lmtpd.sh.in b/mail/dbmail20/files/dbmail-lmtpd.sh.in index 97677ad..f1805db 100644 --- a/mail/dbmail20/files/dbmail-lmtpd.sh.in +++ b/mail/dbmail20/files/dbmail-lmtpd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_lmtpd -rcvar=`set_rcvar` +rcvar=dbmail_lmtpd_enable command=%%PREFIX%%/sbin/dbmail-lmtpd pidfile=/var/run/dbmail-lmtpd.pid diff --git a/mail/dbmail20/files/dbmail-pop3d.sh.in b/mail/dbmail20/files/dbmail-pop3d.sh.in index 2430180..71a567f 100644 --- a/mail/dbmail20/files/dbmail-pop3d.sh.in +++ b/mail/dbmail20/files/dbmail-pop3d.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_pop3d -rcvar=`set_rcvar` +rcvar=dbmail_pop3d_enable command=%%PREFIX%%/sbin/dbmail-pop3d pidfile=/var/run/dbmail-pop3d.pid diff --git a/mail/dbmail21/files/dbmail-imapd.sh.in b/mail/dbmail21/files/dbmail-imapd.sh.in index 66d4e34..7d1ca96 100644 --- a/mail/dbmail21/files/dbmail-imapd.sh.in +++ b/mail/dbmail21/files/dbmail-imapd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_imapd -rcvar=`set_rcvar` +rcvar=dbmail_imapd_enable command=%%PREFIX%%/sbin/dbmail-imapd pidfile=/var/run/dbmail-imapd.pid diff --git a/mail/dbmail21/files/dbmail-lmtpd.sh.in b/mail/dbmail21/files/dbmail-lmtpd.sh.in index 97677ad..f1805db 100644 --- a/mail/dbmail21/files/dbmail-lmtpd.sh.in +++ b/mail/dbmail21/files/dbmail-lmtpd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_lmtpd -rcvar=`set_rcvar` +rcvar=dbmail_lmtpd_enable command=%%PREFIX%%/sbin/dbmail-lmtpd pidfile=/var/run/dbmail-lmtpd.pid diff --git a/mail/dbmail21/files/dbmail-pop3d.sh.in b/mail/dbmail21/files/dbmail-pop3d.sh.in index 8219921..afb34fb 100644 --- a/mail/dbmail21/files/dbmail-pop3d.sh.in +++ b/mail/dbmail21/files/dbmail-pop3d.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_pop3d -rcvar=`set_rcvar` +rcvar=dbmail_pop3d_enable command=%%PREFIX%%/sbin/dbmail-pop3d pidfile=/var/run/dbmail-pop3d.pid diff --git a/mail/dbmail21/files/dbmail-timsieved.sh.in b/mail/dbmail21/files/dbmail-timsieved.sh.in index 5db24ff..27eb495 100644 --- a/mail/dbmail21/files/dbmail-timsieved.sh.in +++ b/mail/dbmail21/files/dbmail-timsieved.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_timsieved -rcvar=`set_rcvar` +rcvar=dbmail_timsieved_enable command=%%PREFIX%%/sbin/dbmail-timsieved pidfile=/var/run/dbmail-timsieved.pid diff --git a/mail/dbmail22/files/dbmail-imapd.sh.in b/mail/dbmail22/files/dbmail-imapd.sh.in index 66d4e34..7d1ca96 100644 --- a/mail/dbmail22/files/dbmail-imapd.sh.in +++ b/mail/dbmail22/files/dbmail-imapd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_imapd -rcvar=`set_rcvar` +rcvar=dbmail_imapd_enable command=%%PREFIX%%/sbin/dbmail-imapd pidfile=/var/run/dbmail-imapd.pid diff --git a/mail/dbmail22/files/dbmail-lmtpd.sh.in b/mail/dbmail22/files/dbmail-lmtpd.sh.in index 97677ad..f1805db 100644 --- a/mail/dbmail22/files/dbmail-lmtpd.sh.in +++ b/mail/dbmail22/files/dbmail-lmtpd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_lmtpd -rcvar=`set_rcvar` +rcvar=dbmail_lmtpd_enable command=%%PREFIX%%/sbin/dbmail-lmtpd pidfile=/var/run/dbmail-lmtpd.pid diff --git a/mail/dbmail22/files/dbmail-pop3d.sh.in b/mail/dbmail22/files/dbmail-pop3d.sh.in index 2430180..71a567f 100644 --- a/mail/dbmail22/files/dbmail-pop3d.sh.in +++ b/mail/dbmail22/files/dbmail-pop3d.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_pop3d -rcvar=`set_rcvar` +rcvar=dbmail_pop3d_enable command=%%PREFIX%%/sbin/dbmail-pop3d pidfile=/var/run/dbmail-pop3d.pid diff --git a/mail/dbmail22/files/dbmail-timsieved.sh.in b/mail/dbmail22/files/dbmail-timsieved.sh.in index 5db24ff..27eb495 100644 --- a/mail/dbmail22/files/dbmail-timsieved.sh.in +++ b/mail/dbmail22/files/dbmail-timsieved.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_timsieved -rcvar=`set_rcvar` +rcvar=dbmail_timsieved_enable command=%%PREFIX%%/sbin/dbmail-timsieved pidfile=/var/run/dbmail-timsieved.pid diff --git a/mail/dbmail23/files/dbmail-imapd.sh.in b/mail/dbmail23/files/dbmail-imapd.sh.in index 66d4e34..7d1ca96 100644 --- a/mail/dbmail23/files/dbmail-imapd.sh.in +++ b/mail/dbmail23/files/dbmail-imapd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_imapd -rcvar=`set_rcvar` +rcvar=dbmail_imapd_enable command=%%PREFIX%%/sbin/dbmail-imapd pidfile=/var/run/dbmail-imapd.pid diff --git a/mail/dbmail23/files/dbmail-lmtpd.sh.in b/mail/dbmail23/files/dbmail-lmtpd.sh.in index 97677ad..f1805db 100644 --- a/mail/dbmail23/files/dbmail-lmtpd.sh.in +++ b/mail/dbmail23/files/dbmail-lmtpd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_lmtpd -rcvar=`set_rcvar` +rcvar=dbmail_lmtpd_enable command=%%PREFIX%%/sbin/dbmail-lmtpd pidfile=/var/run/dbmail-lmtpd.pid diff --git a/mail/dbmail23/files/dbmail-pop3d.sh.in b/mail/dbmail23/files/dbmail-pop3d.sh.in index 2430180..71a567f 100644 --- a/mail/dbmail23/files/dbmail-pop3d.sh.in +++ b/mail/dbmail23/files/dbmail-pop3d.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_pop3d -rcvar=`set_rcvar` +rcvar=dbmail_pop3d_enable command=%%PREFIX%%/sbin/dbmail-pop3d pidfile=/var/run/dbmail-pop3d.pid diff --git a/mail/dbmail23/files/dbmail-timsieved.sh.in b/mail/dbmail23/files/dbmail-timsieved.sh.in index 5db24ff..27eb495 100644 --- a/mail/dbmail23/files/dbmail-timsieved.sh.in +++ b/mail/dbmail23/files/dbmail-timsieved.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=dbmail_timsieved -rcvar=`set_rcvar` +rcvar=dbmail_timsieved_enable command=%%PREFIX%%/sbin/dbmail-timsieved pidfile=/var/run/dbmail-timsieved.pid diff --git a/mail/dcc-dccd/files/dccd.sh.in b/mail/dcc-dccd/files/dccd.sh.in index 1de2096..5618e42 100644 --- a/mail/dcc-dccd/files/dccd.sh.in +++ b/mail/dcc-dccd/files/dccd.sh.in @@ -25,7 +25,7 @@ . /etc/rc.subr name=dccd -rcvar=`set_rcvar` +rcvar=dccd_enable load_rc_config $name diff --git a/mail/dcc-dccd/files/dccgrey.sh.in b/mail/dcc-dccd/files/dccgrey.sh.in index df2e6c0..87267ba 100644 --- a/mail/dcc-dccd/files/dccgrey.sh.in +++ b/mail/dcc-dccd/files/dccgrey.sh.in @@ -25,7 +25,7 @@ . /etc/rc.subr name=dccgrey -rcvar=`set_rcvar` +rcvar=dccgrey_enable load_rc_config $name diff --git a/mail/dcc-dccd/files/dccifd.sh.in b/mail/dcc-dccd/files/dccifd.sh.in index 7a5d205..95fa8cd 100644 --- a/mail/dcc-dccd/files/dccifd.sh.in +++ b/mail/dcc-dccd/files/dccifd.sh.in @@ -25,7 +25,7 @@ . /etc/rc.subr name=dccifd -rcvar=`set_rcvar` +rcvar=dccifd_enable load_rc_config $name diff --git a/mail/dcc-dccd/files/dccm.sh.in b/mail/dcc-dccd/files/dccm.sh.in index 4e3a240..4ef5ea5 100644 --- a/mail/dcc-dccd/files/dccm.sh.in +++ b/mail/dcc-dccd/files/dccm.sh.in @@ -25,7 +25,7 @@ . /etc/rc.subr name=dccm -rcvar=`set_rcvar` +rcvar=dccm_enable load_rc_config $name diff --git a/mail/dk-milter/files/milter-dk.sh.in b/mail/dk-milter/files/milter-dk.sh.in index 07310a9..8027d75 100644 --- a/mail/dk-milter/files/milter-dk.sh.in +++ b/mail/dk-milter/files/milter-dk.sh.in @@ -32,7 +32,7 @@ . /etc/rc.subr name="milterdk" -rcvar=`set_rcvar` +rcvar=milterdk_enable load_rc_config $name # DO NOT CHANGE THESE DEFAULT VALUES HERE diff --git a/mail/dkfilter/files/dkfilter_in.in b/mail/dkfilter/files/dkfilter_in.in index f11ec2b..06ec480 100644 --- a/mail/dkfilter/files/dkfilter_in.in +++ b/mail/dkfilter/files/dkfilter_in.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=dkfilter_in -rcvar=`set_rcvar` +rcvar=dkfilter_in_enable # set defaults diff --git a/mail/dkfilter/files/dkfilter_out.in b/mail/dkfilter/files/dkfilter_out.in index 6fb1264..afdd604 100644 --- a/mail/dkfilter/files/dkfilter_out.in +++ b/mail/dkfilter/files/dkfilter_out.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="dkfilter_out" -rcvar=`set_rcvar` +rcvar=dkfilter_out_enable # set defaults diff --git a/mail/dkimproxy/files/dkimproxy_in.in b/mail/dkimproxy/files/dkimproxy_in.in index 4d78fd1..49f48d6 100644 --- a/mail/dkimproxy/files/dkimproxy_in.in +++ b/mail/dkimproxy/files/dkimproxy_in.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=dkimproxy_in -rcvar=`set_rcvar` +rcvar=dkimproxy_in_enable # set defaults : ${dkimproxy_in_enable="NO"} diff --git a/mail/dkimproxy/files/dkimproxy_out.in b/mail/dkimproxy/files/dkimproxy_out.in index cd8a041..f74da88 100644 --- a/mail/dkimproxy/files/dkimproxy_out.in +++ b/mail/dkimproxy/files/dkimproxy_out.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=dkimproxy_out -rcvar=`set_rcvar` +rcvar=dkimproxy_out_enable # set defaults : ${dkimproxy_out_enable="NO"} diff --git a/mail/dma/files/dma_flushq.in b/mail/dma/files/dma_flushq.in index e369b83..9b814a3 100644 --- a/mail/dma/files/dma_flushq.in +++ b/mail/dma/files/dma_flushq.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="dma_flushq" -rcvar=${name}_enable +rcvar=dma_flushq_enable load_rc_config ${name} diff --git a/mail/dovecot/files/dovecot.sh.in b/mail/dovecot/files/dovecot.sh.in index 7d75a9f..cadfadc 100644 --- a/mail/dovecot/files/dovecot.sh.in +++ b/mail/dovecot/files/dovecot.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name=dovecot -rcvar=`set_rcvar` +rcvar=dovecot_enable # read configuration and set defaults load_rc_config ${name} diff --git a/mail/dovecot2/files/dovecot.sh.in b/mail/dovecot2/files/dovecot.sh.in index 35fe743..8c7a91d 100644 --- a/mail/dovecot2/files/dovecot.sh.in +++ b/mail/dovecot2/files/dovecot.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name=dovecot -rcvar=`set_rcvar` +rcvar=dovecot_enable # read configuration and set defaults load_rc_config ${name} diff --git a/mail/drac/files/dracd.sh.in b/mail/drac/files/dracd.sh.in index 14dd608..83054f7 100644 --- a/mail/drac/files/dracd.sh.in +++ b/mail/drac/files/dracd.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="dracd" -rcvar=`set_rcvar` +rcvar=dracd_enable command="%%PREFIX%%/sbin/rpc.dracd" load_rc_config $name diff --git a/mail/dspam-devel/files/dspam-devel.in b/mail/dspam-devel/files/dspam-devel.in index 3e6564c..becc8b8 100644 --- a/mail/dspam-devel/files/dspam-devel.in +++ b/mail/dspam-devel/files/dspam-devel.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="dspam" -rcvar=${name}_enable +rcvar=dspam_enable load_rc_config $name diff --git a/mail/dspam/files/dspam.in b/mail/dspam/files/dspam.in index c675686..2a933eb 100644 --- a/mail/dspam/files/dspam.in +++ b/mail/dspam/files/dspam.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="dspam" -rcvar=${name}_enable +rcvar=dspam_enable load_rc_config $name diff --git a/mail/enma/files/milter-enma.in b/mail/enma/files/milter-enma.in index 219ac4f..1a677aa 100644 --- a/mail/enma/files/milter-enma.in +++ b/mail/enma/files/milter-enma.in @@ -29,7 +29,7 @@ milterenma_uid=${milterenma_uid:-"mailnull"} . /etc/rc.subr name="milterenma" -rcvar=`set_rcvar` +rcvar=milterenma_enable load_rc_config $name diff --git a/mail/exilog/files/exilog.sh.in b/mail/exilog/files/exilog.sh.in index 66b77e3..887be6c 100644 --- a/mail/exilog/files/exilog.sh.in +++ b/mail/exilog/files/exilog.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name=exilog -rcvar=`set_rcvar` +rcvar=exilog_enable command=%%PREFIX%%/sbin/exilog_agent.pl pidfile=/var/run/exilog.pid diff --git a/mail/exim/files/exim.sh.in b/mail/exim/files/exim.sh.in index 49f62bf..119be1e 100644 --- a/mail/exim/files/exim.sh.in +++ b/mail/exim/files/exim.sh.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=exim -rcvar=`set_rcvar` +rcvar=exim_enable command=%%PREFIX%%/sbin/exim pidfile=/var/run/exim.pid diff --git a/mail/fetchmail/files/fetchmail.in b/mail/fetchmail/files/fetchmail.in index 953ee82..41723cc 100644 --- a/mail/fetchmail/files/fetchmail.in +++ b/mail/fetchmail/files/fetchmail.in @@ -59,7 +59,7 @@ . /etc/rc.subr name=fetchmail -rcvar=`set_rcvar` +rcvar=fetchmail_enable command=%%PREFIX%%/bin/${name} pidfile=/var/run/fetchmail/${name}.pid diff --git a/mail/gld/files/gld.in b/mail/gld/files/gld.in index 74218f4..d61f6fe 100644 --- a/mail/gld/files/gld.in +++ b/mail/gld/files/gld.in @@ -18,7 +18,7 @@ . /etc/rc.subr name=gld -rcvar=`set_rcvar` +rcvar=gld_enable load_rc_config $name diff --git a/mail/james/files/james.sh.in b/mail/james/files/james.sh.in index 3f78bfb..838ae5f 100644 --- a/mail/james/files/james.sh.in +++ b/mail/james/files/james.sh.in @@ -52,7 +52,7 @@ james%%JAMES_VERSION%%_stop_timeout="${james%%JAMES_VERSION%%_stop_timeout:-"10" . /etc/rc.subr name="james%%JAMES_VERSION%%" -rcvar=`set_rcvar` +rcvar=james%%JAMES_VERSION%%_enable pidfile="%%PID_FILE%%" JAVA_HOME=%%JAVA_HOME%% diff --git a/mail/mailgraph/files/mailgraph.in b/mail/mailgraph/files/mailgraph.in index bcbcdc3..a619e77 100644 --- a/mail/mailgraph/files/mailgraph.in +++ b/mail/mailgraph/files/mailgraph.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="mailgraph" -rcvar=`set_rcvar` +rcvar=mailgraph_enable command=%%PREFIX%%/sbin/${name}.pl > /dev/null 2>&1 command_interpreter=/usr/bin/perl diff --git a/mail/mailman/files/mailman.in b/mail/mailman/files/mailman.in index 6e5e68da..6efc839 100644 --- a/mail/mailman/files/mailman.in +++ b/mail/mailman/files/mailman.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="mailman" -rcvar=${name}_enable +rcvar=mailman_enable pidfile="%%MAILMANDIR%%/data/master-qrunner.pid" diff --git a/mail/mailscanner/files/mailscanner.in b/mail/mailscanner/files/mailscanner.in index c6d821f..f4832a0 100644 --- a/mail/mailscanner/files/mailscanner.in +++ b/mail/mailscanner/files/mailscanner.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="mailscanner" -rcvar=`set_rcvar` +rcvar=mailscanner_enable load_rc_config $name diff --git a/mail/mailscanner/files/mta.in b/mail/mailscanner/files/mta.in index 65c78c0..d1de08b 100644 --- a/mail/mailscanner/files/mta.in +++ b/mail/mailscanner/files/mta.in @@ -61,7 +61,7 @@ PATH=$PATH:/sbin:/usr/sbin; export PATH . /etc/rc.subr name="mta" -rcvar=`set_rcvar` +rcvar=mta_enable _mta_rc_script="%%PREFIX%%/etc/rc.d/mta" diff --git a/mail/mailscanner/files/patch-bin-cron-update_phishing_sites.cron b/mail/mailscanner/files/patch-bin-cron-update_phishing_sites.cron index 54a2399..c2bc49f 100644 --- a/mail/mailscanner/files/patch-bin-cron-update_phishing_sites.cron +++ b/mail/mailscanner/files/patch-bin-cron-update_phishing_sites.cron @@ -18,7 +18,7 @@ +. /etc/rc.subr + +name="mailscanner" -+rcvar=`set_rcvar` ++rcvar=mailscanner_enable + +load_rc_config $name + diff --git a/mail/mailscanner/files/patch-bin-cron-update_virus_scanners.cron b/mail/mailscanner/files/patch-bin-cron-update_virus_scanners.cron index a697686..c926a5e 100644 --- a/mail/mailscanner/files/patch-bin-cron-update_virus_scanners.cron +++ b/mail/mailscanner/files/patch-bin-cron-update_virus_scanners.cron @@ -18,7 +18,7 @@ +. /etc/rc.subr + +name="mailscanner" -+rcvar=`set_rcvar` ++rcvar=mailscanner_enable + +load_rc_config $name + diff --git a/mail/masqmail/files/masqmail.in b/mail/masqmail/files/masqmail.in index 1af5b37..75a0c5a 100644 --- a/mail/masqmail/files/masqmail.in +++ b/mail/masqmail/files/masqmail.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=masqmail -rcvar=`set_rcvar` +rcvar=masqmail_enable command=%%PREFIX%%/sbin/masqmail required_dirs=/var/log/masqmail diff --git a/mail/milter-bogom/files/milter-bogom.sh.in b/mail/milter-bogom/files/milter-bogom.sh.in index d4768dd..778dccd 100644 --- a/mail/milter-bogom/files/milter-bogom.sh.in +++ b/mail/milter-bogom/files/milter-bogom.sh.in @@ -8,7 +8,7 @@ . /etc/rc.subr name=milterbogom -rcvar=`set_rcvar` +rcvar=milterbogom_enable command=%%PREFIX%%/sbin/bogom start_precmd="bogom_precmd" stop_postcmd="bogom_postcmd" diff --git a/mail/milter-callback/files/milter-callback.in b/mail/milter-callback/files/milter-callback.in index 82f613d..d5ed535 100644 --- a/mail/milter-callback/files/milter-callback.in +++ b/mail/milter-callback/files/milter-callback.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="miltercallback" -rcvar=`set_rcvar` +rcvar=miltercallback_enable command="%%PREFIX%%/libexec/milter-callback" required_files="%%PREFIX%%/etc/mail/milter-callback.conf" diff --git a/mail/milter-greylist-devel/files/milter-greylist.in b/mail/milter-greylist-devel/files/milter-greylist.in index 1118676..3bb7757 100644 --- a/mail/milter-greylist-devel/files/milter-greylist.in +++ b/mail/milter-greylist-devel/files/milter-greylist.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="miltergreylist" -rcvar=`set_rcvar` +rcvar=miltergreylist_enable command="%%PREFIX%%/bin/milter-greylist" load_rc_config $name diff --git a/mail/milter-greylist/files/milter-greylist.in b/mail/milter-greylist/files/milter-greylist.in index 5a6afb4..1581175 100644 --- a/mail/milter-greylist/files/milter-greylist.in +++ b/mail/milter-greylist/files/milter-greylist.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="miltergreylist" -rcvar=`set_rcvar` +rcvar=miltergreylist_enable command="%%PREFIX%%/libexec/milter-greylist" diff --git a/mail/milter-manager/files/milter-manager.in b/mail/milter-manager/files/milter-manager.in index 8a63f44..271922c 100644 --- a/mail/milter-manager/files/milter-manager.in +++ b/mail/milter-manager/files/milter-manager.in @@ -33,7 +33,7 @@ . /etc/rc.subr name="miltermanager" -rcvar=`set_rcvar` +rcvar=miltermanager_enable extra_commands="reload" start_precmd="manager_precmd" diff --git a/mail/milter-regex/files/milterregex.sh.in b/mail/milter-regex/files/milterregex.sh.in index 0ee9590..96e3621 100644 --- a/mail/milter-regex/files/milterregex.sh.in +++ b/mail/milter-regex/files/milterregex.sh.in @@ -25,7 +25,7 @@ spooldir=%%SPOOLDIR%% . /etc/rc.subr name="milterregex" -rcvar=`set_rcvar` +rcvar=milterregex_enable command="%%PREFIX%%/libexec/milter-regex" pidfile="${spooldir}/milter-regex.pid" required_files="%%PREFIX%%/etc/milter-regex.conf" diff --git a/mail/missey/files/mps.sh.in b/mail/missey/files/mps.sh.in index cf5c8c5..fce0843 100644 --- a/mail/missey/files/mps.sh.in +++ b/mail/missey/files/mps.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="mps" -rcvar=`set_rcvar` +rcvar=mps_enable load_rc_config $name diff --git a/mail/mixminion/files/mixminiond.in b/mail/mixminion/files/mixminiond.in index 6c32b36..656ce26 100644 --- a/mail/mixminion/files/mixminiond.in +++ b/mail/mixminion/files/mixminiond.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="mixminiond" -rcvar=${name}_enable +rcvar=mixminiond_enable load_rc_config ${name} diff --git a/mail/noattach/files/noattach.sh.in b/mail/noattach/files/noattach.sh.in index c11bd36..7d1cc88 100644 --- a/mail/noattach/files/noattach.sh.in +++ b/mail/noattach/files/noattach.sh.in @@ -26,7 +26,7 @@ noattach_socket=${noattach_socket:-"/var/run/noattach"} # Path to socket . /etc/rc.subr name="noattach" -rcvar=`set_rcvar` +rcvar=noattach_enable command="%%PREFIX%%/libexec/${name}" required_files="%%PREFIX%%/etc/noattach.patterns" start_precmd="noattach_prestart" diff --git a/mail/nullmailer/files/nullmailer.in b/mail/nullmailer/files/nullmailer.in index 197c4b3..5eb8039 100644 --- a/mail/nullmailer/files/nullmailer.in +++ b/mail/nullmailer/files/nullmailer.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=nullmailer -rcvar=`set_rcvar` +rcvar=nullmailer_enable command=/usr/sbin/daemon procname=%%PREFIX%%/sbin/nullmailer-send diff --git a/mail/opendkim/files/milter-opendkim.in b/mail/opendkim/files/milter-opendkim.in index a21f95e..c69ba0b 100644 --- a/mail/opendkim/files/milter-opendkim.in +++ b/mail/opendkim/files/milter-opendkim.in @@ -34,7 +34,7 @@ . /etc/rc.subr name="milteropendkim" -rcvar=`set_rcvar` +rcvar=milteropendkim_enable extra_commands="reload" start_precmd="dkim_prepcmd" diff --git a/mail/ovs/files/ovs.sh.in b/mail/ovs/files/ovs.sh.in index 229c769..1c8e16b 100644 --- a/mail/ovs/files/ovs.sh.in +++ b/mail/ovs/files/ovs.sh.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="ovs" -rcvar=`set_rcvar` +rcvar=ovs_enable command=%%PREFIX%%/sbin/${name}.pl > /dev/null 2>&1 command_interpreter=/usr/bin/perl diff --git a/mail/p3scan/files/p3scan.in b/mail/p3scan/files/p3scan.in index dde820b..09e185b 100644 --- a/mail/p3scan/files/p3scan.in +++ b/mail/p3scan/files/p3scan.in @@ -15,7 +15,7 @@ . /etc/rc.subr name=p3scan -rcvar=`set_rcvar` +rcvar=p3scan_enable required_files=%%PREFIX%%/etc/p3scan/p3scan.conf diff --git a/mail/p5-Mail-SpamAssassin/files/sa-spamd.sh.in b/mail/p5-Mail-SpamAssassin/files/sa-spamd.sh.in index ce42c0a..5398ea6 100644 --- a/mail/p5-Mail-SpamAssassin/files/sa-spamd.sh.in +++ b/mail/p5-Mail-SpamAssassin/files/sa-spamd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=spamd -rcvar=`set_rcvar` +rcvar=spamd_enable extra_commands="reload" load_rc_config $name diff --git a/mail/p5-qpsmtpd/files/qpsmtpd.in b/mail/p5-qpsmtpd/files/qpsmtpd.in index d231a17..a5afba5 100644 --- a/mail/p5-qpsmtpd/files/qpsmtpd.in +++ b/mail/p5-qpsmtpd/files/qpsmtpd.in @@ -27,7 +27,7 @@ . /etc/rc.subr name="qpsmtpd" -rcvar=`set_rcvar` +rcvar=qpsmtpd_enable command="%%PREFIX%%/bin/qpsmtpd-forkserver" command_interpreter=%%PERL%% diff --git a/mail/perdition/files/perdition.imap4.in b/mail/perdition/files/perdition.imap4.in index 4a53f39a..841bed7 100644 --- a/mail/perdition/files/perdition.imap4.in +++ b/mail/perdition/files/perdition.imap4.in @@ -19,7 +19,7 @@ perdition_imap4_enable=${perdition_imap4_enable-"NO"} . /etc/rc.subr name="perdition_imap4" -rcvar=`set_rcvar` +rcvar=perdition_imap4_enable command="%%PREFIX%%/sbin/perdition.imap4" pidfile="/var/run/perdition.imap4/perdition.imap4.pid" diff --git a/mail/perdition/files/perdition.imap4s.in b/mail/perdition/files/perdition.imap4s.in index d257df6..f37fc7a 100644 --- a/mail/perdition/files/perdition.imap4s.in +++ b/mail/perdition/files/perdition.imap4s.in @@ -19,7 +19,7 @@ perdition_imap4s_enable=${perdition_imap4s_enable-"NO"} . /etc/rc.subr name="perdition_imap4s" -rcvar=`set_rcvar` +rcvar=perdition_imap4s_enable command="%%PREFIX%%/sbin/perdition.imap4s" pidfile="/var/run/perdition.imap4s/perdition.imap4s.pid" diff --git a/mail/perdition/files/perdition.imaps.in b/mail/perdition/files/perdition.imaps.in index 997bd4e..abda91a 100644 --- a/mail/perdition/files/perdition.imaps.in +++ b/mail/perdition/files/perdition.imaps.in @@ -19,7 +19,7 @@ perdition_imaps_enable=${perdition_imaps_enable-"NO"} . /etc/rc.subr name="perdition_imaps" -rcvar=`set_rcvar` +rcvar=perdition_imaps_enable command="%%PREFIX%%/sbin/perdition.imaps" pidfile="/var/run/perdition.imaps/perdition.imaps.pid" diff --git a/mail/perdition/files/perdition.in b/mail/perdition/files/perdition.in index 37197d2..eb1d328 100644 --- a/mail/perdition/files/perdition.in +++ b/mail/perdition/files/perdition.in @@ -19,7 +19,7 @@ perdition_enable=${perdition_enable-"NO"} . /etc/rc.subr name="perdition" -rcvar=`set_rcvar` +rcvar=perdition_enable command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/perdition/${name}.pid" diff --git a/mail/perdition/files/perdition.pop3.in b/mail/perdition/files/perdition.pop3.in index f95a7e3..7e6926f 100644 --- a/mail/perdition/files/perdition.pop3.in +++ b/mail/perdition/files/perdition.pop3.in @@ -19,7 +19,7 @@ perdition_pop3_enable=${perdition_pop3_enable-"NO"} . /etc/rc.subr name="perdition_pop3" -rcvar=`set_rcvar` +rcvar=perdition_pop3_enable command="%%PREFIX%%/sbin/perdition.pop3" pidfile="/var/run/perdition.pop3/perdition.pop3.pid" diff --git a/mail/perdition/files/perdition.pop3s.in b/mail/perdition/files/perdition.pop3s.in index e0a3fba..65339fb 100644 --- a/mail/perdition/files/perdition.pop3s.in +++ b/mail/perdition/files/perdition.pop3s.in @@ -19,7 +19,7 @@ perdition_pop3s_enable=${perdition_pop3s_enable-"NO"} . /etc/rc.subr name="perdition_pop3s" -rcvar=`set_rcvar` +rcvar=perdition_pop3s_enable command="%%PREFIX%%/sbin/perdition.pop3s" pidfile="/var/run/perdition.pop3s/perdition.pop3s.pid" diff --git a/mail/policyd2/files/policyd2.sh.in b/mail/policyd2/files/policyd2.sh.in index 6868b25..a5443c6 100644 --- a/mail/policyd2/files/policyd2.sh.in +++ b/mail/policyd2/files/policyd2.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="policyd2" -rcvar=`set_rcvar` +rcvar=policyd2_enable command="%%LOCALBASE%%/bin/cbpolicyd" command_interpreter="/usr/bin/perl" diff --git a/mail/pop-before-smtp/files/pop-before-smtp.sh.in b/mail/pop-before-smtp/files/pop-before-smtp.sh.in index b81f25a..10f262c 100644 --- a/mail/pop-before-smtp/files/pop-before-smtp.sh.in +++ b/mail/pop-before-smtp/files/pop-before-smtp.sh.in @@ -37,8 +37,9 @@ # sh interprets dash chars as the numeric minus operator... name="pop_before_smtp" +rcvar=pop_before_smtp_enable + filename="pop-before-smtp" -rcvar=`set_rcvar` load_rc_config $name diff --git a/mail/pop3proxy/files/pop3proxyd.in b/mail/pop3proxy/files/pop3proxyd.in index 7d13b9e..65d3e353 100644 --- a/mail/pop3proxy/files/pop3proxyd.in +++ b/mail/pop3proxy/files/pop3proxyd.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=pop3proxyd -rcvar=`set_rcvar` +rcvar=pop3proxyd_enable command=%%PREFIX%%/sbin/pop3proxyd diff --git a/mail/popa3d/files/popa3d.in b/mail/popa3d/files/popa3d.in index 0bb18f0..862b5dc 100644 --- a/mail/popa3d/files/popa3d.in +++ b/mail/popa3d/files/popa3d.in @@ -6,7 +6,7 @@ . /etc/rc.subr name="popa3d" -rcvar=`set_rcvar` +rcvar=popa3d_enable command="%%PREFIX%%/libexec/${name}" command_args="-D" diff --git a/mail/popular/files/0ringd.sh.in b/mail/popular/files/0ringd.sh.in index 1d0947b..9ee445b 100644 --- a/mail/popular/files/0ringd.sh.in +++ b/mail/popular/files/0ringd.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="ringd" -rcvar=`set_rcvar` +rcvar=ringd_enable load_rc_config $name diff --git a/mail/popular/files/pcheckd.sh.in b/mail/popular/files/pcheckd.sh.in index 1aac331..ab860cc 100644 --- a/mail/popular/files/pcheckd.sh.in +++ b/mail/popular/files/pcheckd.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="pcheckd" -rcvar=`set_rcvar` +rcvar=pcheckd_enable load_rc_config $name diff --git a/mail/popular/files/pproxy.sh.in b/mail/popular/files/pproxy.sh.in index f1039e6..b401625 100644 --- a/mail/popular/files/pproxy.sh.in +++ b/mail/popular/files/pproxy.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="pproxy" -rcvar=`set_rcvar` +rcvar=pproxy_enable load_rc_config $name diff --git a/mail/popular/files/pserv.sh.in b/mail/popular/files/pserv.sh.in index b1984e7..e5ef1c1 100644 --- a/mail/popular/files/pserv.sh.in +++ b/mail/popular/files/pserv.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="pserv" -rcvar=`set_rcvar` +rcvar=pserv_enable load_rc_config $name diff --git a/mail/postfix-current/files/postfix.sh.in b/mail/postfix-current/files/postfix.sh.in index 849e6c1..216a3a5 100644 --- a/mail/postfix-current/files/postfix.sh.in +++ b/mail/postfix-current/files/postfix.sh.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="postfix" -rcvar=${name}_enable +rcvar=postfix_enable load_rc_config $name diff --git a/mail/postfix-policyd-sf/files/policyd.sh.in b/mail/postfix-policyd-sf/files/policyd.sh.in index cd3b346..2a2648e 100644 --- a/mail/postfix-policyd-sf/files/policyd.sh.in +++ b/mail/postfix-policyd-sf/files/policyd.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=postfix_policyd_sf -rcvar=`set_rcvar` +rcvar=postfix_policyd_sf_enable command=%%PREFIX%%/sbin/%%REALNAME%% diff --git a/mail/postfix-postfwd/files/postfwd.in b/mail/postfix-postfwd/files/postfwd.in index 19d9186..a2b57bd 100644 --- a/mail/postfix-postfwd/files/postfwd.in +++ b/mail/postfix-postfwd/files/postfwd.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=postfwd -rcvar=${name}_enable +rcvar=postfwd_enable command=%%PREFIX%%/bin/${name} required_files=%%PREFIX%%/etc/${name}.conf diff --git a/mail/postfix/files/postfix.sh.in b/mail/postfix/files/postfix.sh.in index 849e6c1..216a3a5 100644 --- a/mail/postfix/files/postfix.sh.in +++ b/mail/postfix/files/postfix.sh.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="postfix" -rcvar=${name}_enable +rcvar=postfix_enable load_rc_config $name diff --git a/mail/postfix25/files/postfix.sh.in b/mail/postfix25/files/postfix.sh.in index 44aa542..74956f6 100644 --- a/mail/postfix25/files/postfix.sh.in +++ b/mail/postfix25/files/postfix.sh.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="postfix" -rcvar=${name}_enable +rcvar=postfix_enable load_rc_config $name diff --git a/mail/postfix26/files/postfix.sh.in b/mail/postfix26/files/postfix.sh.in index 849e6c1..216a3a5 100644 --- a/mail/postfix26/files/postfix.sh.in +++ b/mail/postfix26/files/postfix.sh.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="postfix" -rcvar=${name}_enable +rcvar=postfix_enable load_rc_config $name diff --git a/mail/postfix27/files/postfix.sh.in b/mail/postfix27/files/postfix.sh.in index 849e6c1..216a3a5 100644 --- a/mail/postfix27/files/postfix.sh.in +++ b/mail/postfix27/files/postfix.sh.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="postfix" -rcvar=${name}_enable +rcvar=postfix_enable load_rc_config $name diff --git a/mail/postfix28/files/postfix.sh.in b/mail/postfix28/files/postfix.sh.in index 849e6c1..216a3a5 100644 --- a/mail/postfix28/files/postfix.sh.in +++ b/mail/postfix28/files/postfix.sh.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="postfix" -rcvar=${name}_enable +rcvar=postfix_enable load_rc_config $name diff --git a/mail/postgrey/files/postgrey.in b/mail/postgrey/files/postgrey.in index c8b2556..55e9e3d 100644 --- a/mail/postgrey/files/postgrey.in +++ b/mail/postgrey/files/postgrey.in @@ -18,7 +18,7 @@ . /etc/rc.subr name=postgrey -rcvar=`set_rcvar` +rcvar=postgrey_enable command=%%PREFIX%%/sbin/postgrey required_dirs=/var/db/postgrey diff --git a/mail/postpals/files/postpals-taillog.in b/mail/postpals/files/postpals-taillog.in index 86bc415..f8a95a4 100644 --- a/mail/postpals/files/postpals-taillog.in +++ b/mail/postpals/files/postpals-taillog.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=postpals_taillog -rcvar=`set_rcvar` +rcvar=postpals_taillog_enable command=%%PREFIX%%/sbin/postpals-taillog pidfile=/var/run/${name}.pid diff --git a/mail/postpals/files/postpals.in b/mail/postpals/files/postpals.in index 6f6c65c..76706b6 100644 --- a/mail/postpals/files/postpals.in +++ b/mail/postpals/files/postpals.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=postpals -rcvar=`set_rcvar` +rcvar=postpals_enable command=%%PREFIX%%/sbin/${name} pidfile="/var/run/${name}.pid" diff --git a/mail/prayer/files/prayer.in b/mail/prayer/files/prayer.in index c2aea58..c6daa2f 100644 --- a/mail/prayer/files/prayer.in +++ b/mail/prayer/files/prayer.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="prayer" -rcvar=${name}_enable +rcvar=prayer_enable command=%%PREFIX%%/sbin/${name} pidfile="/var/spool/prayer/pid/${name}.pid" diff --git a/mail/proxsmtp/files/proxsmtpd.sh.in b/mail/proxsmtp/files/proxsmtpd.sh.in index c49bbe1..b2f97d3 100644 --- a/mail/proxsmtp/files/proxsmtpd.sh.in +++ b/mail/proxsmtp/files/proxsmtpd.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="proxsmtpd" -rcvar=${name}_enable +rcvar=proxsmtpd_enable load_rc_config ${name} diff --git a/mail/py-apolicy/files/apolicyd.in b/mail/py-apolicy/files/apolicyd.in index 377412b..10c373a 100644 --- a/mail/py-apolicy/files/apolicyd.in +++ b/mail/py-apolicy/files/apolicyd.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="apolicyd" -rcvar=`set_rcvar` +rcvar=apolicyd_enable command="%%PREFIX%%/bin/twistd" pidfile="/var/run/apolicyd.pid" diff --git a/mail/py-ppolicy/files/ppolicyd.sh.in b/mail/py-ppolicy/files/ppolicyd.sh.in index 28e6674..f4846ad 100644 --- a/mail/py-ppolicy/files/ppolicyd.sh.in +++ b/mail/py-ppolicy/files/ppolicyd.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="ppolicyd" -rcvar=`set_rcvar` +rcvar=ppolicyd_enable command="%%LOCALBASE%%/bin/twistd" pidfile="/var/run/ppolicyd.pid" diff --git a/mail/py-spambayes/files/pyspamd.in b/mail/py-spambayes/files/pyspamd.in index 0ea6838..3336584 100644 --- a/mail/py-spambayes/files/pyspamd.in +++ b/mail/py-spambayes/files/pyspamd.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="pyspamd" -rcvar=`set_rcvar` +rcvar=pyspamd_enable load_rc_config $name diff --git a/mail/pysieved/files/pysieved.in b/mail/pysieved/files/pysieved.in index 624f8e6..d178344 100644 --- a/mail/pysieved/files/pysieved.in +++ b/mail/pysieved/files/pysieved.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="%%PORTNAME%%" -rcvar=`set_rcvar` +rcvar=%%PORTNAME%%_enable load_rc_config $name diff --git a/mail/qmail/files/qmail-smtpd.rcNG b/mail/qmail/files/qmail-smtpd.rcNG index 4497bf4..7eb43e3 100644 --- a/mail/qmail/files/qmail-smtpd.rcNG +++ b/mail/qmail/files/qmail-smtpd.rcNG @@ -16,7 +16,7 @@ . /etc/rc.subr name="qmailsmtpd" -rcvar=`set_rcvar` +rcvar=qmailsmtpd_enable load_rc_config $name : ${qmailsmtpd_tcpserver="/usr/local/bin/tcpserver"} diff --git a/mail/qpopper/qpopper.in b/mail/qpopper/qpopper.in index 896c785..ee73147 100644 --- a/mail/qpopper/qpopper.in +++ b/mail/qpopper/qpopper.in @@ -18,7 +18,7 @@ qpopper_flags=${qpopper_flags-""} . /etc/rc.subr name=qpopper -rcvar=`set_rcvar` +rcvar=qpopper_enable command=%%PREFIX%%/libexec/qpopper command_args="${qpopper_flags}" diff --git a/mail/quickml/files/quickml.in b/mail/quickml/files/quickml.in index cc91df6..5278224 100644 --- a/mail/quickml/files/quickml.in +++ b/mail/quickml/files/quickml.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="quickml" -rcvar=`set_rcvar` +rcvar=quickml_enable command="%%PREFIX%%/sbin/${name}" command_interpreter="%%RUBY%%" diff --git a/mail/rabl_server/files/rabl_server.sh.in b/mail/rabl_server/files/rabl_server.sh.in index da0db9f..19efce4 100644 --- a/mail/rabl_server/files/rabl_server.sh.in +++ b/mail/rabl_server/files/rabl_server.sh.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=rabl_server -rcvar=`set_rcvar` +rcvar=rabl_server_enable command=%%PREFIX%%/bin/${name} required_files=%%PREFIX%%/etc/${name}.conf diff --git a/mail/rbl-milter/files/rblmilter.sh.in b/mail/rbl-milter/files/rblmilter.sh.in index d5918b8..14180e9 100644 --- a/mail/rbl-milter/files/rblmilter.sh.in +++ b/mail/rbl-milter/files/rblmilter.sh.in @@ -24,7 +24,7 @@ rblmilter_flags=${rblmilter_flags:-"-l -r -d relays.ordb.org"} # Flags to rblmil . /etc/rc.subr name="rblmilter" -rcvar=`set_rcvar` +rcvar=rblmilter_enable command="%%PREFIX%%/sbin/rbl-milter" start_precmd="rblmilter_prestart" stop_postcmd="rblmilter_poststop" diff --git a/mail/rspamd/files/rspamd.in b/mail/rspamd/files/rspamd.in index f90b477..84b21ea 100644 --- a/mail/rspamd/files/rspamd.in +++ b/mail/rspamd/files/rspamd.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=rspamd -rcvar=`set_rcvar` +rcvar=rspamd_enable command=%%PREFIX%%/bin/rspamd restart_precmd="rspamd_checkconfig" reload_precmd="rspamd_checkconfig" diff --git a/mail/rspamd/files/rspamd_redirector.in b/mail/rspamd/files/rspamd_redirector.in index fa750b0..1b5c745 100644 --- a/mail/rspamd/files/rspamd_redirector.in +++ b/mail/rspamd/files/rspamd_redirector.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="rspamd_redirector" -rcvar=`set_rcvar` +rcvar=rspamd_redirector_enable command="%%PREFIX%%/bin/rspamd-redirector" load_rc_config $name diff --git a/mail/sastatd/files/sastatd.in b/mail/sastatd/files/sastatd.in index d3b1c67..0042ad0 100644 --- a/mail/sastatd/files/sastatd.in +++ b/mail/sastatd/files/sastatd.in @@ -17,7 +17,7 @@ name="sastatd" -rcvar=`set_rcvar` +rcvar=sastatd_enable load_rc_config "$name" : ${sastatd_enable="NO"} diff --git a/mail/scam-backscatter/files/scam-backscatter.in b/mail/scam-backscatter/files/scam-backscatter.in index 001b552..f23e6e1 100644 --- a/mail/scam-backscatter/files/scam-backscatter.in +++ b/mail/scam-backscatter/files/scam-backscatter.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="scambackscatter" -rcvar=`set_rcvar` +rcvar=scambackscatter_enable command="%%PREFIX%%/libexec/scam-back" start_precmd="${name}_prestart" diff --git a/mail/sid-milter/files/milter-sid.sh.in b/mail/sid-milter/files/milter-sid.sh.in index e8dcda6..22f9181 100644 --- a/mail/sid-milter/files/milter-sid.sh.in +++ b/mail/sid-milter/files/milter-sid.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="miltersid" -rcvar=`set_rcvar` +rcvar=miltersid_enable load_rc_config $name # DO NOT CHANGE THESE DEFAULT VALUES HERE diff --git a/mail/smfsav/files/smfsav.in b/mail/smfsav/files/smfsav.in index 10c60eb..8ebddd4 100644 --- a/mail/smfsav/files/smfsav.in +++ b/mail/smfsav/files/smfsav.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="smfsav" -rcvar=`set_rcvar` +rcvar=smfsav_enable command="%%PREFIX%%/sbin/smfsav" load_rc_config ${name} diff --git a/mail/smtpd/files/smtpd.in b/mail/smtpd/files/smtpd.in index b48e54e..6754c17 100644 --- a/mail/smtpd/files/smtpd.in +++ b/mail/smtpd/files/smtpd.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="smtpd" -rcvar=${name}_enable +rcvar=smtpd_enable command=%%PREFIX%%/sbin/smtpfwdd diff --git a/mail/smtptrapd/files/smtptrapd.sh.in b/mail/smtptrapd/files/smtptrapd.sh.in index ade1b56..fc22353 100644 --- a/mail/smtptrapd/files/smtptrapd.sh.in +++ b/mail/smtptrapd/files/smtptrapd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=smtptrapd -rcvar=`set_rcvar` +rcvar=smtptrapd_enable command=%%PREFIX%%/bin/smtptrapd diff --git a/mail/spamass-milter/files/spamass-milter.in b/mail/spamass-milter/files/spamass-milter.in index 6defd6c..67ffe56 100644 --- a/mail/spamass-milter/files/spamass-milter.in +++ b/mail/spamass-milter/files/spamass-milter.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=spamass_milter -rcvar=`set_rcvar` +rcvar=spamass_milter_enable command=%%PREFIX%%/sbin/spamass-milter required_dirs=%%PREFIX%%/share/spamassassin diff --git a/mail/spamd/files/obspamd.in b/mail/spamd/files/obspamd.in index 8b53f4f..9dac870 100644 --- a/mail/spamd/files/obspamd.in +++ b/mail/spamd/files/obspamd.in @@ -23,7 +23,7 @@ obspamd_enable=${obspamd_enable:-"NO"} . /etc/rc.subr name="obspamd" -rcvar=`set_rcvar` +rcvar=obspamd_enable command="%%PREFIX%%/libexec/%%SPAMDBIN%%" start_precmd="obspamd_precmd" diff --git a/mail/spamd/files/obspamlogd.in b/mail/spamd/files/obspamlogd.in index f2942c9..7182e92 100644 --- a/mail/spamd/files/obspamlogd.in +++ b/mail/spamd/files/obspamlogd.in @@ -24,7 +24,7 @@ obspamlogd_enable=${obspamlogd_enable:-"NO"} . /etc/rc.subr name="obspamlogd" -rcvar=`set_rcvar` +rcvar=obspamlogd_enable command="%%PREFIX%%/libexec/spamlogd" start_precmd="obspamlogd_precmd" diff --git a/mail/spamilter/files/spamilter.sh.in b/mail/spamilter/files/spamilter.sh.in index 8ef4f14..71a4f99 100644 --- a/mail/spamilter/files/spamilter.sh.in +++ b/mail/spamilter/files/spamilter.sh.in @@ -24,7 +24,7 @@ spamilter_enable=${spamilter_enable:-"NO"} # Enable spamilter-milter . /etc/rc.subr name="spamilter" -rcvar=`set_rcvar` +rcvar=spamilter_enable command="%%PREFIX%%/bin/spamilter" pidfile="/tmp/Spamilter.pid" required_files="%%PREFIX%%/etc/spamilter.rc" diff --git a/mail/spampd/files/spampd.in b/mail/spampd/files/spampd.in index 4b3127b..ce60c2c 100644 --- a/mail/spampd/files/spampd.in +++ b/mail/spampd/files/spampd.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="spampd" -rcvar=`set_rcvar` +rcvar=spampd_enable : ${spampd_enable="NO"} : ${spampd_pidfile="/var/run/spamd/spampd.pid"} diff --git a/mail/spmfilter/files/spmfilter.in b/mail/spmfilter/files/spmfilter.in index 2c23229..f280bb7 100644 --- a/mail/spmfilter/files/spmfilter.in +++ b/mail/spmfilter/files/spmfilter.in @@ -18,7 +18,7 @@ . /etc/rc.subr name=spmfilter -rcvar=`set_rcvar` +rcvar=spmfilter_enable command=%%PREFIX%%/sbin/spmfilter diff --git a/mail/sqlgrey/files/sqlgrey.in b/mail/sqlgrey/files/sqlgrey.in index d44fc2e..bb2652b 100644 --- a/mail/sqlgrey/files/sqlgrey.in +++ b/mail/sqlgrey/files/sqlgrey.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=sqlgrey -rcvar=`set_rcvar` +rcvar=sqlgrey_enable command=%%PREFIX%%/sbin/sqlgrey extra_commands=reload diff --git a/mail/sqwebmail/files/sqwebmail-sqwebmaild.in b/mail/sqwebmail/files/sqwebmail-sqwebmaild.in index f149095..1dc0ad6 100644 --- a/mail/sqwebmail/files/sqwebmail-sqwebmaild.in +++ b/mail/sqwebmail/files/sqwebmail-sqwebmaild.in @@ -18,7 +18,7 @@ sqwebmaild_enable=${sqwebmaild_enable-"NO"} . /etc/rc.subr name="sqwebmaild" -rcvar=`set_rcvar` +rcvar=sqwebmaild_enable command="%%PREFIX%%/libexec/sqwebmaild.rc" start_cmd="sqwebmaild_cmd start" diff --git a/mail/synonym/files/synonym.sh.in b/mail/synonym/files/synonym.sh.in index 4c19096..298b7ee 100644 --- a/mail/synonym/files/synonym.sh.in +++ b/mail/synonym/files/synonym.sh.in @@ -21,7 +21,7 @@ synonym_conffile=${synonym_conffile-"%%PREFIX%%/etc/synonym.conf"} . /etc/rc.subr name=synonym -rcvar=`set_rcvar` +rcvar=synonym_enable command=%%PREFIX%%/sbin/${name} load_rc_config ${name} diff --git a/mail/tpop3d/files/tpop3d.sh.in b/mail/tpop3d/files/tpop3d.sh.in index 64c74ff..090d505 100644 --- a/mail/tpop3d/files/tpop3d.sh.in +++ b/mail/tpop3d/files/tpop3d.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="tpop3d" -rcvar=`set_rcvar` +rcvar=tpop3d_enable stop_postcmd=stop_postcmd diff --git a/mail/up-imapproxy/files/imapproxyd.sh.in b/mail/up-imapproxy/files/imapproxyd.sh.in index c9bebba..ffbeb7e 100644 --- a/mail/up-imapproxy/files/imapproxyd.sh.in +++ b/mail/up-imapproxy/files/imapproxyd.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=imapproxyd -rcvar=${name}_enable +rcvar=imapproxyd_enable load_rc_config $name diff --git a/mail/vbsfilter/files/vbsfilter.sh.in b/mail/vbsfilter/files/vbsfilter.sh.in index 11302be..144b009 100644 --- a/mail/vbsfilter/files/vbsfilter.sh.in +++ b/mail/vbsfilter/files/vbsfilter.sh.in @@ -25,7 +25,7 @@ vbsfilter_socket=${vbsfilter_socket:-"/var/run/vbsfilter"} # Path to socket . /etc/rc.subr name="vbsfilter" -rcvar=`set_rcvar` +rcvar=vbsfilter_enable command="%%PREFIX%%/libexec/vbsfilter" procname="${command}" start_precmd="vbsfilter_prestart" diff --git a/mail/whoson/files/whoson.sh.in b/mail/whoson/files/whoson.sh.in index fada0bf..8f28b3d 100644 --- a/mail/whoson/files/whoson.sh.in +++ b/mail/whoson/files/whoson.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=whosond -rcvar=`set_rcvar` +rcvar=whosond_enable command=%%PREFIX%%/sbin/${name} required_files=%%PREFIX%%/etc/whoson.conf diff --git a/mail/zmailer/files/zmailer.sh.in b/mail/zmailer/files/zmailer.sh.in index 9a0f784..eb3968a 100644 --- a/mail/zmailer/files/zmailer.sh.in +++ b/mail/zmailer/files/zmailer.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=zmailer -rcvar=`set_rcvar` +rcvar=zmailer_enable command=%%PREFIX%%/sbin/zmailer required_files=%%PREFIX%%/etc/zmailer/mail.conf diff --git a/misc/dahdi-kmod/files/dahdi.in b/misc/dahdi-kmod/files/dahdi.in index 471a627..7c19256 100644 --- a/misc/dahdi-kmod/files/dahdi.in +++ b/misc/dahdi-kmod/files/dahdi.in @@ -34,7 +34,7 @@ . /etc/rc.subr name="dahdi" -rcvar=`set_rcvar` +rcvar=dahdi_enable start_cmd="dahdi_start" stop_cmd="dahdi_stop" diff --git a/misc/dnetc/files/dnetc.sh.in b/misc/dnetc/files/dnetc.sh.in index 9ffaee6..25d083b 100644 --- a/misc/dnetc/files/dnetc.sh.in +++ b/misc/dnetc/files/dnetc.sh.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="dnetc" -rcvar=`set_rcvar` +rcvar=dnetc_enable load_rc_config $name diff --git a/misc/e2fsprogs-libuuid/files/uuidd.in b/misc/e2fsprogs-libuuid/files/uuidd.in index 2178770..0becd42 100644 --- a/misc/e2fsprogs-libuuid/files/uuidd.in +++ b/misc/e2fsprogs-libuuid/files/uuidd.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="uuidd" -rcvar=`set_rcvar` +rcvar=uuidd_enable command="%%PREFIX%%/sbin/uuidd" procname="${command}" diff --git a/misc/proxyper/files/proxyper.in b/misc/proxyper/files/proxyper.in index 547585f..90667a3 100644 --- a/misc/proxyper/files/proxyper.in +++ b/misc/proxyper/files/proxyper.in @@ -14,7 +14,7 @@ user="nobody" . /etc/rc.subr name="proxyper" -rcvar=`set_rcvar` +rcvar=proxyper_enable pidfile=${dir}/rc5desproxy.pid required_files=${dir}/${name}.ini diff --git a/misc/upclient/files/upclient.sh.in b/misc/upclient/files/upclient.sh.in index 6cef94d..0f18a95 100644 --- a/misc/upclient/files/upclient.sh.in +++ b/misc/upclient/files/upclient.sh.in @@ -34,7 +34,7 @@ upclient_enable="${upclient_enable-NO}" . /etc/rc.subr name=upclient -rcvar=$(set_rcvar) +rcvar=upclient_enable # private configfile=%%PREFIX%%/etc/${name}.conf diff --git a/misc/yaunc/files/yaunc.sh.in b/misc/yaunc/files/yaunc.sh.in index 6643e13..6282064 100644 --- a/misc/yaunc/files/yaunc.sh.in +++ b/misc/yaunc/files/yaunc.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="yaunc" -rcvar=${name}_enable +rcvar=yaunc_enable command=%%PREFIX%%/bin/${name} diff --git a/multimedia/ffmpeg-devel/files/ffserver.in b/multimedia/ffmpeg-devel/files/ffserver.in index c7aefb7..7709136 100644 --- a/multimedia/ffmpeg-devel/files/ffserver.in +++ b/multimedia/ffmpeg-devel/files/ffserver.in @@ -17,7 +17,7 @@ ffserver_enable="${ffserver_enable-NO}" . /etc/rc.subr name=ffserver -rcvar=`set_rcvar` +rcvar=ffserver_enable command="%%PREFIX%%/bin/${name} &" required_files=%%PREFIX%%/etc/ffserver.conf diff --git a/multimedia/ffmpeg/files/ffserver.in b/multimedia/ffmpeg/files/ffserver.in index c7aefb7..7709136 100644 --- a/multimedia/ffmpeg/files/ffserver.in +++ b/multimedia/ffmpeg/files/ffserver.in @@ -17,7 +17,7 @@ ffserver_enable="${ffserver_enable-NO}" . /etc/rc.subr name=ffserver -rcvar=`set_rcvar` +rcvar=ffserver_enable command="%%PREFIX%%/bin/${name} &" required_files=%%PREFIX%%/etc/ffserver.conf diff --git a/multimedia/freevo/files/freevo-rcsubr.in b/multimedia/freevo/files/freevo-rcsubr.in index 8e82488..4edbf45 100644 --- a/multimedia/freevo/files/freevo-rcsubr.in +++ b/multimedia/freevo/files/freevo-rcsubr.in @@ -1,5 +1,7 @@ #!/bin/sh +# $FreeBSD$ +# # PROVIDE: freevo # REQUIRE: DAEMON # KEYWORD: shutdown @@ -14,7 +16,7 @@ . /etc/rc.subr name=freevo -rcvar=`set_rcvar` +rcvar=freevo_enable load_rc_config $name : ${freevo_enable="NO"} @@ -36,7 +38,7 @@ fast*) freevo_cmd=`expr "$1" : 'fast\(.*\)'` ;; esac name=freevo_recordserver -rcvar=${name}_enable +rcvar=freevo_recordserver_enable eval ${name}_user=${freevo_user} eval ${name}_group=${freevo_group} pidfile=/var/run/freevo/recordserver-${freevo_uid}.pid @@ -44,7 +46,7 @@ command_args="recordserver ${freevo_cmd}" run_rc_command "$1" name=freevo_webserver -rcvar=${name}_enable +rcvar=freevo_webserver_enable eval ${name}_user=${freevo_user} eval ${name}_group=${freevo_group} pidfile=/var/run/freevo/webserver-${freevo_uid}.pid @@ -52,10 +54,9 @@ command_args="webserver ${freevo_cmd}" run_rc_command "$1" name=freevo_gui -rcvar=${name}_enable +rcvar=freevo_gui_enable eval ${name}_user=${freevo_user} eval ${name}_group=${freevo_group} pidfile=/var/run/freevo/freevo-${freevo_uid}.pid command_args="${freevo_cmd}" run_rc_command "$1" - diff --git a/multimedia/freevo/files/freevo.in b/multimedia/freevo/files/freevo.in index 5d4f37a..dfb0b07 100644 --- a/multimedia/freevo/files/freevo.in +++ b/multimedia/freevo/files/freevo.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=freevo -rcvar=`set_rcvar` +rcvar=freevo_enable load_rc_config ${name} : ${freevo_enable:="NO"} diff --git a/multimedia/mythtv/files/mythbackend.in b/multimedia/mythtv/files/mythbackend.in index 6ddc1cf..b4f8552 100644 --- a/multimedia/mythtv/files/mythbackend.in +++ b/multimedia/mythtv/files/mythbackend.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="mythbackend" -rcvar=`set_rcvar` +rcvar=mythbackend_enable command="%%PREFIX%%/bin/${name}" load_rc_config $name diff --git a/multimedia/ptx-kmod/files/ptx.sh.in b/multimedia/ptx-kmod/files/ptx.sh.in index 3823260..498196b 100644 --- a/multimedia/ptx-kmod/files/ptx.sh.in +++ b/multimedia/ptx-kmod/files/ptx.sh.in @@ -8,7 +8,7 @@ . /etc/rc.subr name="ptx" -rcvar=`set_rcvar` +rcvar=ptx_enable start_cmd="ptx_start" stop_cmd="ptx_stop" diff --git a/multimedia/vdr/files/vdr.in b/multimedia/vdr/files/vdr.in index b86f460..cf963cb 100644 --- a/multimedia/vdr/files/vdr.in +++ b/multimedia/vdr/files/vdr.in @@ -22,7 +22,7 @@ . /etc/rc.subr name=vdr -rcvar=`set_rcvar` +rcvar=vdr_enable command="%%PREFIX%%/bin/vdr" command_args="-d" diff --git a/multimedia/webcamd/files/webcamd.in b/multimedia/webcamd/files/webcamd.in index 1141448..e02205b 100644 --- a/multimedia/webcamd/files/webcamd.in +++ b/multimedia/webcamd/files/webcamd.in @@ -15,7 +15,7 @@ hald_enable=${hald_enable-"NO"} . /etc/rc.subr name=webcamd -rcvar=`set_rcvar` +rcvar=webcamd_enable command=%%PREFIX%%/sbin/webcamd command_args="-B -U webcamd -G webcamd" diff --git a/multimedia/zoneminder/files/zoneminder.in b/multimedia/zoneminder/files/zoneminder.in index f0d4f50..d170864 100644 --- a/multimedia/zoneminder/files/zoneminder.in +++ b/multimedia/zoneminder/files/zoneminder.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="zoneminder" -rcvar=${name}_enable +rcvar=zoneminder_enable load_rc_config "$name" : ${zoneminder_enable="NO"} diff --git a/net-im/ejabberd/files/ejabberd.in b/net-im/ejabberd/files/ejabberd.in index 15819d3..816b7ae 100644 --- a/net-im/ejabberd/files/ejabberd.in +++ b/net-im/ejabberd/files/ejabberd.in @@ -20,7 +20,7 @@ ejabberd_epmd_address=${ejabberd_epmd_address-"127.0.0.1"} . /etc/rc.subr name="ejabberd" -rcvar=`set_rcvar` +rcvar=ejabberd_enable reload_cmd="ejabberd_reload" restart_cmd="ejabberd_reload" diff --git a/net-im/imspector/files/imspector.in b/net-im/imspector/files/imspector.in index acd7fbe..412e1dd 100644 --- a/net-im/imspector/files/imspector.in +++ b/net-im/imspector/files/imspector.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="imspector" -rcvar=${name}_enable +rcvar=imspector_enable command=%%PREFIX%%/sbin/${name} diff --git a/net-im/iserverd/files/iserverd.in b/net-im/iserverd/files/iserverd.in index 03ab57f..157ace8 100644 --- a/net-im/iserverd/files/iserverd.in +++ b/net-im/iserverd/files/iserverd.in @@ -19,7 +19,7 @@ load_rc_config $name iserverd_enable=${iserverd_enable:-"NO"} iserverd_user=iserv -rcvar=`set_rcvar` +rcvar=iserverd_enable command=%%PREFIX%%/bin/iserverd command_args="-o" diff --git a/net-im/jabber-pyaim/files/jabber-pyaim-transport.sh.in b/net-im/jabber-pyaim/files/jabber-pyaim-transport.sh.in index 80940eb..462bf4cd 100644 --- a/net-im/jabber-pyaim/files/jabber-pyaim-transport.sh.in +++ b/net-im/jabber-pyaim/files/jabber-pyaim-transport.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="jabber_pyaim" -rcvar=`set_rcvar` +rcvar=jabber_pyaim_enable load_rc_config $name diff --git a/net-im/jabber-pyicq/files/jabber-pyicq-transport.sh.in b/net-im/jabber-pyicq/files/jabber-pyicq-transport.sh.in index b3ec5ab..f632d68 100644 --- a/net-im/jabber-pyicq/files/jabber-pyicq-transport.sh.in +++ b/net-im/jabber-pyicq/files/jabber-pyicq-transport.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="jabber_pyicq" -rcvar=`set_rcvar` +rcvar=jabber_pyicq_enable load_rc_config $name diff --git a/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in b/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in index decb3fb..622be15 100644 --- a/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in +++ b/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="jabber_pymsn" -rcvar=`set_rcvar` +rcvar=jabber_pymsn_enable load_rc_config $name diff --git a/net-im/jabber/files/jabber.in b/net-im/jabber/files/jabber.in index 76ce3ea..a9e0f92 100644 --- a/net-im/jabber/files/jabber.in +++ b/net-im/jabber/files/jabber.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="jabber" -rcvar=`set_rcvar` +rcvar=jabber_enable load_rc_config $name diff --git a/net-im/jabberd/files/jabberd.in b/net-im/jabberd/files/jabberd.in index 7afd08df..bf13920 100644 --- a/net-im/jabberd/files/jabberd.in +++ b/net-im/jabberd/files/jabberd.in @@ -20,7 +20,7 @@ jabberd_user=${jabberd_user-"%%JABBER_USER%%"} . /etc/rc.subr name="jabberd" -rcvar=`set_rcvar` +rcvar=jabberd_enable command_interpreter="%%PERL%%" command="%%PREFIX%%/bin/jabberd" command_args="-b" diff --git a/net-im/jggtrans/files/jggtrans.sh.in b/net-im/jggtrans/files/jggtrans.sh.in index e605d28..2db8223 100644 --- a/net-im/jggtrans/files/jggtrans.sh.in +++ b/net-im/jggtrans/files/jggtrans.sh.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="jggtrans" -rcvar=`set_rcvar` +rcvar=jggtrans_enable load_rc_config $name diff --git a/net-im/mu-conference/files/mu-conference.in b/net-im/mu-conference/files/mu-conference.in index e7a18f1..433182e 100644 --- a/net-im/mu-conference/files/mu-conference.in +++ b/net-im/mu-conference/files/mu-conference.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="mu_conference" -rcvar=`set_rcvar` +rcvar=mu_conference_enable command="%%PREFIX%%/bin/mu-conference" diff --git a/net-im/openfire-devel/files/openfire.in b/net-im/openfire-devel/files/openfire.in index e8457e3..118bb35 100644 --- a/net-im/openfire-devel/files/openfire.in +++ b/net-im/openfire-devel/files/openfire.in @@ -24,7 +24,7 @@ . /etc/rc.subr name="openfire" -rcvar=${name}_enable +rcvar=openfire_enable load_rc_config $name # Set defaults diff --git a/net-im/openfire/files/openfire.in b/net-im/openfire/files/openfire.in index e8457e3..118bb35 100644 --- a/net-im/openfire/files/openfire.in +++ b/net-im/openfire/files/openfire.in @@ -24,7 +24,7 @@ . /etc/rc.subr name="openfire" -rcvar=${name}_enable +rcvar=openfire_enable load_rc_config $name # Set defaults diff --git a/net-im/prosody/files/prosody.in b/net-im/prosody/files/prosody.in index 3c14232..e336d1e 100644 --- a/net-im/prosody/files/prosody.in +++ b/net-im/prosody/files/prosody.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="prosody" -rcvar=`set_rcvar` +rcvar=prosody_enable pidfile="%%PREFIX%%/var/lib/prosody/prosody.pid" command="%%PREFIX%%/bin/prosodyctl" diff --git a/net-im/py-punjab/files/punjab.sh.in b/net-im/py-punjab/files/punjab.sh.in index 78477b7..d41f04d 100644 --- a/net-im/py-punjab/files/punjab.sh.in +++ b/net-im/py-punjab/files/punjab.sh.in @@ -8,7 +8,7 @@ . /etc/rc.subr name="punjab" -rcvar=`set_rcvar` +rcvar=punjab_enable command="%%PREFIX%%/bin/twistd" load_rc_config $name diff --git a/net-im/py-xmpppy-yahoo/files/xmpppy_yahoo.in b/net-im/py-xmpppy-yahoo/files/xmpppy_yahoo.in index 033e9d5..8638b52 100644 --- a/net-im/py-xmpppy-yahoo/files/xmpppy_yahoo.in +++ b/net-im/py-xmpppy-yahoo/files/xmpppy_yahoo.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="xmpppy_yahoo" -rcvar=`set_rcvar` +rcvar=xmpppy_yahoo_enable load_rc_config $name diff --git a/net-im/zephyr/files/zhm.in b/net-im/zephyr/files/zhm.in index 82cc500..c374a9c 100644 --- a/net-im/zephyr/files/zhm.in +++ b/net-im/zephyr/files/zhm.in @@ -7,7 +7,7 @@ . /etc/rc.subr name="zhm" -rcvar="zhm_enable" +rcvar=zhm_enable start_cmd="zhm_start" stop_postcmd="zhm_postcmd" start_precmd="zhm_precmd" diff --git a/net-mgmt/argus-monitor/files/argusd.in b/net-mgmt/argus-monitor/files/argusd.in index 1b6cd1f..d44f942 100644 --- a/net-mgmt/argus-monitor/files/argusd.in +++ b/net-mgmt/argus-monitor/files/argusd.in @@ -12,7 +12,7 @@ . /etc/rc.subr name="argusd" -rcvar=${name}_enable +rcvar=argusd_enable command=%%PREFIX%%/sbin/${name} # pidfile=/var/run/${name}.pid diff --git a/net-mgmt/argus3/files/argus.in b/net-mgmt/argus3/files/argus.in index 0f22c65..8582909 100644 --- a/net-mgmt/argus3/files/argus.in +++ b/net-mgmt/argus3/files/argus.in @@ -6,7 +6,7 @@ . /etc/rc.subr name="argus" -rcvar=`set_rcvar` +rcvar=argus_enable load_rc_config $name diff --git a/net-mgmt/arpwatch/files/arpwatch.sh.in b/net-mgmt/arpwatch/files/arpwatch.sh.in index 3563393..c2d51e1 100644 --- a/net-mgmt/arpwatch/files/arpwatch.sh.in +++ b/net-mgmt/arpwatch/files/arpwatch.sh.in @@ -16,7 +16,7 @@ arpwatch_dir=${arpwatch_dir:-"%%PREFIX%%/arpwatch/"} . /etc/rc.subr name=arpwatch -rcvar=`set_rcvar` +rcvar=arpwatch_enable required_dirs=${arpwatch_dir} load_rc_config ${name} diff --git a/net-mgmt/bigsister/files/bigsister.sh.in b/net-mgmt/bigsister/files/bigsister.sh.in index 2232b70..4cff1d3 100644 --- a/net-mgmt/bigsister/files/bigsister.sh.in +++ b/net-mgmt/bigsister/files/bigsister.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="bigsister" -rcvar=`set_rcvar` +rcvar=bigsister_enable start_cmd=bs_start stop_cmd=bs_stop diff --git a/net-mgmt/cdpd/files/cdpd.in b/net-mgmt/cdpd/files/cdpd.in index 408dfe5..7dbe67e 100644 --- a/net-mgmt/cdpd/files/cdpd.in +++ b/net-mgmt/cdpd/files/cdpd.in @@ -23,7 +23,7 @@ . /etc/rc.subr name=cdpd -rcvar=`set_rcvar` +rcvar=cdpd_enable command=%%PREFIX%%/sbin/$name diff --git a/net-mgmt/chillispot/files/chillispot.in b/net-mgmt/chillispot/files/chillispot.in index 64e6f54..da4f4f5 100644 --- a/net-mgmt/chillispot/files/chillispot.in +++ b/net-mgmt/chillispot/files/chillispot.in @@ -8,7 +8,7 @@ . /etc/rc.subr name="chillispot" -rcvar=${name}_enable +rcvar=chillispot_enable command="%%PREFIX%%/sbin/chilli" pidfile=/var/run/chilli.pid diff --git a/net-mgmt/choparp/files/choparp.sh.in b/net-mgmt/choparp/files/choparp.sh.in index 7377ec1..ba8d8e4 100644 --- a/net-mgmt/choparp/files/choparp.sh.in +++ b/net-mgmt/choparp/files/choparp.sh.in @@ -13,7 +13,7 @@ choparp_network=${choparp_network-} . /etc/rc.subr name="choparp" -rcvar=`set_rcvar` +rcvar=choparp_enable start_precmd="choparp_precmd" restart_precmd="choparp_precmd" diff --git a/net-mgmt/collectd/files/collectd.in b/net-mgmt/collectd/files/collectd.in index 7179188..9495f2d 100644 --- a/net-mgmt/collectd/files/collectd.in +++ b/net-mgmt/collectd/files/collectd.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="collectd" -rcvar=${name}_enable +rcvar=collectd_enable command=%%PREFIX%%/sbin/${name} diff --git a/net-mgmt/collectd/files/collectdmon.in b/net-mgmt/collectd/files/collectdmon.in index 09afc71..3418f97 100644 --- a/net-mgmt/collectd/files/collectdmon.in +++ b/net-mgmt/collectd/files/collectdmon.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="collectdmon" -rcvar=${name}_enable +rcvar=collectdmon_enable command=%%PREFIX%%/sbin/${name} diff --git a/net-mgmt/collectd5/files/collectd.in b/net-mgmt/collectd5/files/collectd.in index 7179188..9495f2d 100644 --- a/net-mgmt/collectd5/files/collectd.in +++ b/net-mgmt/collectd5/files/collectd.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="collectd" -rcvar=${name}_enable +rcvar=collectd_enable command=%%PREFIX%%/sbin/${name} diff --git a/net-mgmt/collectd5/files/collectdmon.in b/net-mgmt/collectd5/files/collectdmon.in index 09afc71..3418f97 100644 --- a/net-mgmt/collectd5/files/collectdmon.in +++ b/net-mgmt/collectd5/files/collectdmon.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="collectdmon" -rcvar=${name}_enable +rcvar=collectdmon_enable command=%%PREFIX%%/sbin/${name} diff --git a/net-mgmt/darkstat/files/darkstat.in b/net-mgmt/darkstat/files/darkstat.in index 4669d54..f68d50d 100644 --- a/net-mgmt/darkstat/files/darkstat.in +++ b/net-mgmt/darkstat/files/darkstat.in @@ -32,7 +32,7 @@ . /etc/rc.subr name=darkstat -rcvar=`set_rcvar` +rcvar=darkstat_enable command=%%PREFIX%%/sbin/$name start_precmd=darkstat_prestart diff --git a/net-mgmt/flow-tools-ng/files/flow_capture.in b/net-mgmt/flow-tools-ng/files/flow_capture.in index d378c6c..cdca152 100644 --- a/net-mgmt/flow-tools-ng/files/flow_capture.in +++ b/net-mgmt/flow-tools-ng/files/flow_capture.in @@ -44,7 +44,7 @@ . /etc/rc.subr name="flow_capture" -rcvar=`set_rcvar` +rcvar=flow_capture_enable setup_profile_vars() { diff --git a/net-mgmt/flow-tools-ng/files/flow_fanout.in b/net-mgmt/flow-tools-ng/files/flow_fanout.in index 0cc17b0..9d3e7d3 100644 --- a/net-mgmt/flow-tools-ng/files/flow_fanout.in +++ b/net-mgmt/flow-tools-ng/files/flow_fanout.in @@ -41,7 +41,7 @@ . /etc/rc.subr name="flow_fanout" -rcvar=`set_rcvar` +rcvar=flow_fanout_enable setup_profile_vars() { diff --git a/net-mgmt/flow-tools/files/flow_capture.in b/net-mgmt/flow-tools/files/flow_capture.in index 856695d..c4b8c62 100644 --- a/net-mgmt/flow-tools/files/flow_capture.in +++ b/net-mgmt/flow-tools/files/flow_capture.in @@ -44,7 +44,7 @@ . /etc/rc.subr name="flow_capture" -rcvar=`set_rcvar` +rcvar=flow_capture_enable setup_profile_vars() { diff --git a/net-mgmt/flow-tools/files/flow_fanout.in b/net-mgmt/flow-tools/files/flow_fanout.in index 1d9ec7f..ba66896 100644 --- a/net-mgmt/flow-tools/files/flow_fanout.in +++ b/net-mgmt/flow-tools/files/flow_fanout.in @@ -41,7 +41,7 @@ . /etc/rc.subr name="flow_fanout" -rcvar=`set_rcvar` +rcvar=flow_fanout_enable setup_profile_vars() { diff --git a/net-mgmt/flowd/files/flowd.in b/net-mgmt/flowd/files/flowd.in index 1cc6999..28d9de7 100644 --- a/net-mgmt/flowd/files/flowd.in +++ b/net-mgmt/flowd/files/flowd.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="flowd" -rcvar=${name}_enable +rcvar=flowd_enable load_rc_config ${name} : ${flowd_enable="NO"} diff --git a/net-mgmt/fprobe/files/fprobe.sh.in b/net-mgmt/fprobe/files/fprobe.sh.in index 9175b02..b2cff48 100644 --- a/net-mgmt/fprobe/files/fprobe.sh.in +++ b/net-mgmt/fprobe/files/fprobe.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="%%NAME%%" -rcvar=`set_rcvar` +rcvar=%%NAME%%_enable command="%%PREFIX%%/sbin/fprobe" command_args="-i lo0 127.0.0.1:2055" diff --git a/net-mgmt/icinga/files/icinga.in b/net-mgmt/icinga/files/icinga.in index 7703a68..53d73f4 100644 --- a/net-mgmt/icinga/files/icinga.in +++ b/net-mgmt/icinga/files/icinga.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="icinga" -rcvar=`set_rcvar` +rcvar=icinga_enable command="%%PREFIX%%/bin/icinga" command_args="-d" diff --git a/net-mgmt/ipacctd/files/ipacctd.sh.in b/net-mgmt/ipacctd/files/ipacctd.sh.in index d85aeb3..c0113cb 100644 --- a/net-mgmt/ipacctd/files/ipacctd.sh.in +++ b/net-mgmt/ipacctd/files/ipacctd.sh.in @@ -31,7 +31,7 @@ . /etc/rc.subr name="ipacctd" -rcvar=`set_rcvar` +rcvar=ipacctd_enable command="%%PREFIX%%/sbin/ipacctd" diff --git a/net-mgmt/ipcad/files/ipcad.in b/net-mgmt/ipcad/files/ipcad.in index 7712298..8dbe149 100644 --- a/net-mgmt/ipcad/files/ipcad.in +++ b/net-mgmt/ipcad/files/ipcad.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="ipcad" -rcvar=${name}_enable +rcvar=ipcad_enable load_rc_config ${name} diff --git a/net-mgmt/macroscope/files/macroscope.in b/net-mgmt/macroscope/files/macroscope.in index 4b6e4ad..d204279a 100644 --- a/net-mgmt/macroscope/files/macroscope.in +++ b/net-mgmt/macroscope/files/macroscope.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="macroscope" -rcvar=$(set_rcvar) +rcvar=macroscope_enable start_precmd() { diff --git a/net-mgmt/mrtg/files/mrtg_daemon.in b/net-mgmt/mrtg/files/mrtg_daemon.in index 3f229d3..a0174c4 100644 --- a/net-mgmt/mrtg/files/mrtg_daemon.in +++ b/net-mgmt/mrtg/files/mrtg_daemon.in @@ -11,7 +11,7 @@ name="mrtg_daemon" -rcvar=`set_rcvar` +rcvar=mrtg_daemon_enable load_rc_config $name diff --git a/net-mgmt/nagios-devel/files/nagios.sh.in b/net-mgmt/nagios-devel/files/nagios.sh.in index 107b0fe..a7e9215 100644 --- a/net-mgmt/nagios-devel/files/nagios.sh.in +++ b/net-mgmt/nagios-devel/files/nagios.sh.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="nagios" -rcvar=`set_rcvar` +rcvar=nagios_enable command="%%PREFIX%%/bin/nagios" command_args="-d" diff --git a/net-mgmt/nagios/files/nagios.in b/net-mgmt/nagios/files/nagios.in index 9559ea4..229f9d8 100644 --- a/net-mgmt/nagios/files/nagios.in +++ b/net-mgmt/nagios/files/nagios.in @@ -20,7 +20,7 @@ . /etc/rc.subr name="nagios" -rcvar=`set_rcvar` +rcvar=nagios_enable command="%%PREFIX%%/bin/nagios" command_args="-d" diff --git a/net-mgmt/nagiosgrapher/files/nagiosgrapher.in b/net-mgmt/nagiosgrapher/files/nagiosgrapher.in index 1244730..3ec61d3 100644 --- a/net-mgmt/nagiosgrapher/files/nagiosgrapher.in +++ b/net-mgmt/nagiosgrapher/files/nagiosgrapher.in @@ -2,7 +2,6 @@ # # $FreeBSD$ # - # PROVIDE: %%NAME%% # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON @@ -10,21 +9,21 @@ # Add the following line to /etc/rc.conf to enable `%%NAME%%': # -#%%NAME%%_enable="YES" +# %%NAME%%_enable="YES" . /etc/rc.subr name="%%NAME%%" -: ${%%NAME%%_user="nagios"} -rcvar=`set_rcvar` +rcvar=%%NAME%%_enable pidfile="/var/spool/nagios/nagios_grapher/$name.pid" command="%%PREFIX%%/libexec/nagios/contrib/$name" command_interpreter="/usr/bin/perl" -# read configuration and set defaults load_rc_config $name + : ${%%NAME%%_enable="NO"} +: ${%%NAME%%_user="nagios"} run_rc_command "$1" diff --git a/net-mgmt/nagircbot/files/nagircbot.in b/net-mgmt/nagircbot/files/nagircbot.in index 97de954..7dde53c 100644 --- a/net-mgmt/nagircbot/files/nagircbot.in +++ b/net-mgmt/nagircbot/files/nagircbot.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=nagircbot -rcvar=`set_rcvar` +rcvar=nagircbot_enable pidfile=/var/run/nagios/${name}.pid command=%%PREFIX%%/bin/nagircbot diff --git a/net-mgmt/ndoutils/files/ndo2db.in b/net-mgmt/ndoutils/files/ndo2db.in index ff0859b..29790a7 100644 --- a/net-mgmt/ndoutils/files/ndo2db.in +++ b/net-mgmt/ndoutils/files/ndo2db.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="ndo2db" -rcvar=${name}_enable +rcvar=ndo2db_enable command="%%PREFIX%%/bin/ndo2db-3x" required_files="${ndo2db_configfile}" diff --git a/net-mgmt/ndpmon/files/ndpmonitor.in b/net-mgmt/ndpmon/files/ndpmonitor.in index b0c240b..970f9b22 100644 --- a/net-mgmt/ndpmon/files/ndpmonitor.in +++ b/net-mgmt/ndpmon/files/ndpmonitor.in @@ -10,7 +10,7 @@ . /etc/rc.subr name="ndpmonitor" -rcvar=`set_rcvar` +rcvar=ndpmonitor_enable command="%%PREFIX%%/sbin/ndpmon" required_files=%%ETCDIR%%/config_ndpmon.xml diff --git a/net-mgmt/nefu/files/nefu.in b/net-mgmt/nefu/files/nefu.in index 23fc82b..ea9a068 100644 --- a/net-mgmt/nefu/files/nefu.in +++ b/net-mgmt/nefu/files/nefu.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="nefu" -rcvar=`set_rcvar` +rcvar=nefu_enable command=%%PREFIX%%/bin/${name} load_rc_config $name diff --git a/net-mgmt/net-snmp/files/snmpd.sh.in b/net-mgmt/net-snmp/files/snmpd.sh.in index 4975e31..7ebddd2 100644 --- a/net-mgmt/net-snmp/files/snmpd.sh.in +++ b/net-mgmt/net-snmp/files/snmpd.sh.in @@ -28,7 +28,7 @@ if [ ! -z "$net_snmpd_enable" ]; then fi name=snmpd -rcvar=`set_rcvar` +rcvar=snmpd_enable command=%%PREFIX%%/sbin/${name} pidfile=${snmpd_pidfile} diff --git a/net-mgmt/net-snmp/files/snmptrapd.sh.in b/net-mgmt/net-snmp/files/snmptrapd.sh.in index ba6f844..ac77e1c 100644 --- a/net-mgmt/net-snmp/files/snmptrapd.sh.in +++ b/net-mgmt/net-snmp/files/snmptrapd.sh.in @@ -25,7 +25,7 @@ if [ ! -z "$net_snmptrapd_enable" ]; then fi name=snmptrapd -rcvar=`set_rcvar` +rcvar=snmptrapd_enable command=%%PREFIX%%/sbin/${name} pidfile=/var/run/${name}.pid diff --git a/net-mgmt/netams/files/netams.in b/net-mgmt/netams/files/netams.in index 3ca6f43..1fb2143 100644 --- a/net-mgmt/netams/files/netams.in +++ b/net-mgmt/netams/files/netams.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="netams" -rcvar=`set_rcvar` +rcvar=netams_enable command="%%PREFIX%%/libexec/netams" load_rc_config $name diff --git a/net-mgmt/netdisco/files/netdisco.in b/net-mgmt/netdisco/files/netdisco.in index 1b599fe..3694c0d 100644 --- a/net-mgmt/netdisco/files/netdisco.in +++ b/net-mgmt/netdisco/files/netdisco.in @@ -7,7 +7,7 @@ . /etc/rc.subr name="netdisco" -rcvar=`set_rcvar` +rcvar=netdisco_enable load_rc_config $name diff --git a/net-mgmt/netmond/files/netmond.sh.in b/net-mgmt/netmond/files/netmond.sh.in index bc2b719..ba4de73 100644 --- a/net-mgmt/netmond/files/netmond.sh.in +++ b/net-mgmt/netmond/files/netmond.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="netmond" -rcvar=`set_rcvar` +rcvar=netmond_enable command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/${name}.pid" diff --git a/net-mgmt/netustad/files/netustad.in b/net-mgmt/netustad/files/netustad.in index 7d7c768..2728748 100644 --- a/net-mgmt/netustad/files/netustad.in +++ b/net-mgmt/netustad/files/netustad.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="netustad" -rcvar=${name}_enable +rcvar=netustad_enable command=%%PREFIX%%/sbin/${name} diff --git a/net-mgmt/netxms/files/netxmsd.in b/net-mgmt/netxms/files/netxmsd.in index a66a9f6..241909e 100644 --- a/net-mgmt/netxms/files/netxmsd.in +++ b/net-mgmt/netxms/files/netxmsd.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="netxmsd" -rcvar=${name}_enable +rcvar=netxmsd_enable load_rc_config $name diff --git a/net-mgmt/netxms/files/nxagentd.in b/net-mgmt/netxms/files/nxagentd.in index 3ae91f7..54df991 100644 --- a/net-mgmt/netxms/files/nxagentd.in +++ b/net-mgmt/netxms/files/nxagentd.in @@ -17,7 +17,7 @@ name="nxagentd" nxagentd_user="netxms" -rcvar=${name}_enable +rcvar=nxagentd_enable load_rc_config $name diff --git a/net-mgmt/netxms/files/nxhttpd.in b/net-mgmt/netxms/files/nxhttpd.in index 8696422..262770a 100644 --- a/net-mgmt/netxms/files/nxhttpd.in +++ b/net-mgmt/netxms/files/nxhttpd.in @@ -17,7 +17,7 @@ name="nxhttpd" nxhttpd_user="netxms" -rcvar=${name}_enable +rcvar=nxhttpd_enable load_rc_config $name diff --git a/net-mgmt/nfsen/files/nfsen.in b/net-mgmt/nfsen/files/nfsen.in index 4d027ae..1b0fb10 100644 --- a/net-mgmt/nfsen/files/nfsen.in +++ b/net-mgmt/nfsen/files/nfsen.in @@ -12,7 +12,7 @@ nfsen_enable=${nfsen_enable-"NO"} . /etc/rc.subr name="nfsen" -rcvar=`set_rcvar` +rcvar=nfsen_enable load_rc_config $name command="%%PREFIX%%/bin/nfsen" start_cmd="%%PREFIX%%/bin/nfsen start" diff --git a/net-mgmt/ng_ipacct/files/ng_ipacct.sh.in b/net-mgmt/ng_ipacct/files/ng_ipacct.sh.in index 608d6a2..572f354 100644 --- a/net-mgmt/ng_ipacct/files/ng_ipacct.sh.in +++ b/net-mgmt/ng_ipacct/files/ng_ipacct.sh.in @@ -26,7 +26,7 @@ . /etc/rc.subr name="ng_ipacct" -rcvar=`set_rcvar` +rcvar=ng_ipacct_enable # for debugging purpose you can append flag "-d" to these cmds # or even use dumb stubs. diff --git a/net-mgmt/noc/files/noc.sh.in b/net-mgmt/noc/files/noc.sh.in index 765f22b..dad6a3f 100644 --- a/net-mgmt/noc/files/noc.sh.in +++ b/net-mgmt/noc/files/noc.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="noc" -rcvar=`set_rcvar` +rcvar=noc_enable # set defaults diff --git a/net-mgmt/nrpe2/files/nrpe2.in b/net-mgmt/nrpe2/files/nrpe2.in index acca5bf..ec291bc 100644 --- a/net-mgmt/nrpe2/files/nrpe2.in +++ b/net-mgmt/nrpe2/files/nrpe2.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="nrpe2" -rcvar=`set_rcvar` +rcvar=nrpe2_enable command="%%PREFIX%%/sbin/nrpe2" command_args="-d" diff --git a/net-mgmt/nsca/files/nsca.in b/net-mgmt/nsca/files/nsca.in index 3d62bdd..85ec905 100644 --- a/net-mgmt/nsca/files/nsca.in +++ b/net-mgmt/nsca/files/nsca.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="nsca" -rcvar=`set_rcvar` +rcvar=nsca_enable command="%%PREFIX%%/sbin/nsca" pidfile="/var/run/nsca.pid" diff --git a/net-mgmt/openlldp/files/lldpd.in b/net-mgmt/openlldp/files/lldpd.in index 263a3c3..d99cd86 100644 --- a/net-mgmt/openlldp/files/lldpd.in +++ b/net-mgmt/openlldp/files/lldpd.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=lldpd -rcvar=`set_rcvar` +rcvar=lldpd_enable command=%%PREFIX%%/sbin/$name command_args=">/dev/null 2>/dev/null &" diff --git a/net-mgmt/openvmps/files/vpmsd.in b/net-mgmt/openvmps/files/vpmsd.in index 99b19fd..49da8c8 100644 --- a/net-mgmt/openvmps/files/vpmsd.in +++ b/net-mgmt/openvmps/files/vpmsd.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="vmpsd" -rcvar=`set_rcvar` +rcvar=vmpsd_enable command="%%PREFIX%%/sbin/${name}" load_rc_config $name diff --git a/net-mgmt/ourmon/files/ourmon.in b/net-mgmt/ourmon/files/ourmon.in index 492806b..a9db0ba 100644 --- a/net-mgmt/ourmon/files/ourmon.in +++ b/net-mgmt/ourmon/files/ourmon.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="ourmon" -rcvar=${name}_enable +rcvar=ourmon_enable command="%%PREFIX%%/mrourmon/bin/ourmon" load_rc_config $name diff --git a/net-mgmt/pftabled/files/pftabled.in b/net-mgmt/pftabled/files/pftabled.in index c22438c..d3c0700 100644 --- a/net-mgmt/pftabled/files/pftabled.in +++ b/net-mgmt/pftabled/files/pftabled.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="pftabled" -rcvar=${name}_enable +rcvar=pftabled_enable load_rc_config $name diff --git a/net-mgmt/pmacct/files/pmacctd.in b/net-mgmt/pmacct/files/pmacctd.in index fddb1b0..17a749a 100644 --- a/net-mgmt/pmacct/files/pmacctd.in +++ b/net-mgmt/pmacct/files/pmacctd.in @@ -23,7 +23,7 @@ . /etc/rc.subr name=pmacctd -rcvar=`set_rcvar` +rcvar=pmacctd_enable command=%%PREFIX%%/$name diff --git a/net-mgmt/pnp/files/npcd.sh.in b/net-mgmt/pnp/files/npcd.sh.in index c089dce..32ead7c 100644 --- a/net-mgmt/pnp/files/npcd.sh.in +++ b/net-mgmt/pnp/files/npcd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="npcd" -rcvar=`set_rcvar` +rcvar=npcd_enable command="%%PREFIX%%/bin/npcd" command_args="-d" diff --git a/net-mgmt/ramond/files/ramon.in b/net-mgmt/ramond/files/ramon.in index 810bfe2..5aeabb9 100644 --- a/net-mgmt/ramond/files/ramon.in +++ b/net-mgmt/ramond/files/ramon.in @@ -9,7 +9,7 @@ . /etc/rc.subr name="ramon" -rcvar=`set_rcvar` +rcvar=ramon_enable command="%%PREFIX%%/sbin/ramond" required_files=%%PREFIX%%/etc/ramond.conf diff --git a/net-mgmt/rotorouter/files/rotorouter.in b/net-mgmt/rotorouter/files/rotorouter.in index 231d362..198e426 100644 --- a/net-mgmt/rotorouter/files/rotorouter.in +++ b/net-mgmt/rotorouter/files/rotorouter.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=rotorouter -rcvar=${name}_enable +rcvar=rotorouter_enable command=%%PREFIX%%/sbin/${name} command_args='&' diff --git a/net-mgmt/rrdbot/files/rrdbot.in b/net-mgmt/rrdbot/files/rrdbot.in index 2635319..8c7b18d 100644 --- a/net-mgmt/rrdbot/files/rrdbot.in +++ b/net-mgmt/rrdbot/files/rrdbot.in @@ -20,7 +20,7 @@ . /etc/rc.subr name="rrdbot" -rcvar=`set_rcvar` +rcvar=rrdbot_enable load_rc_config $name diff --git a/net-mgmt/send/files/patch-sendd-os-sendd b/net-mgmt/send/files/patch-sendd-os-sendd index 026b507..bf8a8a6 100644 --- a/net-mgmt/send/files/patch-sendd-os-sendd +++ b/net-mgmt/send/files/patch-sendd-os-sendd @@ -3,7 +3,7 @@ @@ -37,8 +37,8 @@ name="sendd" - rcvar=`set_rcvar` + rcvar=sendd_enable -command="/usr/local/sbin/${name}" -required_files="/usr/local/etc/${name}.conf" +command="%%PREFIX%%/sbin/${name}" diff --git a/net-mgmt/smokeping/files/smokeping.in b/net-mgmt/smokeping/files/smokeping.in index 281f79b..486652f 100644 --- a/net-mgmt/smokeping/files/smokeping.in +++ b/net-mgmt/smokeping/files/smokeping.in @@ -23,7 +23,7 @@ smokeping_group=${smokeping_group-"%%GROUPS%%"} . /etc/rc.subr name="smokeping" -rcvar=`set_rcvar` +rcvar=smokeping_enable load_rc_config $name command="/usr/local/bin/smokeping" command_args="--logfile=${smokeping_logfile}" diff --git a/net-mgmt/snmptt/files/snmptt.sh.in b/net-mgmt/snmptt/files/snmptt.sh.in index 183c7d4..61860e7 100644 --- a/net-mgmt/snmptt/files/snmptt.sh.in +++ b/net-mgmt/snmptt/files/snmptt.sh.in @@ -18,7 +18,7 @@ . /etc/rc.subr name=snmptt -rcvar=`set_rcvar` +rcvar=snmptt_enable command=%%PREFIX%%/sbin/${name} command_args=">/dev/null --daemon" diff --git a/net-mgmt/softflowd/files/softflowd.in b/net-mgmt/softflowd/files/softflowd.in index 8473007d..33020e7 100644 --- a/net-mgmt/softflowd/files/softflowd.in +++ b/net-mgmt/softflowd/files/softflowd.in @@ -22,7 +22,7 @@ . /etc/rc.subr name=softflowd -rcvar=`set_rcvar` +rcvar=softflowd_enable start_precmd="softflowd_precommand $@" stop_precmd="softflowd_precommand $@" diff --git a/net-mgmt/torrus/files/torrus_collector.in b/net-mgmt/torrus/files/torrus_collector.in index 17ee0c3..3fa69ba 100644 --- a/net-mgmt/torrus/files/torrus_collector.in +++ b/net-mgmt/torrus/files/torrus_collector.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="torrus_collector" -rcvar=${name}_enable +rcvar=torrus_collector_enable load_rc_config ${name} diff --git a/net-mgmt/torrus/files/torrus_monitor.in b/net-mgmt/torrus/files/torrus_monitor.in index 124ecf1..a4e211d 100644 --- a/net-mgmt/torrus/files/torrus_monitor.in +++ b/net-mgmt/torrus/files/torrus_monitor.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="torrus_monitor" -rcvar=${name}_enable +rcvar=torrus_monitor_enable load_rc_config ${name} diff --git a/net-mgmt/xymon-client/files/xymon-client.sh.in b/net-mgmt/xymon-client/files/xymon-client.sh.in index 3e46631..0503b9a 100644 --- a/net-mgmt/xymon-client/files/xymon-client.sh.in +++ b/net-mgmt/xymon-client/files/xymon-client.sh.in @@ -9,7 +9,7 @@ . /etc/rc.subr name="xymon_client" -rcvar=`set_rcvar` +rcvar=xymon_client_enable load_rc_config "$name" : ${xymon_client_enable:="NO"} diff --git a/net-mgmt/xymon-server/files/xymon-server.sh.in b/net-mgmt/xymon-server/files/xymon-server.sh.in index 2c73184..dda00a5 100644 --- a/net-mgmt/xymon-server/files/xymon-server.sh.in +++ b/net-mgmt/xymon-server/files/xymon-server.sh.in @@ -9,7 +9,7 @@ . /etc/rc.subr name="xymon_server" -rcvar=`set_rcvar` +rcvar=xymon_server_enable load_rc_config "$name" : ${xymon_server_enable:="NO"} diff --git a/net-mgmt/zabbix-server/files/zabbix_agentd.in b/net-mgmt/zabbix-server/files/zabbix_agentd.in index eacfffd..4af7fa7 100644 --- a/net-mgmt/zabbix-server/files/zabbix_agentd.in +++ b/net-mgmt/zabbix-server/files/zabbix_agentd.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="zabbix_agentd" -rcvar=${name}_enable +rcvar=zabbix_agentd_enable command="%%PREFIX%%/sbin/${name}" required_files="%%ETCDIR%%/${name}.conf" diff --git a/net-mgmt/zabbix-server/files/zabbix_proxy.in b/net-mgmt/zabbix-server/files/zabbix_proxy.in index c997126..58898c6 100644 --- a/net-mgmt/zabbix-server/files/zabbix_proxy.in +++ b/net-mgmt/zabbix-server/files/zabbix_proxy.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="zabbix_proxy" -rcvar=${name}_enable +rcvar=zabbix_proxy_enable command="%%PREFIX%%/sbin/${name}" required_files="%%ETCDIR%%/${name}.conf" diff --git a/net-mgmt/zabbix-server/files/zabbix_server.in b/net-mgmt/zabbix-server/files/zabbix_server.in index 4f4bb8d..4e381a6 100644 --- a/net-mgmt/zabbix-server/files/zabbix_server.in +++ b/net-mgmt/zabbix-server/files/zabbix_server.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="zabbix_server" -rcvar=${name}_enable +rcvar=zabbix_server_enable command="%%PREFIX%%/sbin/${name}" required_files="%%ETCDIR%%/${name}.conf" diff --git a/net-mgmt/zabbix2-server/files/zabbix_agentd.in b/net-mgmt/zabbix2-server/files/zabbix_agentd.in index eacfffd..4af7fa7 100644 --- a/net-mgmt/zabbix2-server/files/zabbix_agentd.in +++ b/net-mgmt/zabbix2-server/files/zabbix_agentd.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="zabbix_agentd" -rcvar=${name}_enable +rcvar=zabbix_agentd_enable command="%%PREFIX%%/sbin/${name}" required_files="%%ETCDIR%%/${name}.conf" diff --git a/net-mgmt/zabbix2-server/files/zabbix_proxy.in b/net-mgmt/zabbix2-server/files/zabbix_proxy.in index c997126..58898c6 100644 --- a/net-mgmt/zabbix2-server/files/zabbix_proxy.in +++ b/net-mgmt/zabbix2-server/files/zabbix_proxy.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="zabbix_proxy" -rcvar=${name}_enable +rcvar=zabbix_proxy_enable command="%%PREFIX%%/sbin/${name}" required_files="%%ETCDIR%%/${name}.conf" diff --git a/net-mgmt/zabbix2-server/files/zabbix_server.in b/net-mgmt/zabbix2-server/files/zabbix_server.in index 4f4bb8d..4e381a6 100644 --- a/net-mgmt/zabbix2-server/files/zabbix_server.in +++ b/net-mgmt/zabbix2-server/files/zabbix_server.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="zabbix_server" -rcvar=${name}_enable +rcvar=zabbix_server_enable command="%%PREFIX%%/sbin/${name}" required_files="%%ETCDIR%%/${name}.conf" diff --git a/net-mgmt/zenoss/files/zenoss.in b/net-mgmt/zenoss/files/zenoss.in index 3852a10..b54af8d 100644 --- a/net-mgmt/zenoss/files/zenoss.in +++ b/net-mgmt/zenoss/files/zenoss.in @@ -19,7 +19,7 @@ load_rc_config zenoss zenoss_enable=${zenoss_enable:-"NO"} name=zenoss -rcvar=`set_rcvar` +rcvar=zenoss_enable extra_commands="init" start_cmd="zenoss_command start" diff --git a/net-p2p/amule-devel/files/amuled.sh.in b/net-p2p/amule-devel/files/amuled.sh.in index d3dae43..2ed3fa8 100644 --- a/net-p2p/amule-devel/files/amuled.sh.in +++ b/net-p2p/amule-devel/files/amuled.sh.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="amuled" -rcvar=`set_rcvar` +rcvar=amuled_enable load_rc_config $name diff --git a/net-p2p/amule/files/amuled.sh.in b/net-p2p/amule/files/amuled.sh.in index d3dae43..2ed3fa8 100644 --- a/net-p2p/amule/files/amuled.sh.in +++ b/net-p2p/amule/files/amuled.sh.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="amuled" -rcvar=`set_rcvar` +rcvar=amuled_enable load_rc_config $name diff --git a/net-p2p/bnbt/files/bnbt.sh.in b/net-p2p/bnbt/files/bnbt.sh.in index cbdc3b3..f8bde3c 100644 --- a/net-p2p/bnbt/files/bnbt.sh.in +++ b/net-p2p/bnbt/files/bnbt.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="bnbt" -rcvar=`set_rcvar` +rcvar=bnbt_enable # path to your executable, might be libxec, bin, sbin, ... command="%%PREFIX%%/bin/$name" diff --git a/net-p2p/deluge/files/deluged.in b/net-p2p/deluge/files/deluged.in index a85ce46..67c5058 100644 --- a/net-p2p/deluge/files/deluged.in +++ b/net-p2p/deluge/files/deluged.in @@ -31,7 +31,7 @@ . /etc/rc.subr name="deluged" -rcvar=${name}_enable +rcvar=deluged_enable command=%%PREFIX%%/bin/${name} command_interpreter=%%PYTHON_CMD%% diff --git a/net-p2p/i2p/files/i2p.sh.in b/net-p2p/i2p/files/i2p.sh.in index 58161b0..ffc1929 100644 --- a/net-p2p/i2p/files/i2p.sh.in +++ b/net-p2p/i2p/files/i2p.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="i2p" -rcvar=`set_rcvar` +rcvar=i2p_enable command="%%PREFIX%%/sbin/i2prouter" extra_commands="install uninstall update" diff --git a/net-p2p/mldonkey/files/mlnet.in b/net-p2p/mldonkey/files/mlnet.in index 71a9614..ea201b3 100644 --- a/net-p2p/mldonkey/files/mlnet.in +++ b/net-p2p/mldonkey/files/mlnet.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="mlnet" -rcvar=`set_rcvar` +rcvar=mlnet_enable command="%%PREFIX%%/bin/${name}" procname="%%PREFIX%%/bin/${name}-real" diff --git a/net-p2p/py-bittornado/files/bttrack.in b/net-p2p/py-bittornado/files/bttrack.in index a702107..154aec0 100644 --- a/net-p2p/py-bittornado/files/bttrack.in +++ b/net-p2p/py-bittornado/files/bttrack.in @@ -18,7 +18,7 @@ . /etc/rc.subr name=bttrack -rcvar=`set_rcvar` +rcvar=bttrack_enable command=%%PREFIX%%/bin/${name}.py command_args="&" diff --git a/net-p2p/transmission-cli/files/transmission.in b/net-p2p/transmission-cli/files/transmission.in index 3fe9761..def430c 100644 --- a/net-p2p/transmission-cli/files/transmission.in +++ b/net-p2p/transmission-cli/files/transmission.in @@ -25,7 +25,7 @@ . /etc/rc.subr name="transmission" -rcvar=${name}_enable +rcvar=transmission_enable command=%%PREFIX%%/bin/transmission-daemon diff --git a/net-p2p/uhub/files/uhub.sh.in b/net-p2p/uhub/files/uhub.sh.in index f4abad5..7a06bcf 100644 --- a/net-p2p/uhub/files/uhub.sh.in +++ b/net-p2p/uhub/files/uhub.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="uhub" -rcvar=`set_rcvar` +rcvar=uhub_enable load_rc_config $name diff --git a/net-p2p/verlihub/files/verlihub.in b/net-p2p/verlihub/files/verlihub.in index 4508f96..faf64b8 100644 --- a/net-p2p/verlihub/files/verlihub.in +++ b/net-p2p/verlihub/files/verlihub.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="verlihub" -rcvar=${name}_enable +rcvar=verlihub_enable command=%%PREFIX%%/bin/${name} pidfile=/var/run/${name}.pid diff --git a/net/3proxy/files/3proxy.sh.in b/net/3proxy/files/3proxy.sh.in index 44935f6..ab286f9 100644 --- a/net/3proxy/files/3proxy.sh.in +++ b/net/3proxy/files/3proxy.sh.in @@ -19,7 +19,7 @@ threeproxy_flags=${threeproxy_flags-"%%PREFIX%%/etc/3proxy.cfg"} . /etc/rc.subr name="threeproxy" -rcvar=`set_rcvar` +rcvar=threeproxy_enable command="%%PREFIX%%/bin/3proxy" load_rc_config $name diff --git a/net/DarwinStreamingServer/files/darwin_streaming_server.sh.in b/net/DarwinStreamingServer/files/darwin_streaming_server.sh.in index 7d7cd29..42996a6 100644 --- a/net/DarwinStreamingServer/files/darwin_streaming_server.sh.in +++ b/net/DarwinStreamingServer/files/darwin_streaming_server.sh.in @@ -10,7 +10,7 @@ darwin_streaming_server_enable=${darwin_streaming_server_enable-"NO"} . /etc/rc.subr name=darwin_streaming_server -rcvar=`set_rcvar` +rcvar=darwin_streaming_server_enable command=%%PREFIX%%/sbin/DarwinStreamingServer load_rc_config ${name} diff --git a/net/DarwinStreamingServer/files/streamingadminserver.sh.in b/net/DarwinStreamingServer/files/streamingadminserver.sh.in index f708d61..dde54db 100644 --- a/net/DarwinStreamingServer/files/streamingadminserver.sh.in +++ b/net/DarwinStreamingServer/files/streamingadminserver.sh.in @@ -10,7 +10,7 @@ streamingadminserver_enable=${streamingadminserver_enable-"NO"} . /etc/rc.subr name=streamingadminserver -rcvar=`set_rcvar` +rcvar=streamingadminserver_enable command=%%PREFIX%%/sbin/${name}.pl command_interpreter=%%PERL%% diff --git a/net/activemq/files/activemq.in b/net/activemq/files/activemq.in index d332c90..072f131 100644 --- a/net/activemq/files/activemq.in +++ b/net/activemq/files/activemq.in @@ -30,7 +30,7 @@ . /etc/rc.subr name="activemq" -rcvar=${name}_enable +rcvar=activemq_enable load_rc_config $name # Set defaults diff --git a/net/aoe/files/aoe.in b/net/aoe/files/aoe.in index 714a9dc..154f5bc 100644 --- a/net/aoe/files/aoe.in +++ b/net/aoe/files/aoe.in @@ -10,7 +10,7 @@ . /etc/rc.subr name="aoe" -rcvar="`set_rcvar`" +rcvar=aoe_enable start_cmd="aoe_start" stop_cmd=":" diff --git a/net/apinger/files/apinger.in b/net/apinger/files/apinger.in index 970a389d..f284f64 100644 --- a/net/apinger/files/apinger.in +++ b/net/apinger/files/apinger.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="apinger" -rcvar=${name}_enable +rcvar=apinger_enable command=%%PREFIX%%/sbin/${name} pidfile=/var/run/${name}.pid diff --git a/net/asterisk/files/asterisk.sh.in b/net/asterisk/files/asterisk.sh.in index d8bdac9..a612850 100644 --- a/net/asterisk/files/asterisk.sh.in +++ b/net/asterisk/files/asterisk.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name=asterisk -rcvar=`set_rcvar` +rcvar=asterisk_enable extra_commands="reload" diff --git a/net/asterisk10/files/asterisk.sh.in b/net/asterisk10/files/asterisk.sh.in index d8bdac9..a612850 100644 --- a/net/asterisk10/files/asterisk.sh.in +++ b/net/asterisk10/files/asterisk.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name=asterisk -rcvar=`set_rcvar` +rcvar=asterisk_enable extra_commands="reload" diff --git a/net/asterisk14/files/asterisk.sh.in b/net/asterisk14/files/asterisk.sh.in index ca59410..36992dc 100644 --- a/net/asterisk14/files/asterisk.sh.in +++ b/net/asterisk14/files/asterisk.sh.in @@ -20,7 +20,7 @@ asterisk_shutdown () { } name=asterisk -rcvar=`set_rcvar` +rcvar=asterisk_enable command=%%PREFIX%%/sbin/asterisk diff --git a/net/asterisk16/files/asterisk.sh.in b/net/asterisk16/files/asterisk.sh.in index 9498521..be2d32d 100644 --- a/net/asterisk16/files/asterisk.sh.in +++ b/net/asterisk16/files/asterisk.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name=asterisk -rcvar=`set_rcvar` +rcvar=asterisk_enable extra_commands="reload" diff --git a/net/avahi-app/files/patch-initscript_freebsd_avahi-daemon.sh.in b/net/avahi-app/files/patch-initscript_freebsd_avahi-daemon.sh.in index b50a9e8..60f5ce6 100644 --- a/net/avahi-app/files/patch-initscript_freebsd_avahi-daemon.sh.in +++ b/net/avahi-app/files/patch-initscript_freebsd_avahi-daemon.sh.in @@ -14,4 +14,4 @@ +avahi_daemon_enable=${avahi_daemon_enable-${gnome_enable}} name=avahi_daemon - rcvar=`set_rcvar` + rcvar=avahi_daemon_enable diff --git a/net/avahi-app/files/patch-initscript_freebsd_avahi-dnsconfd.sh.in b/net/avahi-app/files/patch-initscript_freebsd_avahi-dnsconfd.sh.in index 71c4343..d823b67 100644 --- a/net/avahi-app/files/patch-initscript_freebsd_avahi-dnsconfd.sh.in +++ b/net/avahi-app/files/patch-initscript_freebsd_avahi-dnsconfd.sh.in @@ -14,4 +14,4 @@ +avahi_dnsconfd_enable=${avahi_dnsconfd_enable-${gnome_enable}} name=avahi_dnsconfd - rcvar=`set_rcvar` + rcvar=avahi_dnsconfd_enable diff --git a/net/balance/files/balance.sh.in b/net/balance/files/balance.sh.in index 0f4f906..5f80783 100644 --- a/net/balance/files/balance.sh.in +++ b/net/balance/files/balance.sh.in @@ -23,7 +23,7 @@ . /etc/rc.subr name=balance -rcvar=`set_rcvar` +rcvar=balance_enable command=%%PREFIX%%/bin/balance start_cmd=start_cmd diff --git a/net/beanstalkd/files/beanstalkd.in b/net/beanstalkd/files/beanstalkd.in index 8aefd49..e01e177 100644 --- a/net/beanstalkd/files/beanstalkd.in +++ b/net/beanstalkd/files/beanstalkd.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="beanstalkd" -rcvar=${name}_enable +rcvar=beanstalkd_enable load_rc_config ${name} diff --git a/net/bfilter/files/bfilter.sh.in b/net/bfilter/files/bfilter.sh.in index 4d438d4..b54c7f3 100644 --- a/net/bfilter/files/bfilter.sh.in +++ b/net/bfilter/files/bfilter.sh.in @@ -13,7 +13,7 @@ . /etc/rc.subr name=bfilter -rcvar=`set_rcvar` +rcvar=bfilter_enable command=%%PREFIX%%/bin/${name} sig_stop=KILL diff --git a/net/binkd/files/binkd.sh.in b/net/binkd/files/binkd.sh.in index aa61811..7d709eb 100644 --- a/net/binkd/files/binkd.sh.in +++ b/net/binkd/files/binkd.sh.in @@ -23,7 +23,7 @@ binkd_pidfile=${binkd_pidfile:-"/var/run/binkd/binkd.pid"} load_rc_config binkd name="binkd" -rcvar=`set_rcvar` +rcvar=binkd_enable command="%%PREFIX%%/sbin/binkd" command_args="${binkd_config}" required_files="${binkd_config}" diff --git a/net/bird-devel/files/bird.in b/net/bird-devel/files/bird.in index 68dc9bd..a222f77 100644 --- a/net/bird-devel/files/bird.in +++ b/net/bird-devel/files/bird.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="bird" -rcvar=${name}_enable +rcvar=bird_enable command=%%PREFIX%%/sbin/${name} diff --git a/net/bird/files/bird.in b/net/bird/files/bird.in index 68dc9bd..a222f77 100644 --- a/net/bird/files/bird.in +++ b/net/bird/files/bird.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="bird" -rcvar=${name}_enable +rcvar=bird_enable command=%%PREFIX%%/sbin/${name} diff --git a/net/bird6/files/bird6.in b/net/bird6/files/bird6.in index 58b2b4f..4650516 100644 --- a/net/bird6/files/bird6.in +++ b/net/bird6/files/bird6.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="bird6" -rcvar=${name}_enable +rcvar=bird6_enable command=%%PREFIX%%/sbin/${name} diff --git a/net/bld/files/bld.in b/net/bld/files/bld.in index a2a342d..e8805d4 100644 --- a/net/bld/files/bld.in +++ b/net/bld/files/bld.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="bld" -rcvar=${name}_enable +rcvar=bld_enable load_rc_config $name diff --git a/net/boinc-client/files/boinc.sh.in b/net/boinc-client/files/boinc.sh.in index 9950b84..63f444d 100644 --- a/net/boinc-client/files/boinc.sh.in +++ b/net/boinc-client/files/boinc.sh.in @@ -9,7 +9,7 @@ . /etc/rc.subr name="boinc" -rcvar=`set_rcvar` +rcvar=boinc_enable boinc_user=%%BOINC_USER%% boinc_home=%%BOINC_HOME%% diff --git a/net/bounce/files/bounce.in b/net/bounce/files/bounce.in index e8e8448..6d28475 100644 --- a/net/bounce/files/bounce.in +++ b/net/bounce/files/bounce.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="bounce" -rcvar=${name}_enable +rcvar=bounce_enable load_rc_config $name diff --git a/net/callweaver/files/callweaver.in b/net/callweaver/files/callweaver.in index e1ef480..cc0caf2 100644 --- a/net/callweaver/files/callweaver.in +++ b/net/callweaver/files/callweaver.in @@ -15,7 +15,7 @@ stop_precmd=callweaver_shutdown sig_stop=KILL name=callweaver -rcvar=`set_rcvar` +rcvar=callweaver_enable command=%%PREFIX%%/sbin/${name} pidfile=${callweaver_pidfile:-"/var/run/${name}.pid"} diff --git a/net/ccxstream/files/ccxstream.in b/net/ccxstream/files/ccxstream.in index 4365fdd..3b46f66 100644 --- a/net/ccxstream/files/ccxstream.in +++ b/net/ccxstream/files/ccxstream.in @@ -29,7 +29,7 @@ . /etc/rc.subr name="ccxstream" -rcvar=`set_rcvar` +rcvar=ccxstream_enable command="%%PREFIX%%/sbin/ccxstream" diff --git a/net/cnupm/files/cnupm.sh.in b/net/cnupm/files/cnupm.sh.in index e479e22..2a9a338 100644 --- a/net/cnupm/files/cnupm.sh.in +++ b/net/cnupm/files/cnupm.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=cnupm -rcvar=`set_rcvar` +rcvar=cnupm_enable command=%%PREFIX%%/sbin/cnupm cnupm_flags="-ep -f inet -u cnupm" diff --git a/net/crtmpserver/files/crtmpserver.in b/net/crtmpserver/files/crtmpserver.in index a0b913f..1495ae5 100644 --- a/net/crtmpserver/files/crtmpserver.in +++ b/net/crtmpserver/files/crtmpserver.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="crtmpserver" -rcvar=${name}_enable +rcvar=crtmpserver_enable command=%%PREFIX%%/sbin/${name} diff --git a/net/csync2/files/csync2.in b/net/csync2/files/csync2.in index ca24293..85a100d 100644 --- a/net/csync2/files/csync2.in +++ b/net/csync2/files/csync2.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="csync2" -rcvar=${name}_enable +rcvar=csync2_enable pidfile=/var/run/${name}.pid command=%%PREFIX%%/sbin/csync2 diff --git a/net/cvsup-mirror/files/cvsupd.sh.in b/net/cvsup-mirror/files/cvsupd.sh.in index 4c4049f..60d080b 100644 --- a/net/cvsup-mirror/files/cvsupd.sh.in +++ b/net/cvsup-mirror/files/cvsupd.sh.in @@ -30,7 +30,7 @@ . /etc/rc.subr name="cvsupd" -rcvar=`set_rcvar` +rcvar=cvsupd_enable load_rc_config $name diff --git a/net/cvsync/files/cvsyncd.in b/net/cvsync/files/cvsyncd.in index d002408..e287978 100644 --- a/net/cvsync/files/cvsyncd.in +++ b/net/cvsync/files/cvsyncd.in @@ -12,7 +12,7 @@ cvsyncd_conffile=${cvsyncd_conffile-"%%PREFIX%%/etc/cvsyncd.conf"} . /etc/rc.subr name=cvsyncd -rcvar=`set_rcvar` +rcvar=cvsyncd_enable command=%%PREFIX%%/bin/${name} load_rc_config ${name} diff --git a/net/daemonlogger/files/daemonlogger.sh.in b/net/daemonlogger/files/daemonlogger.sh.in index 649668e..77dc52d 100644 --- a/net/daemonlogger/files/daemonlogger.sh.in +++ b/net/daemonlogger/files/daemonlogger.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="daemonlogger" -rcvar=`set_rcvar` +rcvar=daemonlogger_enable load_rc_config $name diff --git a/net/dante/files/sockd.sh.in b/net/dante/files/sockd.sh.in index b639cf7..078e49e 100644 --- a/net/dante/files/sockd.sh.in +++ b/net/dante/files/sockd.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=sockd -rcvar=`set_rcvar` +rcvar=sockd_enable command=%%PREFIX%%/sbin/sockd pidfile=/var/run/sockd.pid diff --git a/net/dbeacon/files/dbeacon.in b/net/dbeacon/files/dbeacon.in index a9a3cb5..5438882 100644 --- a/net/dbeacon/files/dbeacon.in +++ b/net/dbeacon/files/dbeacon.in @@ -19,7 +19,7 @@ dbeacon_flags=${dbeacon_flags-""} . /etc/rc.subr name="dbeacon" -rcvar=`set_rcvar` +rcvar=dbeacon_enable command="%%PREFIX%%/bin/${name}" diff --git a/net/dhcp6/files/dhcp6c.sh.in b/net/dhcp6/files/dhcp6c.sh.in index e88e376..1054a09 100644 --- a/net/dhcp6/files/dhcp6c.sh.in +++ b/net/dhcp6/files/dhcp6c.sh.in @@ -26,7 +26,7 @@ . /etc/rc.subr name="dhcp6c" -rcvar=${name}_enable +rcvar=dhcp6c_enable command="%%PREFIX%%/sbin/${name}" start_precmd="${name}_precmd" diff --git a/net/dhcp6/files/dhcp6relay.sh.in b/net/dhcp6/files/dhcp6relay.sh.in index 055fe6e..849f825 100644 --- a/net/dhcp6/files/dhcp6relay.sh.in +++ b/net/dhcp6/files/dhcp6relay.sh.in @@ -23,7 +23,7 @@ . /etc/rc.subr name="dhcp6relay" -rcvar=${name}_enable +rcvar=dhcp6relay_enable command=%%PREFIX%%/sbin/${name} start_precmd="${name}_precmd" diff --git a/net/dhcp6/files/dhcp6s.sh.in b/net/dhcp6/files/dhcp6s.sh.in index e399657..f13c74b 100644 --- a/net/dhcp6/files/dhcp6s.sh.in +++ b/net/dhcp6/files/dhcp6s.sh.in @@ -24,7 +24,7 @@ . /etc/rc.subr name="dhcp6s" -rcvar=${name}_enable +rcvar=dhcp6s_enable command=%%PREFIX%%/sbin/${name} start_precmd="${name}_precmd" diff --git a/net/dhcprelay/files/dhcprelay.in b/net/dhcprelay/files/dhcprelay.in index b693b72..e5424e4 100644 --- a/net/dhcprelay/files/dhcprelay.in +++ b/net/dhcprelay/files/dhcprelay.in @@ -15,7 +15,7 @@ . /etc/rc.subr name=dhcprelay -rcvar=$(set_rcvar) +rcvar=dhcprelay_enable pidfile=/var/run/${name}.pid command=%%PREFIX%%/bin/${name} diff --git a/net/dhcprelya/files/dhcprelya.in b/net/dhcprelya/files/dhcprelya.in index 45c770b..463604c 100644 --- a/net/dhcprelya/files/dhcprelya.in +++ b/net/dhcprelya/files/dhcprelya.in @@ -45,7 +45,7 @@ dhcprelya_postcmd() { . /etc/rc.subr name=dhcprelya -rcvar=$(set_rcvar) +rcvar=dhcprelya_enable pidfile=/var/run/${name}.pid command=%%PREFIX%%/sbin/${name} diff --git a/net/dictd/files/dictd.in b/net/dictd/files/dictd.in index 9187e00..a055970 100644 --- a/net/dictd/files/dictd.in +++ b/net/dictd/files/dictd.in @@ -14,7 +14,7 @@ dictd_enable=${dictd_enable-"NO"} . /etc/rc.subr name=dictd -rcvar=`set_rcvar` +rcvar=dictd_enable command=%%PREFIX%%/sbin/dictd load_rc_config $name diff --git a/net/dtcp/files/dtcpc.sh.in b/net/dtcp/files/dtcpc.sh.in index 863b689..0d7e32c 100644 --- a/net/dtcp/files/dtcpc.sh.in +++ b/net/dtcp/files/dtcpc.sh.in @@ -24,7 +24,7 @@ dtcpc_flags=${dtcpc_flags:-"-t network -Dl"} # Flags to dtcpc program . /etc/rc.subr name="dtcpc" -rcvar=`set_rcvar` +rcvar=dtcpc_enable command="%%PREFIX%%/sbin/${name}" command_interpreter="%%RUBY%%" pidfile="/var/run/${name}.pid" diff --git a/net/dtcp/files/dtcps.sh.in b/net/dtcp/files/dtcps.sh.in index 7bff3d9..6f3693a 100644 --- a/net/dtcp/files/dtcps.sh.in +++ b/net/dtcp/files/dtcps.sh.in @@ -36,7 +36,7 @@ dtcps_enable=${dtcps_enable:-"NO"} # Enable dtcps . /etc/rc.subr name="dtcps" -rcvar=`set_rcvar` +rcvar=dtcps_enable command="%%PREFIX%%/sbin/${name}" command_interpreter="%%RUBY%%" pidfile="/var/run/${name}.pid" diff --git a/net/dtcpclient/files/dtcpclient.sh.in b/net/dtcpclient/files/dtcpclient.sh.in index 687bd95..916c787 100644 --- a/net/dtcpclient/files/dtcpclient.sh.in +++ b/net/dtcpclient/files/dtcpclient.sh.in @@ -24,7 +24,7 @@ dtcpclient_flags=${dtcpclient_flags:-"-t network -Dl"} # Flags to dtcpclient pro . /etc/rc.subr name="dtcpclient" -rcvar=`set_rcvar` +rcvar=dtcpclient_enable command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/${name}.pid" extra_commands="reload" diff --git a/net/freenet6/files/freenet6.in b/net/freenet6/files/freenet6.in index adee0df..30846ce 100644 --- a/net/freenet6/files/freenet6.in +++ b/net/freenet6/files/freenet6.in @@ -22,7 +22,7 @@ . /etc/rc.subr name=freenet6 -rcvar=`set_rcvar` +rcvar=freenet6_enable command=%%PREFIX%%/bin/gw6c required_files=%%PREFIX%%/etc/freenet6/gw6c.conf diff --git a/net/freeradius/files/radiusd.in b/net/freeradius/files/radiusd.in index 86724eb..4a735a1 100644 --- a/net/freeradius/files/radiusd.in +++ b/net/freeradius/files/radiusd.in @@ -13,7 +13,7 @@ . /etc/rc.subr name=radiusd -rcvar=`set_rcvar` +rcvar=radiusd_enable load_rc_config $name command=%%PREFIX%%/sbin/radiusd diff --git a/net/freeradius2/files/radiusd.sh.in b/net/freeradius2/files/radiusd.sh.in index 066993e..bf65b81 100644 --- a/net/freeradius2/files/radiusd.sh.in +++ b/net/freeradius2/files/radiusd.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=radiusd -rcvar=`set_rcvar` +rcvar=radiusd_enable load_rc_config $name command=%%PREFIX%%/sbin/radiusd diff --git a/net/freeswitch-core/files/freeswitch.in b/net/freeswitch-core/files/freeswitch.in index a3ab07d..d38f868 100644 --- a/net/freeswitch-core/files/freeswitch.in +++ b/net/freeswitch-core/files/freeswitch.in @@ -15,7 +15,7 @@ . /etc/rc.subr name=freeswitch -rcvar=`set_rcvar` +rcvar=freeswitch_enable load_rc_config $name diff --git a/net/frickin/files/frickin.sh.in b/net/frickin/files/frickin.sh.in index abbc26a..87776ca 100644 --- a/net/frickin/files/frickin.sh.in +++ b/net/frickin/files/frickin.sh.in @@ -25,7 +25,7 @@ frickin_conf=${frickin_conf-""} name="frickin" -rcvar=`set_rcvar` +rcvar=frickin_enable load_rc_config ${name} diff --git a/net/gatekeeper/files/gnugk.sh.in b/net/gatekeeper/files/gnugk.sh.in index 4747a64..20ef2df 100644 --- a/net/gatekeeper/files/gnugk.sh.in +++ b/net/gatekeeper/files/gnugk.sh.in @@ -20,7 +20,7 @@ . /etc/rc.subr name="gnugk" -rcvar=`set_rcvar` +rcvar=gnugk_enable command="%%PREFIX%%/bin/${name}" extra_commands="reload" diff --git a/net/gateway6/files/gateway6.sh.in b/net/gateway6/files/gateway6.sh.in index 1651210..4718b66 100644 --- a/net/gateway6/files/gateway6.sh.in +++ b/net/gateway6/files/gateway6.sh.in @@ -23,7 +23,7 @@ . /etc/rc.subr name="gateway6" -rcvar=`set_rcvar` +rcvar=gateway6_enable command=%%PREFIX%%/bin/gw6c required_files=%%PREFIX%%/etc/gw6c.conf diff --git a/net/get_iplayer/files/get_iplayer.in b/net/get_iplayer/files/get_iplayer.in index e20aac1..af1f6f8 100644 --- a/net/get_iplayer/files/get_iplayer.in +++ b/net/get_iplayer/files/get_iplayer.in @@ -28,7 +28,7 @@ . /etc/rc.subr name="get_iplayer" -rcvar=`set_rcvar` +rcvar=get_iplayer_enable load_rc_config $name diff --git a/net/gnu-dico/files/dicod.sh.in b/net/gnu-dico/files/dicod.sh.in index 612e7a0..3c849d9 100644 --- a/net/gnu-dico/files/dicod.sh.in +++ b/net/gnu-dico/files/dicod.sh.in @@ -13,7 +13,7 @@ dicod_enable=${dicod_enable-"NO"} . %%RC_SUBR%% name=dicod -rcvar=`set_rcvar` +rcvar=dicod_enable command=%%PREFIX%%/sbin/dicod load_rc_config $name diff --git a/net/gnu-radius/files/radiusd.sh.in b/net/gnu-radius/files/radiusd.sh.in index d37dc8f..1035a27 100644 --- a/net/gnu-radius/files/radiusd.sh.in +++ b/net/gnu-radius/files/radiusd.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=radiusd -rcvar=`set_rcvar` +rcvar=radiusd_enable command=%%PREFIX%%/sbin/radiusd radiusd_config=${radiusd_config:-"%%PREFIX%%/etc/raddb/config"} diff --git a/net/gogoc/files/gogoc.in b/net/gogoc/files/gogoc.in index 14ebd38..35c2d10 100644 --- a/net/gogoc/files/gogoc.in +++ b/net/gogoc/files/gogoc.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="gogoc" -rcvar=${name}_enable +rcvar=gogoc_enable command=%%LOCALBASE%%/bin/${name} diff --git a/net/haproxy-devel/files/haproxy.in b/net/haproxy-devel/files/haproxy.in index 8127c9a..fc79f78 100644 --- a/net/haproxy-devel/files/haproxy.in +++ b/net/haproxy-devel/files/haproxy.in @@ -34,7 +34,7 @@ . /etc/rc.subr name="haproxy" -rcvar=`set_rcvar` +rcvar=haproxy_enable command="%%PREFIX%%/sbin/haproxy" # Load Configs/Set Defaults diff --git a/net/haproxy/files/haproxy.in b/net/haproxy/files/haproxy.in index 8127c9a..fc79f78 100644 --- a/net/haproxy/files/haproxy.in +++ b/net/haproxy/files/haproxy.in @@ -34,7 +34,7 @@ . /etc/rc.subr name="haproxy" -rcvar=`set_rcvar` +rcvar=haproxy_enable command="%%PREFIX%%/sbin/haproxy" # Load Configs/Set Defaults diff --git a/net/howl/files/mdnsresponder.in b/net/howl/files/mdnsresponder.in index dc546b4..228ffee 100644 --- a/net/howl/files/mdnsresponder.in +++ b/net/howl/files/mdnsresponder.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=mdnsresponder -rcvar=`set_rcvar` +rcvar=mdnsresponder_enable command=%%PREFIX%%/bin/mDNSResponder diff --git a/net/httpry/files/httpry.in b/net/httpry/files/httpry.in index 14bf6f6..b0e2083 100644 --- a/net/httpry/files/httpry.in +++ b/net/httpry/files/httpry.in @@ -18,7 +18,7 @@ . /etc/rc.subr name=httpry -rcvar=${name}_enable +rcvar=httpry_enable load_rc_config $name diff --git a/net/iaxmodem/files/iaxmodem.in b/net/iaxmodem/files/iaxmodem.in index 6b7685b..23132dd 100644 --- a/net/iaxmodem/files/iaxmodem.in +++ b/net/iaxmodem/files/iaxmodem.in @@ -13,7 +13,7 @@ . /etc/rc.subr name=iaxmodem -rcvar=`set_rcvar` +rcvar=iaxmodem_enable command=%%PREFIX%%/sbin/iaxmodem diff --git a/net/iet/files/ietd.in b/net/iet/files/ietd.in index 019f683..af3dfa3 100644 --- a/net/iet/files/ietd.in +++ b/net/iet/files/ietd.in @@ -9,7 +9,7 @@ . /etc/rc.subr name="ietd" -rcvar=`set_rcvar` +rcvar=ietd_enable command=%%PREFIX%%/sbin/${name} required_modules="%%PREFIX%%/modules/iet.ko:iet" diff --git a/net/ifdepd/files/ifdepd.in b/net/ifdepd/files/ifdepd.in index db5c00f..44644d6 100644 --- a/net/ifdepd/files/ifdepd.in +++ b/net/ifdepd/files/ifdepd.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="ifdepd" -rcvar=`set_rcvar` +rcvar=ifdepd_enable command="%%PREFIX%%/bin/ifdepd" diff --git a/net/ifstated/files/ifstated.in b/net/ifstated/files/ifstated.in index 8da538b..6db7abf 100644 --- a/net/ifstated/files/ifstated.in +++ b/net/ifstated/files/ifstated.in @@ -39,7 +39,7 @@ . /etc/rc.subr name="ifstated" -rcvar=`set_rcvar` +rcvar=ifstated_enable command="%%PREFIX%%/sbin/ifstated" pidfile="/var/run/${name}.pid" diff --git a/net/igmpproxy/files/igmpproxy.in b/net/igmpproxy/files/igmpproxy.in index 68a5b87..843510d 100644 --- a/net/igmpproxy/files/igmpproxy.in +++ b/net/igmpproxy/files/igmpproxy.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="igmpproxy" -rcvar=`set_rcvar` +rcvar=igmpproxy_enable procname="%%PREFIX%%/sbin/${name}" command=/usr/sbin/daemon required_files="%%PREFIX%%/etc/igmpproxy.conf" diff --git a/net/iodine/files/iodined.in b/net/iodine/files/iodined.in index afaedc0..23d8eed 100644 --- a/net/iodine/files/iodined.in +++ b/net/iodine/files/iodined.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="iodined" -rcvar=${name}_enable +rcvar=iodined_enable command=%%PREFIX%%/sbin/${name} diff --git a/net/iplog/files/iplog.in b/net/iplog/files/iplog.in index 6731648..0fa85f8 100644 --- a/net/iplog/files/iplog.in +++ b/net/iplog/files/iplog.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="iplog" -rcvar=${name}_enable +rcvar=iplog_enable command=%%PREFIX%%/sbin/${name} pidfile=/var/run/${name}/${name}.pid diff --git a/net/ipw-firmware/files/ipw.sh.in b/net/ipw-firmware/files/ipw.sh.in index 3240c6c..7954a2e 100644 --- a/net/ipw-firmware/files/ipw.sh.in +++ b/net/ipw-firmware/files/ipw.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="%%DRIVERNAME%%" -rcvar=`set_rcvar` +rcvar=%%DRIVERNAME%%_enable start_cmd="%%DRIVERNAME%%_start_cmd" stop_cmd="%%DRIVERNAME%%_stop_cmd" diff --git a/net/irrd/files/irrd.sh.in b/net/irrd/files/irrd.sh.in index 1aa8552..96dee75 100644 --- a/net/irrd/files/irrd.sh.in +++ b/net/irrd/files/irrd.sh.in @@ -20,7 +20,7 @@ irrd_flags="${irrd_flags:--u}" # Flags to imapd program . /etc/rc.subr name="irrd" -rcvar=`set_rcvar` +rcvar=irrd_enable command="%%PREFIX%%/sbin/irrd" required_files="%%PREFIX%%/etc/irrd.conf" diff --git a/net/iscsi-target/files/iscsi_target.in b/net/iscsi-target/files/iscsi_target.in index 95953f5..fa7a64b 100644 --- a/net/iscsi-target/files/iscsi_target.in +++ b/net/iscsi-target/files/iscsi_target.in @@ -6,7 +6,7 @@ . /etc/rc.subr name="iscsi_target" -rcvar=`set_rcvar` +rcvar=iscsi_target_enable command="%%PREFIX%%/bin/iscsi-target" required_files="%%PREFIX%%/etc/iscsi/targets" diff --git a/net/iwi-firmware/files/iwi.sh.in b/net/iwi-firmware/files/iwi.sh.in index a861221..5de1210 100644 --- a/net/iwi-firmware/files/iwi.sh.in +++ b/net/iwi-firmware/files/iwi.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="%%DRIVERNAME%%" -rcvar=`set_rcvar` +rcvar=%%DRIVERNAME%%_enable start_cmd="%%DRIVERNAME%%_start_cmd" stop_cmd="%%DRIVERNAME%%_stop_cmd" diff --git a/net/ladvd/files/ladvd.in b/net/ladvd/files/ladvd.in index 1055b0f..3d304ef6 100644 --- a/net/ladvd/files/ladvd.in +++ b/net/ladvd/files/ladvd.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=ladvd -rcvar=`set_rcvar` +rcvar=ladvd_enable command=%%PREFIX%%/sbin/ladvd load_rc_config ${name} diff --git a/net/lanbrowsing/files/lisa.in b/net/lanbrowsing/files/lisa.in index 3b077bd..b0a39dc 100644 --- a/net/lanbrowsing/files/lisa.in +++ b/net/lanbrowsing/files/lisa.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="lisa" -rcvar=`set_rcvar` +rcvar=lisa_enable command="%%PREFIX%%/bin/lisa" diff --git a/net/linknx/files/linknx.in b/net/linknx/files/linknx.in index be89e80..3344c14 100644 --- a/net/linknx/files/linknx.in +++ b/net/linknx/files/linknx.in @@ -23,7 +23,7 @@ . /etc/rc.subr name="linknx" -rcvar=`set_rcvar` +rcvar=linknx_enable start_precmd="linknx_precmd" diff --git a/net/linuxigd/files/linuxigd.in b/net/linuxigd/files/linuxigd.in index 83630fc..e9821a6 100644 --- a/net/linuxigd/files/linuxigd.in +++ b/net/linuxigd/files/linuxigd.in @@ -13,7 +13,7 @@ . /etc/rc.subr name=linuxigd -rcvar=`set_rcvar` +rcvar=linuxigd_enable load_rc_config $name diff --git a/net/lvwimax/files/lvwimax.in b/net/lvwimax/files/lvwimax.in index 6dc904c..32727cd 100644 --- a/net/lvwimax/files/lvwimax.in +++ b/net/lvwimax/files/lvwimax.in @@ -16,7 +16,7 @@ lvwimax_tap_dev="tap0" . /etc/rc.subr name=lvwimax -rcvar=${name}_enable +rcvar=lvwimax_enable load_rc_config $name diff --git a/net/mDNSResponder/files/mdnsd.in b/net/mDNSResponder/files/mdnsd.in index 6011375..c17ea3f 100644 --- a/net/mDNSResponder/files/mdnsd.in +++ b/net/mDNSResponder/files/mdnsd.in @@ -9,7 +9,7 @@ . /etc/rc.subr name=mdnsd -rcvar=`set_rcvar` +rcvar=mdnsd_enable load_rc_config $name diff --git a/net/mediaproxy/files/mediaproxy.in b/net/mediaproxy/files/mediaproxy.in index b63c746..77aa1f0 100644 --- a/net/mediaproxy/files/mediaproxy.in +++ b/net/mediaproxy/files/mediaproxy.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="mediaproxy" -rcvar="${name}_enable" +rcvar=mediaproxy_enable load_rc_config $name diff --git a/net/mediaproxy/files/proxydispatcher.in b/net/mediaproxy/files/proxydispatcher.in index e5ea7a1..2b0b466 100644 --- a/net/mediaproxy/files/proxydispatcher.in +++ b/net/mediaproxy/files/proxydispatcher.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="proxydispatcher" -rcvar="${name}_enable" +rcvar=proxydispatcher_enable load_rc_config $name diff --git a/net/mediatomb/files/mediatomb.sh.in b/net/mediatomb/files/mediatomb.sh.in index e9b3507..31476a2 100644 --- a/net/mediatomb/files/mediatomb.sh.in +++ b/net/mediatomb/files/mediatomb.sh.in @@ -25,7 +25,7 @@ mediatomb_logfile=${mediatomb_logfile-"%%MEDIATOMB_DIR%%/mediatomb.log"} mediatomb_pidfile=${mediatomb_pidfile-"%%MEDIATOMB_DIR%%/mediatomb.pid"} name="mediatomb" -rcvar=`set_rcvar` +rcvar=mediatomb_enable load_rc_config $name diff --git a/net/minidlna/files/minidlna.sh.in b/net/minidlna/files/minidlna.sh.in index 55b238a..4b2ed5e 100644 --- a/net/minidlna/files/minidlna.sh.in +++ b/net/minidlna/files/minidlna.sh.in @@ -13,7 +13,7 @@ . /etc/rc.subr name=minidlna -rcvar=`set_rcvar` +rcvar=minidlna_enable command=%%PREFIX%%/sbin/minidlna load_rc_config $name diff --git a/net/minisapserver/files/sapserver.in b/net/minisapserver/files/sapserver.in index 2c27d41..95af944 100644 --- a/net/minisapserver/files/sapserver.in +++ b/net/minisapserver/files/sapserver.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=sapserver -rcvar=${name}_enable +rcvar=sapserver_enable command=%%PREFIX%%/bin/${name} required_files=%%PREFIX%%/etc/sap.cfg diff --git a/net/minissdpd/files/minissdpd.in b/net/minissdpd/files/minissdpd.in index cf59a39..76e3773 100644 --- a/net/minissdpd/files/minissdpd.in +++ b/net/minissdpd/files/minissdpd.in @@ -14,7 +14,7 @@ # minissdpd_flags="-i listen_addr" name=minissdpd -rcvar=`set_rcvar` +rcvar=minissdpd_enable load_rc_config $name minissdpd_enable=${minissdpd_enable:-"NO"} diff --git a/net/miniupnpd/files/miniupnpd.sh.in b/net/miniupnpd/files/miniupnpd.sh.in index c9d4079..f866faf 100644 --- a/net/miniupnpd/files/miniupnpd.sh.in +++ b/net/miniupnpd/files/miniupnpd.sh.in @@ -13,7 +13,7 @@ # miniupnpd_flags="<set as needed>" name=miniupnpd -rcvar=`set_rcvar` +rcvar=miniupnpd_enable load_rc_config $name miniupnpd_enable=${miniupnpd_enable:-"NO"} diff --git a/net/miredo/files/miredo.in b/net/miredo/files/miredo.in index ebdda40..a4e1d9c 100644 --- a/net/miredo/files/miredo.in +++ b/net/miredo/files/miredo.in @@ -17,7 +17,7 @@ miredo_enable="${miredo_enable-NO}" . /etc/rc.subr name=miredo -rcvar=`set_rcvar` +rcvar=miredo_enable command=%%PREFIX%%/sbin/${name} required_files=%%PREFIX%%/etc/miredo/miredo.conf diff --git a/net/miredo/files/miredo_server.in b/net/miredo/files/miredo_server.in index ddc4c26..605e82f 100644 --- a/net/miredo/files/miredo_server.in +++ b/net/miredo/files/miredo_server.in @@ -17,7 +17,7 @@ miredo_server_enable="${miredo_server_enable-NO}" . /etc/rc.subr name=miredo_server -rcvar=`set_rcvar` +rcvar=miredo_server_enable command=%%PREFIX%%/sbin/${name} required_files=%%PREFIX%%/etc/miredo/miredo-server.conf diff --git a/net/mpd5/files/mpd5.sh.in b/net/mpd5/files/mpd5.sh.in index 01297e9..5654f72 100644 --- a/net/mpd5/files/mpd5.sh.in +++ b/net/mpd5/files/mpd5.sh.in @@ -1,13 +1,11 @@ #!/bin/sh -# + # $FreeBSD$ # - # PROVIDE: mpd # REQUIRE: SERVERS # BEFORE: DAEMON # KEYWORD: shutdown - # # Add the following lines to /etc/rc.conf to enable mpd5: # mpd_enable (bool): Set to "NO" by default. @@ -16,12 +14,11 @@ # Extra flags passed to start command. # # See mpd5(8) for flags. -# . /etc/rc.subr name="mpd5" -rcvar=`set_rcvar mpd` +rcvar=mpd_enable load_rc_config ${name} diff --git a/net/mrouted/files/mrouted.in b/net/mrouted/files/mrouted.in index c39d556..b329530 100644 --- a/net/mrouted/files/mrouted.in +++ b/net/mrouted/files/mrouted.in @@ -11,7 +11,7 @@ . /etc/rc.subr name="mrouted" -rcvar=`set_rcvar` +rcvar=mrouted_enable command=%%PREFIX%%/sbin/${name} pidfile="/var/run/${name}.pid" required_files=%%PREFIX%%/etc/${name}.conf diff --git a/net/nakenchat/files/nakenchat.in b/net/nakenchat/files/nakenchat.in index 05d5562..bda9d1b 100644 --- a/net/nakenchat/files/nakenchat.in +++ b/net/nakenchat/files/nakenchat.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="nakenchat" -rcvar=${name}_enable +rcvar=nakenchat_enable load_rc_config $name diff --git a/net/ndisc6/files/rdnssd.in b/net/ndisc6/files/rdnssd.in index 63bc700..802c49f 100644 --- a/net/ndisc6/files/rdnssd.in +++ b/net/ndisc6/files/rdnssd.in @@ -12,7 +12,7 @@ . /etc/rc.subr name=rdnssd -rcvar=`set_rcvar` +rcvar=rdnssd_enable pidfile=/var/run/${name}.pid command="%%PREFIX%%/sbin/${name}" diff --git a/net/netatalk/files/netatalk.in b/net/netatalk/files/netatalk.in index ae0f8a1..4408a7e 100644 --- a/net/netatalk/files/netatalk.in +++ b/net/netatalk/files/netatalk.in @@ -31,7 +31,7 @@ timelord_enable=${timelord_enable-"NO"} . /etc/rc.subr name=netatalk -rcvar=`set_rcvar` +rcvar=netatalk_enable hostname=`hostname -s` start_cmd=netatalk_start diff --git a/net/neubot/files/neubotd.in b/net/neubot/files/neubotd.in index bdb4d09..a4614d5 100644 --- a/net/neubot/files/neubotd.in +++ b/net/neubot/files/neubotd.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="neubotd" -rcvar=`set_rcvar` +rcvar=neubotd_enable # read settings, set default values load_rc_config "${name}" diff --git a/net/nss-pam-ldapd/files/nslcd.in b/net/nss-pam-ldapd/files/nslcd.in index 4cd4285..ab316ef 100644 --- a/net/nss-pam-ldapd/files/nslcd.in +++ b/net/nss-pam-ldapd/files/nslcd.in @@ -16,7 +16,7 @@ nslcd_enable=${nslcd_enable-"NO"} . /etc/rc.subr name=nslcd -rcvar=$(set_rcvar) +rcvar=nslcd_enable start_postcmd="nslcd_poststart" diff --git a/net/nstxd/files/nstxd.in b/net/nstxd/files/nstxd.in index ea4c7c2..e04142b 100644 --- a/net/nstxd/files/nstxd.in +++ b/net/nstxd/files/nstxd.in @@ -36,7 +36,7 @@ . /etc/rc.subr name=nstxd -rcvar=`set_rcvar` +rcvar=nstxd_enable command=%%PREFIX%%/sbin/nstxd diff --git a/net/ntop/files/ntop.sh.in b/net/ntop/files/ntop.sh.in index 1ef2755..bbedc78 100644 --- a/net/ntop/files/ntop.sh.in +++ b/net/ntop/files/ntop.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=ntop -rcvar=${name}_enable +rcvar=ntop_enable load_rc_config $name diff --git a/net/nylon/files/nylon.sh.in b/net/nylon/files/nylon.sh.in index a3427da..bec8209 100644 --- a/net/nylon/files/nylon.sh.in +++ b/net/nylon/files/nylon.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=nylon -rcvar=`set_rcvar` +rcvar=nylon_enable command=%%PREFIX%%/bin/nylon diff --git a/net/olsrd/files/olsrd.sh.in b/net/olsrd/files/olsrd.sh.in index 01bb1fc..fa3a234 100644 --- a/net/olsrd/files/olsrd.sh.in +++ b/net/olsrd/files/olsrd.sh.in @@ -8,7 +8,7 @@ . /etc/rc.subr name="olsrd" -rcvar=`set_rcvar` +rcvar=olsrd_enable command=%%PREFIX%%/sbin/olsrd command_args="-d 0" diff --git a/net/onioncat/files/onioncat.in b/net/onioncat/files/onioncat.in index 85e746d..78c338c 100644 --- a/net/onioncat/files/onioncat.in +++ b/net/onioncat/files/onioncat.in @@ -11,7 +11,7 @@ . /etc/rc.subr name="onioncat" -rcvar=${name}_enable +rcvar=onioncat_enable load_rc_config ${name} diff --git a/net/openafs/files/afsd.in b/net/openafs/files/afsd.in index efb6735..e9d6b69 100644 --- a/net/openafs/files/afsd.in +++ b/net/openafs/files/afsd.in @@ -28,7 +28,7 @@ . /etc/rc.subr name="afsd" -rcvar="afsd_enable" +rcvar=afsd_enable command="%%PREFIX%%/sbin/${name}" command_args="-dynroot -fakestat-all -afsdb -memcache" diff --git a/net/openbgpd/files/openbgpd.sh.in b/net/openbgpd/files/openbgpd.sh.in index c6ee464..a2d3d7e 100644 --- a/net/openbgpd/files/openbgpd.sh.in +++ b/net/openbgpd/files/openbgpd.sh.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="openbgpd" -rcvar=`set_rcvar` +rcvar=openbgpd_enable extra_commands="reload" command="%%PREFIX%%/sbin/bgpd" diff --git a/net/openldap23-server/files/slapd.sh.in b/net/openldap23-server/files/slapd.sh.in index fe13fe0..5ccee7a 100644 --- a/net/openldap23-server/files/slapd.sh.in +++ b/net/openldap23-server/files/slapd.sh.in @@ -27,7 +27,7 @@ . /etc/rc.subr name="slapd" -rcvar=`set_rcvar` +rcvar=slapd_enable command="%%PREFIX%%/libexec/slapd" pidfile="%%LDAP_RUN_DIR%%/slapd.pid" diff --git a/net/openldap23-server/files/slurpd.sh.in b/net/openldap23-server/files/slurpd.sh.in index d9f1adb..087ac22 100644 --- a/net/openldap23-server/files/slurpd.sh.in +++ b/net/openldap23-server/files/slurpd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="slurpd" -rcvar=`set_rcvar` +rcvar=slurpd_enable command="%%PREFIX%%/libexec/slurpd" required_files="%%PREFIX%%/etc/openldap/slapd.conf" diff --git a/net/openldap24-server/files/slapd.sh.in b/net/openldap24-server/files/slapd.sh.in index 596a5e1..c04384a 100644 --- a/net/openldap24-server/files/slapd.sh.in +++ b/net/openldap24-server/files/slapd.sh.in @@ -37,7 +37,7 @@ . /etc/rc.subr name="slapd" -rcvar=`set_rcvar` +rcvar=slapd_enable # read settings, set defaults load_rc_config ${name} diff --git a/net/openmq/files/imq.in b/net/openmq/files/imq.in index b7e82f8..3036f9b 100644 --- a/net/openmq/files/imq.in +++ b/net/openmq/files/imq.in @@ -40,17 +40,18 @@ # imq_brokerlist="hostname1:7676,hostname2:7676" # imq_memory="256m" -name="imq" . /etc/rc.subr -# set defaults +name="imq" +rcvar=imq_enable + +load_rc_config $name + imq_enable=${imq_enable:-"NO"} imq_data=${imq_data:-"/var/spool/imq"} imq_vmargs=${imq_vmargs:-"-Xms150m -Xss128k -Xbatch -XX:MaxGCPauseMillis=5000"} imq_memory=${imq_memory:-"256m"} -rcvar=`set_rcvar` -load_rc_config $name pidfile=/var/run/imq.pid start_cmd="${name}_start" start_precmd="${name}_build_cmdline" diff --git a/net/openntpd/files/openntpd.in b/net/openntpd/files/openntpd.in index 9efbda6..4c153aa 100644 --- a/net/openntpd/files/openntpd.in +++ b/net/openntpd/files/openntpd.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=openntpd -rcvar=`set_rcvar` +rcvar=openntpd_enable command=%%PREFIX%%/sbin/ntpd required_files=%%PREFIX%%/etc/ntpd.conf diff --git a/net/openospfd/files/openospfd.sh.in b/net/openospfd/files/openospfd.sh.in index 94db2c7..723e18d 100644 --- a/net/openospfd/files/openospfd.sh.in +++ b/net/openospfd/files/openospfd.sh.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="openospfd" -rcvar=`set_rcvar` +rcvar=openospfd_enable extra_commands="reload" command="%%PREFIX%%/sbin/ospfd" diff --git a/net/openradius/files/openradius.in b/net/openradius/files/openradius.in index fb0698b..a9559d5 100644 --- a/net/openradius/files/openradius.in +++ b/net/openradius/files/openradius.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="openradius" -rcvar=`set_rcvar` +rcvar=openradius_enable load_rc_config ${name} diff --git a/net/openslp/files/slpd.in b/net/openslp/files/slpd.in index 3cf5c3d2..e18f24e 100644 --- a/net/openslp/files/slpd.in +++ b/net/openslp/files/slpd.in @@ -17,7 +17,7 @@ slpd_flags=${slpd_flags-"-p /var/run/slpd.pid"} . /etc/rc.subr name=slpd -rcvar=`set_rcvar` +rcvar=slpd_enable command=%%PREFIX%%/sbin/slpd pidfile="/var/run/${name}.pid" diff --git a/net/opentracker/files/opentracker.in b/net/opentracker/files/opentracker.in index 5c1d83f..dd3381f 100644 --- a/net/opentracker/files/opentracker.in +++ b/net/opentracker/files/opentracker.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="opentracker" -rcvar=`set_rcvar` +rcvar=opentracker_enable load_rc_config $name diff --git a/net/openvswitch/files/ovs-vswitchd.in b/net/openvswitch/files/ovs-vswitchd.in index 0bd510a..0ef893f 100644 --- a/net/openvswitch/files/ovs-vswitchd.in +++ b/net/openvswitch/files/ovs-vswitchd.in @@ -9,7 +9,7 @@ . /etc/rc.subr name="ovs_vswitchd" -rcvar=${name}_enable +rcvar=ovs_vswitchd_enable command="%%PREFIX%%/sbin/ovs-vswitchd" pidfile="%%PREFIX%%/var/run/ovs-vswitchd.pid" diff --git a/net/openvswitch/files/ovsdb-server.in b/net/openvswitch/files/ovsdb-server.in index 2701f85..4191a93 100644 --- a/net/openvswitch/files/ovsdb-server.in +++ b/net/openvswitch/files/ovsdb-server.in @@ -9,7 +9,7 @@ . /etc/rc.subr name="ovsdb_server" -rcvar=${name}_enable +rcvar=ovsdb_server_enable command="%%PREFIX%%/sbin/ovsdb-server" pidfile="%%PREFIX%%/var/run/ovsdb-server.pid" diff --git a/net/pen/files/pen.sh.in b/net/pen/files/pen.sh.in index 49c0073..6f49866 100644 --- a/net/pen/files/pen.sh.in +++ b/net/pen/files/pen.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=pen -rcvar=`set_rcvar` +rcvar=pen_enable command=%%PREFIX%%/bin/pen diff --git a/net/pfflowd/files/pfflowd.in b/net/pfflowd/files/pfflowd.in index c706ae1..0291ad1 100644 --- a/net/pfflowd/files/pfflowd.in +++ b/net/pfflowd/files/pfflowd.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=pfflowd -rcvar=`set_rcvar` +rcvar=pfflowd_enable load_rc_config $name diff --git a/net/poptop/files/pptpd.sh.in b/net/poptop/files/pptpd.sh.in index 99fb436..375b5f6 100644 --- a/net/poptop/files/pptpd.sh.in +++ b/net/poptop/files/pptpd.sh.in @@ -15,7 +15,7 @@ pptpd_enable=${pptpd_enable-"NO"} . /etc/rc.subr name=pptpd -rcvar=`set_rcvar` +rcvar=pptpd_enable command=%%PREFIX%%/sbin/${name} pidfile=/var/run/${name}.pid diff --git a/net/ptpd/files/ptpd.in b/net/ptpd/files/ptpd.in index 5cb1cba..9def768 100644 --- a/net/ptpd/files/ptpd.in +++ b/net/ptpd/files/ptpd.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="ptpd" -rcvar=`set_rcvar` +rcvar=ptpd_enable command="%%PREFIX%%/sbin/${name}" diff --git a/net/ptpd2/files/ptpd2.in b/net/ptpd2/files/ptpd2.in index 595ec35..24223e8 100644 --- a/net/ptpd2/files/ptpd2.in +++ b/net/ptpd2/files/ptpd2.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="ptpd2" -rcvar=`set_rcvar` +rcvar=ptpd2_enable command="%%PREFIX%%/sbin/${name}" diff --git a/net/pxe/files/pxe.sh.in b/net/pxe/files/pxe.sh.in index db977e5..133e3ea 100644 --- a/net/pxe/files/pxe.sh.in +++ b/net/pxe/files/pxe.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name=pxe -rcvar=`set_rcvar` +rcvar=pxe_enable command="%%PREFIX%%/sbin/pxe" required_files=%%PREFIX%%/etc/pxe.conf diff --git a/net/qadsl/files/qadsl.sh.in b/net/qadsl/files/qadsl.sh.in index 3b9643a3..e944425 100644 --- a/net/qadsl/files/qadsl.sh.in +++ b/net/qadsl/files/qadsl.sh.in @@ -25,7 +25,7 @@ qadsl_pidfile=${qadsl_pidfile-"/var/run/qadsl.pid"} . /etc/rc.subr name="qadsl" -rcvar=`set_rcvar` +rcvar=qadsl_enable command=%%PREFIX%%/sbin/qadsl load_rc_config $name diff --git a/net/quagga-re/files/quagga.sh.in b/net/quagga-re/files/quagga.sh.in index ceb71b6..92c4d41 100644 --- a/net/quagga-re/files/quagga.sh.in +++ b/net/quagga-re/files/quagga.sh.in @@ -28,7 +28,7 @@ . /etc/rc.subr name="quagga" -rcvar=`set_rcvar` +rcvar=quagga_enable start_postcmd=start_postcmd stop_postcmd=stop_postcmd diff --git a/net/quagga-re/files/watchquagga.sh.in b/net/quagga-re/files/watchquagga.sh.in index cb0d1bf..1b7870f 100644 --- a/net/quagga-re/files/watchquagga.sh.in +++ b/net/quagga-re/files/watchquagga.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="watchquagga" -rcvar=`set_rcvar` +rcvar=watchquagga_enable stop_postcmd=stop_postcmd diff --git a/net/quagga/files/quagga.sh.in b/net/quagga/files/quagga.sh.in index ceb71b6..92c4d41 100644 --- a/net/quagga/files/quagga.sh.in +++ b/net/quagga/files/quagga.sh.in @@ -28,7 +28,7 @@ . /etc/rc.subr name="quagga" -rcvar=`set_rcvar` +rcvar=quagga_enable start_postcmd=start_postcmd stop_postcmd=stop_postcmd diff --git a/net/quagga/files/watchquagga.sh.in b/net/quagga/files/watchquagga.sh.in index cb0d1bf..1b7870f 100644 --- a/net/quagga/files/watchquagga.sh.in +++ b/net/quagga/files/watchquagga.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="watchquagga" -rcvar=`set_rcvar` +rcvar=watchquagga_enable stop_postcmd=stop_postcmd diff --git a/net/quoted/files/quoted.in b/net/quoted/files/quoted.in index 569170fa..140d712 100644 --- a/net/quoted/files/quoted.in +++ b/net/quoted/files/quoted.in @@ -14,7 +14,7 @@ user="nobody" . /etc/rc.subr name="quoted" -rcvar=`set_rcvar` +rcvar=quoted_enable command="%%PREFIX%%/bin/${name}" command_args="-d -p:17" command_plus_args="${command} ${command_args}" diff --git a/net/rabbitmq/files/rabbitmq.in b/net/rabbitmq/files/rabbitmq.in index 2ae33c8..a24dd82 100644 --- a/net/rabbitmq/files/rabbitmq.in +++ b/net/rabbitmq/files/rabbitmq.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=rabbitmq -rcvar=`set_rcvar` +rcvar=rabbitmq_enable load_rc_config $name diff --git a/net/radiusd-cistron/files/radiusd-cistron.in b/net/radiusd-cistron/files/radiusd-cistron.in index f597e40..bc1582c 100644 --- a/net/radiusd-cistron/files/radiusd-cistron.in +++ b/net/radiusd-cistron/files/radiusd-cistron.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="radiusd" -rcvar=${name}_enable +rcvar=radiusd_enable command=%%PREFIX%%/sbin/${name} pidfile=/var/run/${name}.pid diff --git a/net/radiusd-cistron/files/radrelay-cistron.in b/net/radiusd-cistron/files/radrelay-cistron.in index 5a4faa5..d769720 100644 --- a/net/radiusd-cistron/files/radrelay-cistron.in +++ b/net/radiusd-cistron/files/radrelay-cistron.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="radrelay" -rcvar=${name}_enable +rcvar=radrelay_enable command=%%PREFIX%%/sbin/${name} pidfile=/var/run/${name}.pid diff --git a/net/radsecproxy/files/radsecproxy.in b/net/radsecproxy/files/radsecproxy.in index 26a347f..6d46748 100644 --- a/net/radsecproxy/files/radsecproxy.in +++ b/net/radsecproxy/files/radsecproxy.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="radsecproxy" -rcvar=`set_rcvar` +rcvar=radsecproxy_enable : ${radsecproxy_enable:="NO"} : ${radsecproxy_user:="nobody"} diff --git a/net/radvd/files/radvd.in b/net/radvd/files/radvd.in index 33cf3b5..7b62614 100644 --- a/net/radvd/files/radvd.in +++ b/net/radvd/files/radvd.in @@ -12,7 +12,7 @@ . /etc/rc.subr name=radvd -rcvar=`set_rcvar` +rcvar=radvd_enable pidfile=/var/run/${name}.pid command="%%PREFIX%%/sbin/${name}" diff --git a/net/redir/files/redir.in b/net/redir/files/redir.in index 240a317..affe996 100644 --- a/net/redir/files/redir.in +++ b/net/redir/files/redir.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="redir" -rcvar=${name}_enable +rcvar=redir_enable load_rc_config $name diff --git a/net/relayd/files/relayd.in b/net/relayd/files/relayd.in index a328b88..3fe6baa 100644 --- a/net/relayd/files/relayd.in +++ b/net/relayd/files/relayd.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=relayd -rcvar=${name}_enable +rcvar=relayd_enable load_rc_config $name diff --git a/net/repeater/files/repeater.in b/net/repeater/files/repeater.in index cbd21a7..2252fa9 100644 --- a/net/repeater/files/repeater.in +++ b/net/repeater/files/repeater.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=repeater -rcvar=`set_rcvar` +rcvar=repeater_enable load_rc_config $name diff --git a/net/rinetd/files/rinetd.sh.in b/net/rinetd/files/rinetd.sh.in index 41c4164..fdb1cc8 100644 --- a/net/rinetd/files/rinetd.sh.in +++ b/net/rinetd/files/rinetd.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="rinetd" -rcvar=`set_rcvar` +rcvar=rinetd_enable load_rc_config $name diff --git a/net/ris/files/binlsrv.sh.in b/net/ris/files/binlsrv.sh.in index ed8eaf3..5a36fb4 100644 --- a/net/ris/files/binlsrv.sh.in +++ b/net/ris/files/binlsrv.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="binlsrv" -rcvar=`set_rcvar` +rcvar=binlsrv_enable load_rc_config "${name}" diff --git a/net/rsmb/files/rsmbd.in b/net/rsmb/files/rsmbd.in index ed8c231..2fb12ea9 100644 --- a/net/rsmb/files/rsmbd.in +++ b/net/rsmb/files/rsmbd.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="rsmbd" -rcvar=`set_rcvar` +rcvar=rsmbd_enable eval "${name}_installdir=\${${name}_installdir:-'%%PREFIX%%/libexec/rsmb'}" eval "command=\${${name}_installdir}/broker" diff --git a/net/rsync/files/rsyncd.sh.in b/net/rsync/files/rsyncd.sh.in index 6f726b4..395189e 100644 --- a/net/rsync/files/rsyncd.sh.in +++ b/net/rsync/files/rsyncd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="%%NAME%%" -rcvar=`set_rcvar` +rcvar=%%NAME%%_enable command="%%PREFIX%%/bin/rsync" command_args="--daemon" diff --git a/net/rtg/files/rtgpoll.in b/net/rtg/files/rtgpoll.in index 555b9cb..02ee3ed 100644 --- a/net/rtg/files/rtgpoll.in +++ b/net/rtg/files/rtgpoll.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="rtgpoll" -rcvar=${name}_enable +rcvar=rtgpoll_enable command=%%PREFIX%%/bin/${name} diff --git a/net/rwhoisd/files/rwhoisd.in b/net/rwhoisd/files/rwhoisd.in index 61a5411..f2c940fc 100644 --- a/net/rwhoisd/files/rwhoisd.in +++ b/net/rwhoisd/files/rwhoisd.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="rwhoisd" -rcvar=${name}_enable +rcvar=rwhoisd_enable command=%%PREFIX%%/sbin/${name} pidfile=${rwhoisd_pidfile} diff --git a/net/samba34/files/samba.in b/net/samba34/files/samba.in index 58f8fbb..77ad2ff 100644 --- a/net/samba34/files/samba.in +++ b/net/samba34/files/samba.in @@ -27,10 +27,10 @@ . /etc/rc.subr name="samba" -rcvar=$(set_rcvar) -set_rcvar ${rcvar} "NO" "Samba service" > /dev/null +rcvar=samba_enable + # Defaults -eval ${rcvar}=\${${rcvar}:=NO} +samba_enable=${samba_enable:=NO} samba_config_default="%%SAMBA_CONFDIR%%/%%SAMBA_CONFIG%%" samba_config=${samba_config="${samba_config_default}"} command_args=${samba_config:+-s "${samba_config}"} @@ -54,17 +54,17 @@ fi # XXX: Hack to enable check of the dependent variables eval real_${rcvar}="\${${rcvar}:=NO}" ${rcvar}=YES # nmbd +rcvar=nmbd_enable nmbd_enable=${nmbd_enable:=NO} nmbd_flags=${nmbd_flags="-D"} -set_rcvar nmbd_enable "NO" "nmb daemon" >/dev/null # smbd +rcvar=smbd_enable smbd_enable=${smbd_enable:=NO} smbd_flags=${smbd_flags="-D"} -set_rcvar smbd_enable "NO" "smb daemon" >/dev/null %%WINBIND%%# winbindd +%%WINBIND%%rcvar=winbindd_enable %%WINBIND%%winbindd_enable=${winbindd_enable:=NO} %%WINBIND%%winbindd_flags=${winbindd_flags=''} -%%WINBIND%%set_rcvar winbindd_enable "NO" "winbind daemon" >/dev/null # Custom commands extra_commands="reload status" start_precmd="samba_start_precmd" @@ -109,7 +109,7 @@ samba_start_precmd() { samba_rcvar_cmd() { local rcvar - rcvar=$(set_rcvar ${name}) + rcvar=${name}_enable eval ${rcvar}=\${real_${rcvar}} # Prevent recursive calling unset "${rc_arg}_cmd" "${rc_arg}_precmd" "${rc_arg}_postcmd" @@ -123,7 +123,7 @@ samba_reload_cmd() { unset "${rc_arg}_cmd" "${rc_arg}_precmd" "${rc_arg}_postcmd" # Apply to all daemons for name in ${samba_daemons}; do - rcvar=$(set_rcvar ${name}) + rcvar=${name}_enable command="%%PREFIX%%/sbin/${name}" pidfile="%%SAMBA_RUNDIR%%/${name}${pid_extra}.pid" # Daemon should be enabled and running @@ -150,7 +150,7 @@ samba_cmd() { result=0 # Apply to all daemons for name in ${samba_daemons}; do - rcvar=$(set_rcvar ${name}) + rcvar=${name}_enable # XXX rcvars=''; v='' command="%%PREFIX%%/sbin/${name}" diff --git a/net/samba35/files/samba.in b/net/samba35/files/samba.in index 58f8fbb..77ad2ff 100644 --- a/net/samba35/files/samba.in +++ b/net/samba35/files/samba.in @@ -27,10 +27,10 @@ . /etc/rc.subr name="samba" -rcvar=$(set_rcvar) -set_rcvar ${rcvar} "NO" "Samba service" > /dev/null +rcvar=samba_enable + # Defaults -eval ${rcvar}=\${${rcvar}:=NO} +samba_enable=${samba_enable:=NO} samba_config_default="%%SAMBA_CONFDIR%%/%%SAMBA_CONFIG%%" samba_config=${samba_config="${samba_config_default}"} command_args=${samba_config:+-s "${samba_config}"} @@ -54,17 +54,17 @@ fi # XXX: Hack to enable check of the dependent variables eval real_${rcvar}="\${${rcvar}:=NO}" ${rcvar}=YES # nmbd +rcvar=nmbd_enable nmbd_enable=${nmbd_enable:=NO} nmbd_flags=${nmbd_flags="-D"} -set_rcvar nmbd_enable "NO" "nmb daemon" >/dev/null # smbd +rcvar=smbd_enable smbd_enable=${smbd_enable:=NO} smbd_flags=${smbd_flags="-D"} -set_rcvar smbd_enable "NO" "smb daemon" >/dev/null %%WINBIND%%# winbindd +%%WINBIND%%rcvar=winbindd_enable %%WINBIND%%winbindd_enable=${winbindd_enable:=NO} %%WINBIND%%winbindd_flags=${winbindd_flags=''} -%%WINBIND%%set_rcvar winbindd_enable "NO" "winbind daemon" >/dev/null # Custom commands extra_commands="reload status" start_precmd="samba_start_precmd" @@ -109,7 +109,7 @@ samba_start_precmd() { samba_rcvar_cmd() { local rcvar - rcvar=$(set_rcvar ${name}) + rcvar=${name}_enable eval ${rcvar}=\${real_${rcvar}} # Prevent recursive calling unset "${rc_arg}_cmd" "${rc_arg}_precmd" "${rc_arg}_postcmd" @@ -123,7 +123,7 @@ samba_reload_cmd() { unset "${rc_arg}_cmd" "${rc_arg}_precmd" "${rc_arg}_postcmd" # Apply to all daemons for name in ${samba_daemons}; do - rcvar=$(set_rcvar ${name}) + rcvar=${name}_enable command="%%PREFIX%%/sbin/${name}" pidfile="%%SAMBA_RUNDIR%%/${name}${pid_extra}.pid" # Daemon should be enabled and running @@ -150,7 +150,7 @@ samba_cmd() { result=0 # Apply to all daemons for name in ${samba_daemons}; do - rcvar=$(set_rcvar ${name}) + rcvar=${name}_enable # XXX rcvars=''; v='' command="%%PREFIX%%/sbin/${name}" diff --git a/net/samba36/files/samba.in b/net/samba36/files/samba.in index 58f8fbb..77ad2ff 100644 --- a/net/samba36/files/samba.in +++ b/net/samba36/files/samba.in @@ -27,10 +27,10 @@ . /etc/rc.subr name="samba" -rcvar=$(set_rcvar) -set_rcvar ${rcvar} "NO" "Samba service" > /dev/null +rcvar=samba_enable + # Defaults -eval ${rcvar}=\${${rcvar}:=NO} +samba_enable=${samba_enable:=NO} samba_config_default="%%SAMBA_CONFDIR%%/%%SAMBA_CONFIG%%" samba_config=${samba_config="${samba_config_default}"} command_args=${samba_config:+-s "${samba_config}"} @@ -54,17 +54,17 @@ fi # XXX: Hack to enable check of the dependent variables eval real_${rcvar}="\${${rcvar}:=NO}" ${rcvar}=YES # nmbd +rcvar=nmbd_enable nmbd_enable=${nmbd_enable:=NO} nmbd_flags=${nmbd_flags="-D"} -set_rcvar nmbd_enable "NO" "nmb daemon" >/dev/null # smbd +rcvar=smbd_enable smbd_enable=${smbd_enable:=NO} smbd_flags=${smbd_flags="-D"} -set_rcvar smbd_enable "NO" "smb daemon" >/dev/null %%WINBIND%%# winbindd +%%WINBIND%%rcvar=winbindd_enable %%WINBIND%%winbindd_enable=${winbindd_enable:=NO} %%WINBIND%%winbindd_flags=${winbindd_flags=''} -%%WINBIND%%set_rcvar winbindd_enable "NO" "winbind daemon" >/dev/null # Custom commands extra_commands="reload status" start_precmd="samba_start_precmd" @@ -109,7 +109,7 @@ samba_start_precmd() { samba_rcvar_cmd() { local rcvar - rcvar=$(set_rcvar ${name}) + rcvar=${name}_enable eval ${rcvar}=\${real_${rcvar}} # Prevent recursive calling unset "${rc_arg}_cmd" "${rc_arg}_precmd" "${rc_arg}_postcmd" @@ -123,7 +123,7 @@ samba_reload_cmd() { unset "${rc_arg}_cmd" "${rc_arg}_precmd" "${rc_arg}_postcmd" # Apply to all daemons for name in ${samba_daemons}; do - rcvar=$(set_rcvar ${name}) + rcvar=${name}_enable command="%%PREFIX%%/sbin/${name}" pidfile="%%SAMBA_RUNDIR%%/${name}${pid_extra}.pid" # Daemon should be enabled and running @@ -150,7 +150,7 @@ samba_cmd() { result=0 # Apply to all daemons for name in ${samba_daemons}; do - rcvar=$(set_rcvar ${name}) + rcvar=${name}_enable # XXX rcvars=''; v='' command="%%PREFIX%%/sbin/${name}" diff --git a/net/samba4-devel/files/samba4.in b/net/samba4-devel/files/samba4.in index 5d7d746..33a67a5 100644 --- a/net/samba4-devel/files/samba4.in +++ b/net/samba4-devel/files/samba4.in @@ -20,7 +20,7 @@ . /etc/rc.subr name="samba4" -rcvar=$(set_rcvar) +rcvar=samba4_enable load_rc_config "${name}" diff --git a/net/samba4wins/files/smbd4wins.in b/net/samba4wins/files/smbd4wins.in index 7c34062..68d813c 100644 --- a/net/samba4wins/files/smbd4wins.in +++ b/net/samba4wins/files/smbd4wins.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="smbd4wins" -rcvar=`set_rcvar` +rcvar=smbd4wins_enable command="%%PREFIX%%/sbin/${name}" pidfile="%%S4W_RUNDIR%%/${name}.pid" diff --git a/net/scribe/files/scribe.in b/net/scribe/files/scribe.in index 696d9f6..0670488 100644 --- a/net/scribe/files/scribe.in +++ b/net/scribe/files/scribe.in @@ -10,7 +10,7 @@ . /etc/rc.subr name="scribe" -rcvar=`set_rcvar` +rcvar=scribe_enable pidfile="/var/run/${name}.pid" command="%%PREFIX%%/bin/scribed" diff --git a/net/sendfile/files/sendfiled.in b/net/sendfile/files/sendfiled.in index 2218a41..d44fd69 100644 --- a/net/sendfile/files/sendfiled.in +++ b/net/sendfile/files/sendfiled.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="sendfiled" -rcvar=`set_rcvar` +rcvar=sendfiled_enable command="%%PREFIX%%/sbin/sendfiled" command_args="-Q" diff --git a/net/ser/files/ser.in b/net/ser/files/ser.in index 6d0b429..4c2471e 100644 --- a/net/ser/files/ser.in +++ b/net/ser/files/ser.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="ser" -rcvar=`set_rcvar` +rcvar=ser_enable command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/${name}.pid" command_args="-P ${pidfile} > /dev/null" diff --git a/net/serviio/files/serviio.in b/net/serviio/files/serviio.in index 8418d5d..1581092 100644 --- a/net/serviio/files/serviio.in +++ b/net/serviio/files/serviio.in @@ -13,7 +13,7 @@ . /etc/rc.subr name=serviio -rcvar=`set_rcvar` +rcvar=serviio_enable command=%%PREFIX%%/sbin/serviiod load_rc_config $name diff --git a/net/sflowtool/files/sflowtool.in b/net/sflowtool/files/sflowtool.in index 5eb1dcb..6b89a44 100644 --- a/net/sflowtool/files/sflowtool.in +++ b/net/sflowtool/files/sflowtool.in @@ -10,7 +10,7 @@ . /etc/rc.subr name="sflowtool" -rcvar=`set_rcvar` +rcvar=sflowtool_enable command="%%PREFIX%%/bin/sflowtool" load_rc_config $name diff --git a/net/silc-server/files/silcd.in b/net/silc-server/files/silcd.in index 2af1718..1e9caa3 100644 --- a/net/silc-server/files/silcd.in +++ b/net/silc-server/files/silcd.in @@ -15,7 +15,7 @@ silcd_enable=${silcd_enable-"NO"} . /etc/rc.subr name=silcd -rcvar=`set_rcvar` +rcvar=silcd_enable command=%%PREFIX%%/sbin/${name} pidfile=/var/run/${name}.pid diff --git a/net/siproxd/files/siproxd.sh.in b/net/siproxd/files/siproxd.sh.in index a0b635d..c3f0cd3 100644 --- a/net/siproxd/files/siproxd.sh.in +++ b/net/siproxd/files/siproxd.sh.in @@ -20,7 +20,7 @@ siproxd_enable=${siproxd_enable:-"NO"} # Enable siproxd . /etc/rc.subr name="siproxd" -rcvar=`set_rcvar` +rcvar=siproxd_enable command="%%PREFIX%%/sbin/${name}" load_rc_config $name diff --git a/net/sixxs-aiccu/files/sixxs-aiccu.in b/net/sixxs-aiccu/files/sixxs-aiccu.in index 95e9ef8..8b955e4 100644 --- a/net/sixxs-aiccu/files/sixxs-aiccu.in +++ b/net/sixxs-aiccu/files/sixxs-aiccu.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="sixxs_aiccu" -rcvar=`set_rcvar` +rcvar=sixxs_aiccu_enable command="%%PREFIX%%/sbin/sixxs-aiccu" diff --git a/net/socat/files/socat.in b/net/socat/files/socat.in index 8802784..acdbad9 100644 --- a/net/socat/files/socat.in +++ b/net/socat/files/socat.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="socat" -rcvar=${name}_enable +rcvar=socat_enable command=%%PREFIX%%/bin/${name} command_args="&" diff --git a/net/socks5/files/socks5.sh.in b/net/socks5/files/socks5.sh.in index 6a7db4ab..5f3226d 100644 --- a/net/socks5/files/socks5.sh.in +++ b/net/socks5/files/socks5.sh.in @@ -14,7 +14,7 @@ socks5_enable=${socks5_enable-"NO"} . /etc/rc.subr name=socks5 -rcvar=`set_rcvar` +rcvar=socks5_enable pidfile="/var/run/$name.pid-1080" command=%%PREFIX%%/bin/socks5 diff --git a/net/splatd/files/splatd.sh.in b/net/splatd/files/splatd.sh.in index 9431b32..cad9fd0 100644 --- a/net/splatd/files/splatd.sh.in +++ b/net/splatd/files/splatd.sh.in @@ -11,7 +11,7 @@ . /etc/rc.subr name=splatd -rcvar=`set_rcvar` +rcvar=splatd_enable command=%%PREFIX%%/sbin/splatd command_interpreter="%%PYTHON_CMD%%" diff --git a/net/spread/files/spread.sh.in b/net/spread/files/spread.sh.in index 11663d4..f685ae3 100644 --- a/net/spread/files/spread.sh.in +++ b/net/spread/files/spread.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=spread -rcvar=`set_rcvar` +rcvar=spread_enable command="%%PREFIX%%/sbin/spread" diff --git a/net/spread4/files/spread.sh.in b/net/spread4/files/spread.sh.in index 4e010a6..6e5b76f 100644 --- a/net/spread4/files/spread.sh.in +++ b/net/spread4/files/spread.sh.in @@ -18,7 +18,7 @@ . /etc/rc.subr name=spread -rcvar=`set_rcvar` +rcvar=spread_enable command="%%PREFIX%%/sbin/spread" diff --git a/net/ss5/files/ss5.in b/net/ss5/files/ss5.in index 6a79ed2..9d1eb9b 100644 --- a/net/ss5/files/ss5.in +++ b/net/ss5/files/ss5.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="ss5" -rcvar=${name}_enable +rcvar=ss5_enable pidfile="/var/run/ss5/ss5.pid" command=%%PREFIX%%/sbin/${name} diff --git a/net/sslh/files/sslh.in b/net/sslh/files/sslh.in index 6ed1088..e56973f 100644 --- a/net/sslh/files/sslh.in +++ b/net/sslh/files/sslh.in @@ -38,7 +38,7 @@ sslh_setfib() { . /etc/rc.subr name="sslh" -rcvar=`set_rcvar` +rcvar=sslh_enable command="%%PREFIX%%/sbin/${name}" start_precmd="sslh_setfib" diff --git a/net/stone/files/stone.sh.in b/net/stone/files/stone.sh.in index 68682a9..9910a55 100644 --- a/net/stone/files/stone.sh.in +++ b/net/stone/files/stone.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="stone" -rcvar=`set_rcvar` +rcvar=stone_enable command="%%PREFIX%%/bin/stone" start_precmd="stone_precmd" diff --git a/net/stund/files/stund.sh.in b/net/stund/files/stund.sh.in index 759cba3..56da993 100644 --- a/net/stund/files/stund.sh.in +++ b/net/stund/files/stund.sh.in @@ -16,7 +16,7 @@ name="stund" command="%%PREFIX%%/sbin/stund" -rcvar=`set_rcvar` +rcvar=stund_enable extra_commands="status" pidfile="$stund_pidfile" diff --git a/net/tac_plus-libradius/files/tac_plus.in b/net/tac_plus-libradius/files/tac_plus.in index 16effd0..9001382 100644 --- a/net/tac_plus-libradius/files/tac_plus.in +++ b/net/tac_plus-libradius/files/tac_plus.in @@ -20,7 +20,7 @@ . /etc/rc.subr name="tac_plus" -rcvar=`set_rcvar` +rcvar=tac_plus_enable command=%%PREFIX%%/sbin/tac_plus pidfile=/var/run/tac_plus.pid diff --git a/net/tac_plus4/files/tac_plus.in b/net/tac_plus4/files/tac_plus.in index 102fad6..1787924 100644 --- a/net/tac_plus4/files/tac_plus.in +++ b/net/tac_plus4/files/tac_plus.in @@ -21,7 +21,7 @@ . /etc/rc.subr name=tac_plus -rcvar=`set_rcvar` +rcvar=tac_plus_enable command="%%PREFIX%%/bin/tac_plus" pidfile="/var/run/${name}.pid" diff --git a/net/tcpproxy/files/tcpproxy.in b/net/tcpproxy/files/tcpproxy.in index 567cda1..04f9b68 100644 --- a/net/tcpproxy/files/tcpproxy.in +++ b/net/tcpproxy/files/tcpproxy.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="tcpproxy" -rcvar=${name}_enable +rcvar=tcpproxy_enable command=%%PREFIX%%/bin/${name} pidfile=/var/run/${name}.pid diff --git a/net/throttled/files/throttled.in b/net/throttled/files/throttled.in index ab605bd..13d794b 100644 --- a/net/throttled/files/throttled.in +++ b/net/throttled/files/throttled.in @@ -8,7 +8,7 @@ . /etc/rc.subr name="throttled" -rcvar=`set_rcvar` +rcvar=throttled_enable start_precmd="throttled_precmd" command="%%PREFIX%%/sbin/throttled-startup" diff --git a/net/traff/files/traff.in b/net/traff/files/traff.in index 92075b7..715d3fe 100644 --- a/net/traff/files/traff.in +++ b/net/traff/files/traff.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=traff -rcvar=`set_rcvar` +rcvar=traff_enable command=%%PREFIX%%/sbin/traff diff --git a/net/ucarp/files/ucarp.in b/net/ucarp/files/ucarp.in index aaa5bd8..2b28dad 100644 --- a/net/ucarp/files/ucarp.in +++ b/net/ucarp/files/ucarp.in @@ -42,7 +42,7 @@ . /etc/rc.subr name="ucarp" -rcvar=`set_rcvar` +rcvar=ucarp_enable load_rc_config $name diff --git a/net/udpxy/files/udpxy.in b/net/udpxy/files/udpxy.in index 3fa2055..4dc3591 100644 --- a/net/udpxy/files/udpxy.in +++ b/net/udpxy/files/udpxy.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="udpxy" -rcvar=$(set_rcvar) +rcvar=udpxy_enable load_rc_config ${name} diff --git a/net/ushare/files/patch-ushare b/net/ushare/files/patch-ushare index 849a3f5..1967b2f 100644 --- a/net/ushare/files/patch-ushare +++ b/net/ushare/files/patch-ushare @@ -97,7 +97,7 @@ +. /etc/rc.subr + +name=ushare -+rcvar=`set_rcvar` ++rcvar=ushare_enable + +command="/usr/local/bin/$name" +command_args="--daemon" diff --git a/net/vncreflector/files/vncreflector.sh.in b/net/vncreflector/files/vncreflector.sh.in index b915790..7b27250 100644 --- a/net/vncreflector/files/vncreflector.sh.in +++ b/net/vncreflector/files/vncreflector.sh.in @@ -30,7 +30,7 @@ vncreflector_addr=${vncreflector_addr-""} . /etc/rc.subr name="vncreflector" -rcvar=`set_rcvar` +rcvar=vncreflector_enable start_cmd="vncreflector_start" stop_cmd="vncreflector_stop" command="%%PREFIX%%/bin/${name}" diff --git a/net/vserver/files/vserver.in b/net/vserver/files/vserver.in index 6b12b3b..e57d417 100644 --- a/net/vserver/files/vserver.in +++ b/net/vserver/files/vserver.in @@ -24,7 +24,7 @@ . /etc/rc.subr name=vserver -rcvar=`set_rcvar` +rcvar=vserver_enable command=%%PREFIX%%/sbin/vserver required_files=%%PREFIX%%/etc/vchat/user.db diff --git a/net/vtun/files/vtunclient.in b/net/vtun/files/vtunclient.in index a5dc348..69dd253 100644 --- a/net/vtun/files/vtunclient.in +++ b/net/vtun/files/vtunclient.in @@ -29,7 +29,7 @@ vtunclient_enable=${vtunclient_enable:-"NO"} . /etc/rc.subr name=vtunclient -rcvar=`set_rcvar` +rcvar=vtunclient_enable required_files="%%PREFIX%%/etc/vtund.conf" command=%%PREFIX%%/sbin/vtund diff --git a/net/vtun/files/vtund.in b/net/vtun/files/vtund.in index d90f7c9..c33947e 100644 --- a/net/vtun/files/vtund.in +++ b/net/vtun/files/vtund.in @@ -17,7 +17,7 @@ vtund_flags=${vtund_flags:-"-s"} . /etc/rc.subr name=vtund -rcvar=`set_rcvar` +rcvar=vtund_enable required_files="%%PREFIX%%/etc/vtund.conf" pidfile=/var/run/vtund.pid diff --git a/net/widentd/files/widentd.sh.in b/net/widentd/files/widentd.sh.in index d042c18..efc4baf 100644 --- a/net/widentd/files/widentd.sh.in +++ b/net/widentd/files/widentd.sh.in @@ -29,7 +29,7 @@ widentd_enable=${widentd_enable-"NO"} . /etc/rc.subr name="widentd" -rcvar=`set_rcvar` +rcvar=widentd_enable command="%%PREFIX%%/sbin/widentd" load_rc_config $name diff --git a/net/wired-tracker/files/trackerd.sh.in b/net/wired-tracker/files/trackerd.sh.in index 124775c..e7c83b8 100644 --- a/net/wired-tracker/files/trackerd.sh.in +++ b/net/wired-tracker/files/trackerd.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="trackerd" -rcvar=${name}_enable +rcvar=trackerd_enable pidfile=%%PREFIX%%/wired/trackerd.pid command=%%PREFIX%%/sbin/${name} diff --git a/net/wired/files/wired.sh.in b/net/wired/files/wired.sh.in index 9a0f629..a2ede80 100644 --- a/net/wired/files/wired.sh.in +++ b/net/wired/files/wired.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="wired" -rcvar=${name}_enable +rcvar=wired_enable pidfile=%%PREFIX%%/wired/wired.pid command=%%PREFIX%%/sbin/${name} diff --git a/net/wizd/files/wizd.sh.in b/net/wizd/files/wizd.sh.in index f08878e..4239fec 100644 --- a/net/wizd/files/wizd.sh.in +++ b/net/wizd/files/wizd.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="wizd" -rcvar=${name}_enable +rcvar=wizd_enable command="%%PREFIX%%/bin/$name" command_args="-d" diff --git a/net/wowzamediaserverpro/files/wowza.in b/net/wowzamediaserverpro/files/wowza.in index f48cda3..9d66af8 100644 --- a/net/wowzamediaserverpro/files/wowza.in +++ b/net/wowzamediaserverpro/files/wowza.in @@ -75,7 +75,7 @@ wowza_stderr_log="${wowza_stderr_log:-"%%STDERR_LOG%%"}" . /etc/rc.subr name="wowza" -rcvar=`set_rcvar` +rcvar=wowza_enable pidfile="/var/run/${name}.pid" procname="java" diff --git a/net/xboxproxy/files/xboxproxy.in b/net/xboxproxy/files/xboxproxy.in index d7b2cb7..e68859d 100644 --- a/net/xboxproxy/files/xboxproxy.in +++ b/net/xboxproxy/files/xboxproxy.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="xboxproxy" -rcvar="${name}_enable" +rcvar=xboxproxy_enable load_rc_config $name diff --git a/net/xorp-devel/files/xorp.in b/net/xorp-devel/files/xorp.in index 03b32a1..4158856 100644 --- a/net/xorp-devel/files/xorp.in +++ b/net/xorp-devel/files/xorp.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="xorp" -rcvar=`set_rcvar` +rcvar=xorp_enable load_rc_config $name diff --git a/net/xorp/files/xorp.in b/net/xorp/files/xorp.in index e2b89e2..8f037d3 100644 --- a/net/xorp/files/xorp.in +++ b/net/xorp/files/xorp.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="xorp" -rcvar=`set_rcvar` +rcvar=xorp_enable load_rc_config $name diff --git a/net/xrdp/files/xrdp.in b/net/xrdp/files/xrdp.in index 9b74e5f..83cd57e 100644 --- a/net/xrdp/files/xrdp.in +++ b/net/xrdp/files/xrdp.in @@ -9,7 +9,7 @@ . /etc/rc.subr name="xrdp" -rcvar=`set_rcvar` +rcvar=xrdp_enable xrdp_daemons="xrdp xrdpsesman" # Read settings and set default values. @@ -42,7 +42,7 @@ xrdp_cmd() { fi # Apply to all the daemons. for name in ${xrdp_daemons}; do - rcvar=$(set_rcvar) + rcvar=${name}_enable if [ "${name}" = "xrdpsesman" ]; then command="%%PREFIX%%/sbin/xrdp-sesman" pidfile="/var/run/xrdp-sesman.pid" diff --git a/net/yate-devel/files/yate.sh.in b/net/yate-devel/files/yate.sh.in index 0abacc7..b599b03 100644 --- a/net/yate-devel/files/yate.sh.in +++ b/net/yate-devel/files/yate.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=yate -rcvar=`set_rcvar` +rcvar=yate_enable command="%%PREFIX%%/sbin/yate" pidfile="/var/run/${name}.pid" diff --git a/net/yate/files/yate.sh.in b/net/yate/files/yate.sh.in index b006182..2d25b9a 100644 --- a/net/yate/files/yate.sh.in +++ b/net/yate/files/yate.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=yate -rcvar=`set_rcvar` +rcvar=yate_enable command="%%PREFIX%%/bin/yate" pidfile="/var/run/${name}.pid" diff --git a/news/inn/files/innd.sh.in b/news/inn/files/innd.sh.in index ef7b056..a860733 100644 --- a/news/inn/files/innd.sh.in +++ b/news/inn/files/innd.sh.in @@ -1,17 +1,17 @@ #!/bin/sh + +# $FreeBSD$ # # PROVIDE: innd # REQUIRE: DAEMON # KEYWORD: shutdown -# -# $FreeBSD$ -# . /etc/rc.subr name=innd +rcvar=innd_enable -PREFIX=%%PREFIX%% +load_rc_config ${name} innd_enable=${innd_enable-"NO"} innd_user=${innd_user-"news"} @@ -19,13 +19,9 @@ innd_group=${innd_group-"news"} required_files="%%DBDIR%%/history.dir" -load_rc_config ${name} - start_cmd=${name}_start stop_cmd=${name}_stop -rcvar=`set_rcvar` - command=%%NEWSBASE%%/bin/rc.news innd_start() { @@ -36,5 +32,4 @@ innd_stop() { su -fm ${innd_user} -c "${command} stop" } -load_rc_config ${name} run_rc_command "$1" diff --git a/news/newscache/files/newscache.sh.in b/news/newscache/files/newscache.sh.in index c31162d..57830d8 100644 --- a/news/newscache/files/newscache.sh.in +++ b/news/newscache/files/newscache.sh.in @@ -15,7 +15,7 @@ newscache_enable=${newscache_enable-"NO"} . /etc/rc.subr name=newscache -rcvar=`set_rcvar` +rcvar=newscache_enable command=%%PREFIX%%/sbin/${name} pidfile=/var/run/${name}.pid diff --git a/news/nntpcache/files/nntpcached.in b/news/nntpcache/files/nntpcached.in index 42bb50c..dbec9bc 100644 --- a/news/nntpcache/files/nntpcached.in +++ b/news/nntpcache/files/nntpcached.in @@ -13,7 +13,7 @@ . /etc/rc.subr name=nntpcached -rcvar=`set_rcvar` +rcvar=nntpcached_enable load_rc_config $name diff --git a/news/sabnzbdplus/files/sabnzbd.in b/news/sabnzbdplus/files/sabnzbd.in index 98e3731..5e8a401 100644 --- a/news/sabnzbdplus/files/sabnzbd.in +++ b/news/sabnzbdplus/files/sabnzbd.in @@ -23,7 +23,7 @@ . /etc/rc.subr name="sabnzbd" -rcvar=${name}_enable +rcvar=sabnzbd_enable load_rc_config ${name} diff --git a/ports-mgmt/pkg_jail/files/pkg_jail b/ports-mgmt/pkg_jail/files/pkg_jail index a4555e1..0365914 100644 --- a/ports-mgmt/pkg_jail/files/pkg_jail +++ b/ports-mgmt/pkg_jail/files/pkg_jail @@ -23,7 +23,7 @@ then fi # name="pkg_jail" -rcvar=`set_rcvar` +rcvar=pkg_jail_enable init_cmd="pkg_jail_init" start_cmd="pkg_jail_start" shell_cmd="pkg_jail_shell" diff --git a/print/acroreadwrapper/files/linux_adobe.sh.in b/print/acroreadwrapper/files/linux_adobe.sh.in index 8928a90..c25abc4 100644 --- a/print/acroreadwrapper/files/linux_adobe.sh.in +++ b/print/acroreadwrapper/files/linux_adobe.sh.in @@ -8,7 +8,7 @@ . /etc/rc.subr name="linux_adobe" -rcvar=`set_rcvar` +rcvar=linux_adobe_enable start_cmd="linux_adobe_start" stop_cmd="linux_adobe_stop" diff --git a/print/cups-base/files/cupsd.in b/print/cups-base/files/cupsd.in index ed277e4..81c2e8f 100644 --- a/print/cups-base/files/cupsd.in +++ b/print/cups-base/files/cupsd.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=cupsd -rcvar=`set_rcvar` +rcvar=cupsd_enable start_precmd=${name}_prestart diff --git a/print/pips800/files/ekpd.sh b/print/pips800/files/ekpd.sh index b5628ef..f7accd5 100644 --- a/print/pips800/files/ekpd.sh +++ b/print/pips800/files/ekpd.sh @@ -21,7 +21,7 @@ . /etc/rc.subr name="ekpd" -rcvar=`set_rcvar` +rcvar=ekpd_enable command="%%PREFIX%%/libexec/pips/printer/ekpd" start_precmd="ekpd_prestart" diff --git a/print/pips800/files/pips.sh b/print/pips800/files/pips.sh index 6c5ccca..8355ead 100644 --- a/print/pips800/files/pips.sh +++ b/print/pips800/files/pips.sh @@ -20,7 +20,7 @@ pips_enable=${pips_enable:-"YES"} # Enable pips . /etc/rc.subr name="pips" -rcvar=`set_rcvar` +rcvar=pips_enable start_cmd="/sbin/ldconfig -m %%PREFIX%%/lib/pips" stop_cmd=":" diff --git a/security/amavisd-milter/files/amavisd-milter.sh.in b/security/amavisd-milter/files/amavisd-milter.sh.in index 10b77a8..546220c 100644 --- a/security/amavisd-milter/files/amavisd-milter.sh.in +++ b/security/amavisd-milter/files/amavisd-milter.sh.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="amavisd_milter" -rcvar=`set_rcvar` +rcvar=amavisd_milter_enable load_rc_config $name diff --git a/security/amavisd-new/files/amavis-milter.sh.in b/security/amavisd-new/files/amavis-milter.sh.in index 3763d47..ec6136b 100644 --- a/security/amavisd-new/files/amavis-milter.sh.in +++ b/security/amavisd-new/files/amavis-milter.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=amavis_milter -rcvar=`set_rcvar` +rcvar=amavis_milter_enable command=%%PREFIX%%/sbin/amavis-milter required_files=%%PREFIX%%/etc/amavisd.conf diff --git a/security/amavisd-new/files/amavis-p0fanalyzer.sh.in b/security/amavisd-new/files/amavis-p0fanalyzer.sh.in index 4ab419f..d700971 100644 --- a/security/amavisd-new/files/amavis-p0fanalyzer.sh.in +++ b/security/amavisd-new/files/amavis-p0fanalyzer.sh.in @@ -15,7 +15,7 @@ amavis_p0fanalyzer_flags="${amavis_p0fanalyzer_flags-2345}" . /etc/rc.subr name="amavis_p0fanalyzer" -rcvar=`set_rcvar` +rcvar=amavis_p0fanalyzer_enable start_cmd=p0fanalyzer_start stop_cmd=p0fanalyzer_stop diff --git a/security/amavisd-new/files/amavisd-snmp.sh.in b/security/amavisd-new/files/amavisd-snmp.sh.in index 60a174d..0f724ae 100644 --- a/security/amavisd-new/files/amavisd-snmp.sh.in +++ b/security/amavisd-new/files/amavisd-snmp.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=amavisd_snmp -rcvar=`set_rcvar` +rcvar=amavisd_snmp_enable command="%%PREFIX%%/sbin/amavisd-snmp-subagent" command_interpreter="%%PERL%%" diff --git a/security/amavisd-new/files/amavisd.sh.in b/security/amavisd-new/files/amavisd.sh.in index c885608..593d269 100644 --- a/security/amavisd-new/files/amavisd.sh.in +++ b/security/amavisd-new/files/amavisd.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=amavisd -rcvar=`set_rcvar` +rcvar=amavisd_enable command=%%PREFIX%%/sbin/amavisd > /dev/null 2>&1 required_files=%%PREFIX%%/etc/amavisd.conf diff --git a/security/arpCounterattack/files/arpCounterattack.in b/security/arpCounterattack/files/arpCounterattack.in index 6594649..cb7fe9b 100644 --- a/security/arpCounterattack/files/arpCounterattack.in +++ b/security/arpCounterattack/files/arpCounterattack.in @@ -19,7 +19,7 @@ arpcounterattack_pidfile="/var/run/arpCounterattack.pid" . /etc/rc.subr name="arpcounterattack" -rcvar=`set_rcvar` +rcvar=arpcounterattack_enable command="%%PREFIX%%/sbin/arpCounterattack" load_rc_config $name diff --git a/security/barnyard2/files/barnyard2.sh.in b/security/barnyard2/files/barnyard2.sh.in index ecaa513..08a37f4 100644 --- a/security/barnyard2/files/barnyard2.sh.in +++ b/security/barnyard2/files/barnyard2.sh.in @@ -23,7 +23,7 @@ . /etc/rc.subr name="barnyard2" -rcvar=`set_rcvar` +rcvar=barnyard2_enable # set some defaults : ${barnyard2_enable="NO"} : ${barnyard2_conf="%%PREFIX%%/etc/barnyard2.conf"} diff --git a/security/blocksshd/files/blocksshd.in b/security/blocksshd/files/blocksshd.in index 45f7a1a..ec27ea9 100644 --- a/security/blocksshd/files/blocksshd.in +++ b/security/blocksshd/files/blocksshd.in @@ -9,7 +9,7 @@ . /etc/rc.subr name="blocksshd" -rcvar="`set_rcvar`" +rcvar=blocksshd_enable command="%%PREFIX%%/bin/${name}" command_interpreter="/usr/bin/perl" pidfile="/var/run/${name}.pid" diff --git a/security/bruteblock/files/bruteblockd.sh.in b/security/bruteblock/files/bruteblockd.sh.in index ab42438..51de2ea 100644 --- a/security/bruteblock/files/bruteblockd.sh.in +++ b/security/bruteblock/files/bruteblockd.sh.in @@ -7,7 +7,7 @@ . /etc/rc.subr name="bruteblockd" -rcvar=`set_rcvar` +rcvar=bruteblockd_enable load_rc_config $name diff --git a/security/clamav-devel/files/clamav-clamd.in b/security/clamav-devel/files/clamav-clamd.in index a8e79d4..e0fd695 100644 --- a/security/clamav-devel/files/clamav-clamd.in +++ b/security/clamav-devel/files/clamav-clamd.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=clamav_clamd -rcvar=`set_rcvar` +rcvar=clamav_clamd_enable command=%%PREFIX%%/sbin/clamd required_dirs=%%DBDIR%% diff --git a/security/clamav-devel/files/clamav-freshclam.in b/security/clamav-devel/files/clamav-freshclam.in index 86d7b8c..5d6a806 100644 --- a/security/clamav-devel/files/clamav-freshclam.in +++ b/security/clamav-devel/files/clamav-freshclam.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=clamav_freshclam -rcvar=`set_rcvar` +rcvar=clamav_freshclam_enable command=%%PREFIX%%/bin/freshclam pidfile=%%RUNDIR%%/freshclam.pid diff --git a/security/clamav-devel/files/clamav-milter.in b/security/clamav-devel/files/clamav-milter.in index b4d5888..d8b2e11 100644 --- a/security/clamav-devel/files/clamav-milter.in +++ b/security/clamav-devel/files/clamav-milter.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=clamav_milter -rcvar=`set_rcvar` +rcvar=clamav_milter_enable conf_file=%%PREFIX%%/etc/clamav-milter.conf command=%%PREFIX%%/sbin/clamav-milter diff --git a/security/clamav/files/clamav-clamd.in b/security/clamav/files/clamav-clamd.in index 2ecc189..7abcad1 100644 --- a/security/clamav/files/clamav-clamd.in +++ b/security/clamav/files/clamav-clamd.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=clamav_clamd -rcvar=`set_rcvar` +rcvar=clamav_clamd_enable command=%%PREFIX%%/sbin/clamd required_dirs=%%DBDIR%% diff --git a/security/clamav/files/clamav-freshclam.in b/security/clamav/files/clamav-freshclam.in index 86d7b8c..5d6a806 100644 --- a/security/clamav/files/clamav-freshclam.in +++ b/security/clamav/files/clamav-freshclam.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=clamav_freshclam -rcvar=`set_rcvar` +rcvar=clamav_freshclam_enable command=%%PREFIX%%/bin/freshclam pidfile=%%RUNDIR%%/freshclam.pid diff --git a/security/clamav/files/clamav-milter.in b/security/clamav/files/clamav-milter.in index b4d5888..d8b2e11 100644 --- a/security/clamav/files/clamav-milter.in +++ b/security/clamav/files/clamav-milter.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=clamav_milter -rcvar=`set_rcvar` +rcvar=clamav_milter_enable conf_file=%%PREFIX%%/etc/clamav-milter.conf command=%%PREFIX%%/sbin/clamav-milter diff --git a/security/clamsmtp/files/clamsmtpd.sh.in b/security/clamsmtp/files/clamsmtpd.sh.in index 772461b..c5c93c5 100644 --- a/security/clamsmtp/files/clamsmtpd.sh.in +++ b/security/clamsmtp/files/clamsmtpd.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="clamsmtpd" -rcvar=${name}_enable +rcvar=clamsmtpd_enable : ${clamsmtpd_enable="NO"} : ${clamsmtpd_conf="%%PREFIX%%/etc/clamsmtpd.conf"} diff --git a/security/courier-authlib/files/courier-authdaemond.sh.in b/security/courier-authlib/files/courier-authdaemond.sh.in index 0fe8ffd..6dc0304 100644 --- a/security/courier-authlib/files/courier-authdaemond.sh.in +++ b/security/courier-authlib/files/courier-authdaemond.sh.in @@ -28,7 +28,7 @@ courier_authdaemond_enable=${courier_authdaemond_enable-"NO"} # Run courier-auth . /etc/rc.subr name="courier_authdaemond" -rcvar=`set_rcvar` +rcvar=courier_authdaemond_enable command="${sbindir}/authdaemond" procname="${sbindir}/courierlogger" diff --git a/security/cyrus-sasl2-saslauthd/files/saslauthd.sh.in b/security/cyrus-sasl2-saslauthd/files/saslauthd.sh.in index e0b619a..f5468ce 100644 --- a/security/cyrus-sasl2-saslauthd/files/saslauthd.sh.in +++ b/security/cyrus-sasl2-saslauthd/files/saslauthd.sh.in @@ -23,7 +23,7 @@ saslauthd_flags=${saslauthd_flags:-"-a pam"} # Flags to saslauthd program . /etc/rc.subr name="saslauthd" -rcvar=`set_rcvar` +rcvar=saslauthd_enable command="%%PREFIX%%/sbin/${name}" load_rc_config $name diff --git a/security/denyhosts/files/denyhosts.in b/security/denyhosts/files/denyhosts.in index c463c71..f482617 100644 --- a/security/denyhosts/files/denyhosts.in +++ b/security/denyhosts/files/denyhosts.in @@ -9,7 +9,7 @@ . /etc/rc.subr name="denyhosts" -rcvar=${name}_enable +rcvar=denyhosts_enable command="%%PREFIX%%/bin/denyhosts.py" command_interpreter="%%PYTHON%%" diff --git a/security/distcache-devel/files/dc_server.sh.in b/security/distcache-devel/files/dc_server.sh.in index 7647cef..6f2d02c 100644 --- a/security/distcache-devel/files/dc_server.sh.in +++ b/security/distcache-devel/files/dc_server.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="%%NAME%%" -rcvar=`set_rcvar` +rcvar=%%NAME%%_enable command="%%PREFIX%%/bin/dc_server" command_args="-daemon -listen IP:9001 -user nobody -pidfile /var/run/$name.pid" diff --git a/security/distcache/files/dc_server.sh.in b/security/distcache/files/dc_server.sh.in index 7647cef..6f2d02c 100644 --- a/security/distcache/files/dc_server.sh.in +++ b/security/distcache/files/dc_server.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="%%NAME%%" -rcvar=`set_rcvar` +rcvar=%%NAME%%_enable command="%%PREFIX%%/bin/dc_server" command_args="-daemon -listen IP:9001 -user nobody -pidfile /var/run/$name.pid" diff --git a/security/doorman/files/doorman.sh.in b/security/doorman/files/doorman.sh.in index 8d39304..98e25a3 100644 --- a/security/doorman/files/doorman.sh.in +++ b/security/doorman/files/doorman.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="doorman" -rcvar=`set_rcvar` +rcvar=doorman_enable [ -z "$doorman_enable" ] && doorman_enable="NO" [ -z "$doorman_config" ] && doorman_config="%%PREFIX%%/etc/doormand/doormand.cf" diff --git a/security/dradis/files/dradis.in b/security/dradis/files/dradis.in index 6678d21..f2cb2a8 100644 --- a/security/dradis/files/dradis.in +++ b/security/dradis/files/dradis.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=dradis -rcvar=`set_rcvar` +rcvar=dradis_enable dradis_enable=${dradis_enable-"NO"} dradis_bindip=${dradis_bindip-"127.0.0.1"} diff --git a/security/dropbear/files/dropbear.in b/security/dropbear/files/dropbear.in index 40c479b..3f54957 100644 --- a/security/dropbear/files/dropbear.in +++ b/security/dropbear/files/dropbear.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="dropbear" -rcvar=`set_rcvar` +rcvar=dropbear_enable command="%%PREFIX%%/sbin/${name}" keygen_cmd="dropbear_keygen" start_precmd="dropbear_precmd" diff --git a/security/expiretable/files/expiretable.in b/security/expiretable/files/expiretable.in index ad5ee98..18c8380 100644 --- a/security/expiretable/files/expiretable.in +++ b/security/expiretable/files/expiretable.in @@ -11,7 +11,7 @@ . /etc/rc.subr name="expiretable" -rcvar=`set_rcvar` +rcvar=expiretable_enable command="/usr/local/sbin/expiretable" load_rc_config "$name" diff --git a/security/hamachi/files/hamachi.sh.in b/security/hamachi/files/hamachi.sh.in index d75540d..99e6877 100644 --- a/security/hamachi/files/hamachi.sh.in +++ b/security/hamachi/files/hamachi.sh.in @@ -32,7 +32,7 @@ . /etc/rc.subr name="hamachi" -rcvar=`set_rcvar` +rcvar=hamachi_enable load_rc_config $name diff --git a/security/ike/files/iked.in b/security/ike/files/iked.in index 03ad7f8..73d8f38 100644 --- a/security/ike/files/iked.in +++ b/security/ike/files/iked.in @@ -21,7 +21,7 @@ iked_enable=${iked_enable:-"NO"} name=iked -rcvar=`set_rcvar` +rcvar=iked_enable load_rc_config $name command=/usr/local/sbin/iked command_args="-p /var/run/iked.pid > /dev/null" diff --git a/security/ipguard/files/ipguard.in b/security/ipguard/files/ipguard.in index d878948..1389943 100644 --- a/security/ipguard/files/ipguard.in +++ b/security/ipguard/files/ipguard.in @@ -13,7 +13,7 @@ . /etc/rc.subr name=ipguard -rcvar=`set_rcvar` +rcvar=ipguard_enable start_precmd=ipguard_precmd command=%%PREFIX%%/sbin/${name} diff --git a/security/ipsec-tools/files/racoon.sh.in b/security/ipsec-tools/files/racoon.sh.in index 7d7c4bf..1ab8506 100644 --- a/security/ipsec-tools/files/racoon.sh.in +++ b/security/ipsec-tools/files/racoon.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="racoon" -rcvar=`set_rcvar` +rcvar=racoon_enable load_rc_config $name diff --git a/security/isakmpd/files/isakmpd.sh.in b/security/isakmpd/files/isakmpd.sh.in index 3e0adbb..fb30d09 100644 --- a/security/isakmpd/files/isakmpd.sh.in +++ b/security/isakmpd/files/isakmpd.sh.in @@ -11,7 +11,7 @@ . /etc/rc.subr name="isakmpd" -rcvar=`set_rcvar` +rcvar=isakmpd_enable command="%%PREFIX%%/sbin/${name}" extra_commands="reload" diff --git a/security/knock/files/knockd.sh.in b/security/knock/files/knockd.sh.in index 65b9e35..67e17f9 100644 --- a/security/knock/files/knockd.sh.in +++ b/security/knock/files/knockd.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="knockd" -rcvar=`set_rcvar` +rcvar=knockd_enable load_rc_config $name diff --git a/security/maia/files/maiad.in b/security/maia/files/maiad.in index e109e32..dbbcb53 100644 --- a/security/maia/files/maiad.in +++ b/security/maia/files/maiad.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="maiad" -rcvar=${name}_enable +rcvar=maiad_enable load_rc_config $name diff --git a/security/nessus/files/nessusd.sh.in b/security/nessus/files/nessusd.sh.in index 14c019e..10e0801 100644 --- a/security/nessus/files/nessusd.sh.in +++ b/security/nessus/files/nessusd.sh.in @@ -22,7 +22,7 @@ nessusd_flags="-D" # Flags to nessusd program . /etc/rc.subr name="nessusd" -rcvar=`set_rcvar` +rcvar=nessusd_enable command="%%PREFIX%%/sbin/nessusd" pidfile="%%PREFIX%%/var/nessus/nessusd.pid" required_files="%%PREFIX%%/etc/nessus/nessusd.conf" diff --git a/security/oidentd/files/oidentd.in b/security/oidentd/files/oidentd.in index aa236ac..5a035a8 100644 --- a/security/oidentd/files/oidentd.in +++ b/security/oidentd/files/oidentd.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=oidentd -rcvar=`set_rcvar` +rcvar=oidentd_enable command=%%PREFIX%%/sbin/${name} diff --git a/security/opencryptoki/files/pkcsslotd.in b/security/opencryptoki/files/pkcsslotd.in index ca0fb77..e931d61 100644 --- a/security/opencryptoki/files/pkcsslotd.in +++ b/security/opencryptoki/files/pkcsslotd.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=pkcsslotd -rcvar=`set_rcvar` +rcvar=pkcsslotd_enable command=%%PREFIX%%/sbin/${name} start_precmd=${name}_prestart diff --git a/security/openct/files/openct.in b/security/openct/files/openct.in index aaaa5b7..5495a95 100644 --- a/security/openct/files/openct.in +++ b/security/openct/files/openct.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="openct" -rcvar=`set_rcvar` +rcvar=openct_enable load_rc_config $name diff --git a/security/openssh-portable/files/openssh.in b/security/openssh-portable/files/openssh.in index 4277b39..1eb8a95 100644 --- a/security/openssh-portable/files/openssh.in +++ b/security/openssh-portable/files/openssh.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="openssh" -rcvar=${name}_enable +rcvar=openssh_enable load_rc_config ${name} diff --git a/security/openvas-server/files/openvasd.in b/security/openvas-server/files/openvasd.in index 9b07a57..5685174 100644 --- a/security/openvas-server/files/openvasd.in +++ b/security/openvas-server/files/openvasd.in @@ -25,7 +25,7 @@ openvasd_flags="-D -q" # Flags to openvasd program . /etc/rc.subr name="openvasd" -rcvar=`set_rcvar` +rcvar=openvasd_enable command="${prefix}/sbin/openvasd" pidfile="/var/run/openvasd.pid" required_files="${prefix}/etc/openvas/openvasd.conf" diff --git a/security/openvpn-beta/files/openvpn.sh.in b/security/openvpn-beta/files/openvpn.sh.in index a60af9a..124082b 100644 --- a/security/openvpn-beta/files/openvpn.sh.in +++ b/security/openvpn-beta/files/openvpn.sh.in @@ -73,7 +73,7 @@ case "$0" in ;; esac -rcvar=$(set_rcvar) +rcvar=${name}_enable openvpn_precmd() { diff --git a/security/openvpn-devel/files/openvpn.sh.in b/security/openvpn-devel/files/openvpn.sh.in index a60af9a..124082b 100644 --- a/security/openvpn-devel/files/openvpn.sh.in +++ b/security/openvpn-devel/files/openvpn.sh.in @@ -73,7 +73,7 @@ case "$0" in ;; esac -rcvar=$(set_rcvar) +rcvar=${name}_enable openvpn_precmd() { diff --git a/security/openvpn/files/openvpn.sh.in b/security/openvpn/files/openvpn.sh.in index d253913..f4f1dbd 100644 --- a/security/openvpn/files/openvpn.sh.in +++ b/security/openvpn/files/openvpn.sh.in @@ -76,8 +76,7 @@ case "$0" in esac name="${name##*/}" - -rcvar=$(set_rcvar) +rcvar=${name}_enable stop_postcmd() { diff --git a/security/openvpn20/files/openvpn.sh.in b/security/openvpn20/files/openvpn.sh.in index d253913..f4f1dbd 100644 --- a/security/openvpn20/files/openvpn.sh.in +++ b/security/openvpn20/files/openvpn.sh.in @@ -76,8 +76,7 @@ case "$0" in esac name="${name##*/}" - -rcvar=$(set_rcvar) +rcvar=${name}_enable stop_postcmd() { diff --git a/security/ossec-hids-server/files/ossec-hids.in b/security/ossec-hids-server/files/ossec-hids.in index 4f464fb..bd6c7e9 100644 --- a/security/ossec-hids-server/files/ossec-hids.in +++ b/security/ossec-hids-server/files/ossec-hids.in @@ -8,7 +8,7 @@ . /etc/rc.subr name="ossechids" -rcvar=`set_rcvar` +rcvar=ossechids_enable load_rc_config $name diff --git a/security/p5-openxpki-deployment/files/openxpki.sh.in b/security/p5-openxpki-deployment/files/openxpki.sh.in index b79847e6..acb2aa9 100644 --- a/security/p5-openxpki-deployment/files/openxpki.sh.in +++ b/security/p5-openxpki-deployment/files/openxpki.sh.in @@ -25,7 +25,7 @@ esac . /etc/rc.subr name="openxpki" -rcvar=`set_rcvar` +rcvar=openxpki_enable command="%%PREFIX%%/bin/openxpkictl" procname="openxpkid" diff --git a/security/pks/files/pksd.sh.in b/security/pks/files/pksd.sh.in index 9f520df..ff9a23a 100644 --- a/security/pks/files/pksd.sh.in +++ b/security/pks/files/pksd.sh.in @@ -9,7 +9,7 @@ . /etc/rc.subr name="pksd" -rcvar=`set_rcvar` +rcvar=pksd_enable command="%%PREFIX%%/sbin/pksd" command_args="%%PREFIX%%/etc/${name}.conf &" required_files="%%PREFIX%%/etc/${name}.conf" diff --git a/security/prelude-lml/files/prelude-lml.sh.in b/security/prelude-lml/files/prelude-lml.sh.in index 8622d41..e0e5bf1 100644 --- a/security/prelude-lml/files/prelude-lml.sh.in +++ b/security/prelude-lml/files/prelude-lml.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="prelude_lml" -rcvar=${name}_enable +rcvar=prelude_lml_enable command=%%PREFIX%%/bin/prelude-lml pidfile=/var/run/prelude-lml.pid diff --git a/security/prelude-manager/files/prelude-manager.sh.in b/security/prelude-manager/files/prelude-manager.sh.in index 14c8626..6f84382 100644 --- a/security/prelude-manager/files/prelude-manager.sh.in +++ b/security/prelude-manager/files/prelude-manager.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="prelude_manager" -rcvar=${name}_enable +rcvar=prelude_manager_enable command=%%PREFIX%%/bin/prelude-manager pidfile=/var/run/prelude-manager.pid diff --git a/security/prelude-pflogger/files/prelude-pflogger.in b/security/prelude-pflogger/files/prelude-pflogger.in index cfd45b7..ef8f9e7 100644 --- a/security/prelude-pflogger/files/prelude-pflogger.in +++ b/security/prelude-pflogger/files/prelude-pflogger.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="prelude_pflogger" -rcvar=${name}_enable +rcvar=prelude_pflogger_enable command=%%PREFIX%%/bin/prelude-pflogger pidfile=/var/run/prelude-pflogger.pid diff --git a/security/py-fail2ban/files/fail2ban.in b/security/py-fail2ban/files/fail2ban.in index 5cbcf31..ebaa0f8 100644 --- a/security/py-fail2ban/files/fail2ban.in +++ b/security/py-fail2ban/files/fail2ban.in @@ -14,7 +14,7 @@ fail2ban_pidfile=${fail2ban_pidfile-"/var/run/fail2ban/fail2ban.pid"} . /etc/rc.subr name="fail2ban" -rcvar=`set_rcvar` +rcvar=fail2ban_enable pidfile="${fail2ban_pidfile}" command="%%PREFIX%%/bin/fail2ban-server" diff --git a/security/racoon2/files/patch-samples-rc.d-iked.in b/security/racoon2/files/patch-samples-rc.d-iked.in index 0aedae7..713bae1 100644 --- a/security/racoon2/files/patch-samples-rc.d-iked.in +++ b/security/racoon2/files/patch-samples-rc.d-iked.in @@ -5,7 +5,7 @@ name="iked" -rcvar=$name -+rcvar=`set_rcvar` ++rcvar=iked_enable command="@sbindir@/${name}" extra_commands="reload" -required_vars="spmd" diff --git a/security/racoon2/files/patch-samples-rc.d-kinkd.in b/security/racoon2/files/patch-samples-rc.d-kinkd.in index 7200054..1db9028 100644 --- a/security/racoon2/files/patch-samples-rc.d-kinkd.in +++ b/security/racoon2/files/patch-samples-rc.d-kinkd.in @@ -5,7 +5,7 @@ name="kinkd" -rcvar=$name -+rcvar=`set_rcvar` ++rcvar=kinkd_enable command="@sbindir@/${name}" extra_commands="reload" -required_vars="spmd" diff --git a/security/racoon2/files/patch-samples-rc.d-spmd.in b/security/racoon2/files/patch-samples-rc.d-spmd.in index 7260892..f4e962f 100644 --- a/security/racoon2/files/patch-samples-rc.d-spmd.in +++ b/security/racoon2/files/patch-samples-rc.d-spmd.in @@ -5,7 +5,7 @@ name="spmd" -rcvar=$name -+rcvar=`set_rcvar` ++rcvar=spmd_enable command="@sbindir@/${name}" extra_commands="reload" pidfile="/var/run/${name}.pid" diff --git a/security/sancp/files/sancp.in b/security/sancp/files/sancp.in index 8e67d5e..a5396fb 100644 --- a/security/sancp/files/sancp.in +++ b/security/sancp/files/sancp.in @@ -55,7 +55,7 @@ . /etc/rc.subr name="sancp" -rcvar=`set_rcvar` +rcvar=sancp_enable command="%%PREFIX%%/bin/sancp" diff --git a/security/scanlogd/files/scanlogd.in b/security/scanlogd/files/scanlogd.in index 9070a9b..ff7a54f 100644 --- a/security/scanlogd/files/scanlogd.in +++ b/security/scanlogd/files/scanlogd.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="scanlogd" -rcvar=`set_rcvar` +rcvar=scanlogd_enable command="%%PREFIX%%/bin/${name}" load_rc_config $name diff --git a/security/scannedonly/files/scannedonly.in b/security/scannedonly/files/scannedonly.in index 744943d..621a67b 100644 --- a/security/scannedonly/files/scannedonly.in +++ b/security/scannedonly/files/scannedonly.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=scannedonly_clamav -rcvar=`set_rcvar` +rcvar=scannedonly_clamav_enable command=%%PREFIX%%/sbin/scannedonlyd_clamav pidfile=/var/run/scannedonlyd_clamav.pid diff --git a/security/sfs/files/sfscd.in b/security/sfs/files/sfscd.in index 939ac15..972d4f5 100644 --- a/security/sfs/files/sfscd.in +++ b/security/sfs/files/sfscd.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=sfscd -rcvar=`set_rcvar` +rcvar=sfscd_enable command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/${name}.pid" diff --git a/security/sfs/files/sfssd.in b/security/sfs/files/sfssd.in index c173602..eb33547 100644 --- a/security/sfs/files/sfssd.in +++ b/security/sfs/files/sfssd.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=sfssd -rcvar=`set_rcvar` +rcvar=sfssd_enable command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/${name}.pid" diff --git a/security/sguil-sensor/files/example_agent.sh.in b/security/sguil-sensor/files/example_agent.sh.in index 58b94f1..79b4497 100644 --- a/security/sguil-sensor/files/example_agent.sh.in +++ b/security/sguil-sensor/files/example_agent.sh.in @@ -24,7 +24,7 @@ example_agent_conf=${example_agent_conf:-"%%PREFIX%%/etc/%%SGUILDIR%%/example_ag example_agent_flags=${example_agent_flags:-"-D"} name="example_agent" -rcvar=`set_rcvar` +rcvar=example_agent_enable command="%%PREFIX%%/bin/%%SGUILDIR%%/example_agent.tcl" command_args="-c ${example_agent_conf} ${example_agent_flags}" procname="%%PREFIX%%/bin/tclsh8.4" diff --git a/security/sguil-sensor/files/pads_agent.sh.in b/security/sguil-sensor/files/pads_agent.sh.in index 02de467..757f03e 100644 --- a/security/sguil-sensor/files/pads_agent.sh.in +++ b/security/sguil-sensor/files/pads_agent.sh.in @@ -24,7 +24,7 @@ pads_agent_conf=${pads_agent_conf:-"%%PREFIX%%/etc/%%SGUILDIR%%/pads_agent.conf" pads_agent_flags=${pads_agent_flags:-"-D"} name="pads_agent" -rcvar=`set_rcvar` +rcvar=pads_agent_enable command="%%PREFIX%%/bin/%%SGUILDIR%%/pads_agent.tcl" command_args="-c ${pads_agent_conf} ${pads_agent_flags}" procname="%%PREFIX%%/bin/tclsh8.4" diff --git a/security/sguil-sensor/files/pcap_agent.sh.in b/security/sguil-sensor/files/pcap_agent.sh.in index 2370ff7..264c2ab 100644 --- a/security/sguil-sensor/files/pcap_agent.sh.in +++ b/security/sguil-sensor/files/pcap_agent.sh.in @@ -24,7 +24,7 @@ pcap_agent_conf=${pcap_agent_conf:-"%%PREFIX%%/etc/%%SGUILDIR%%/pcap_agent.conf" pcap_agent_flags=${pcap_agent_flags:-"-D"} name="pcap_agent" -rcvar=`set_rcvar` +rcvar=pcap_agent_enable command="%%PREFIX%%/bin/%%SGUILDIR%%/pcap_agent.tcl" command_args="-c ${pcap_agent_conf} ${pcap_agent_flags}" procname="%%PREFIX%%/bin/tclsh8.4" diff --git a/security/sguil-sensor/files/sancp_agent.sh.in b/security/sguil-sensor/files/sancp_agent.sh.in index 11e692a..7b93fd4 100644 --- a/security/sguil-sensor/files/sancp_agent.sh.in +++ b/security/sguil-sensor/files/sancp_agent.sh.in @@ -24,7 +24,7 @@ sancp_agent_conf=${sancp_agent_conf:-"%%PREFIX%%/etc/%%SGUILDIR%%/sancp_agent.co sancp_agent_flags=${sancp_agent_flags:-"-D"} name="sancp_agent" -rcvar=`set_rcvar` +rcvar=sancp_agent_enable command="%%PREFIX%%/bin/%%SGUILDIR%%/sancp_agent.tcl" command_args="-c ${sancp_agent_conf} ${sancp_agent_flags}" procname="%%PREFIX%%/bin/tclsh8.4" diff --git a/security/sguil-sensor/files/snort_agent.sh.in b/security/sguil-sensor/files/snort_agent.sh.in index 985af4a..154f738 100644 --- a/security/sguil-sensor/files/snort_agent.sh.in +++ b/security/sguil-sensor/files/snort_agent.sh.in @@ -24,7 +24,7 @@ snort_agent_conf=${snort_agent_conf:-"%%PREFIX%%/etc/%%SGUILDIR%%/snort_agent.co snort_agent_flags=${snort_agent_flags:-"-D"} name="snort_agent" -rcvar=`set_rcvar` +rcvar=snort_agent_enable command="%%PREFIX%%/bin/%%SGUILDIR%%/snort_agent.tcl" command_args="-c ${snort_agent_conf} ${snort_agent_flags}" procname="%%PREFIX%%/bin/tclsh8.4" diff --git a/security/sguil-server/files/sguild.sh.in b/security/sguil-server/files/sguild.sh.in index 6920542..10860b4 100644 --- a/security/sguil-server/files/sguild.sh.in +++ b/security/sguil-server/files/sguild.sh.in @@ -41,7 +41,7 @@ sguild_flags=${sguild_flags:-"-D -P ${pid}"} sguild_user=${sguild_user:-"sguil"} name="sguild" -rcvar=`set_rcvar` +rcvar=sguild_enable command="%%PREFIX%%/bin/${name}" command_args="-c ${sguild_conf} ${sguild_flags}" procname="%%TCLSH%%" diff --git a/security/shibboleth2-sp/files/shibboleth-sp.in b/security/shibboleth2-sp/files/shibboleth-sp.in index 6501467..5a81e04 100644 --- a/security/shibboleth2-sp/files/shibboleth-sp.in +++ b/security/shibboleth2-sp/files/shibboleth-sp.in @@ -9,7 +9,7 @@ . /etc/rc.subr name="shibboleth_sp" -rcvar=${name}_enable +rcvar=shibboleth_sp_enable command=${shibboleth_sp_program:-%%PREFIX%%/sbin/shibd} pidfile="${shibboleth_sp_pidfile:-/var/run/${name}.pid}" diff --git a/security/snort/files/snort.sh.in b/security/snort/files/snort.sh.in index 6f7aef1..41e272de 100644 --- a/security/snort/files/snort.sh.in +++ b/security/snort/files/snort.sh.in @@ -29,7 +29,7 @@ . /etc/rc.subr name="snort" -rcvar=`set_rcvar` +rcvar=snort_enable extra_commands=reload command="%%PREFIX%%/bin/snort" diff --git a/security/snortsam/files/snortsam.sh.in b/security/snortsam/files/snortsam.sh.in index faee0c9..27d7091 100644 --- a/security/snortsam/files/snortsam.sh.in +++ b/security/snortsam/files/snortsam.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="snortsam" -rcvar=`set_rcvar` +rcvar=snortsam_enable load_rc_config snortsam # defaults diff --git a/security/spybye/files/spybye.sh.in b/security/spybye/files/spybye.sh.in index 1768f02..9c535e0 100644 --- a/security/spybye/files/spybye.sh.in +++ b/security/spybye/files/spybye.sh.in @@ -26,7 +26,7 @@ name="spybye" load_rc_config ${name} -rcvar=`set_rcvar` +rcvar=spybye_enable # set the defaults : ${spybye_enable="NO"} : ${spybye_flags="-x -p 8080 -l /var/log/spybye.log"} diff --git a/security/sshblock/files/sshblock.in b/security/sshblock/files/sshblock.in index 17941c4..0da0d07 100644 --- a/security/sshblock/files/sshblock.in +++ b/security/sshblock/files/sshblock.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="sshblock" -rcvar=`set_rcvar` +rcvar=sshblock_enable command_interpreter=%%PERL%% command="%%PREFIX%%/sbin/sshblock" diff --git a/security/sssd/files/sssd.in b/security/sssd/files/sssd.in index 23596ff..9123c92 100644 --- a/security/sssd/files/sssd.in +++ b/security/sssd/files/sssd.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="sssd" -rcvar=`set_rcvar` +rcvar=sssd_enable command="%%PREFIX%%/sbin/$name" sssd_flags="-D" diff --git a/security/strongswan/files/strongswan.in b/security/strongswan/files/strongswan.in index 3e3c161..8f6bb47 100644 --- a/security/strongswan/files/strongswan.in +++ b/security/strongswan/files/strongswan.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="strongswan" -rcvar=`set_rcvar` +rcvar=strongswan_enable command="%%PREFIX%%/sbin/ipsec" extra_commands="reload statusall" diff --git a/security/stunnel/files/stunnel.in b/security/stunnel/files/stunnel.in index d639588..987b986 100644 --- a/security/stunnel/files/stunnel.in +++ b/security/stunnel/files/stunnel.in @@ -24,7 +24,7 @@ . /etc/rc.subr name="stunnel" -rcvar=`set_rcvar` +rcvar=stunnel_enable load_rc_config $name diff --git a/security/suricata/files/suricata.in b/security/suricata/files/suricata.in index 5174657..582e117 100644 --- a/security/suricata/files/suricata.in +++ b/security/suricata/files/suricata.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="suricata" -rcvar=`set_rcvar` +rcvar=suricata_enable command="%%PREFIX%%/bin/suricata" diff --git a/security/swatch/files/swatch.in b/security/swatch/files/swatch.in index a81590f..038701a 100644 --- a/security/swatch/files/swatch.in +++ b/security/swatch/files/swatch.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=swatch -rcvar=`set_rcvar` +rcvar=swatch_enable command=%%PREFIX%%/bin/swatch procname=%%LOCALBASE%%/bin/perl diff --git a/security/termlog/files/termlog.in b/security/termlog/files/termlog.in index 3d194bd..8f7946b 100644 --- a/security/termlog/files/termlog.in +++ b/security/termlog/files/termlog.in @@ -8,7 +8,7 @@ load_rc_config termlog name=termlog -rcvar=`set_rcvar` +rcvar=termlog_enable command="/usr/local/bin/termlog" diff --git a/security/tinc/files/tincd.sh.in b/security/tinc/files/tincd.sh.in index 94a8d257..c4d72fb 100644 --- a/security/tinc/files/tincd.sh.in +++ b/security/tinc/files/tincd.sh.in @@ -18,7 +18,7 @@ tincd_enable=${tincd_enable:-"NO"} . /etc/rc.subr name="tincd" -rcvar=`set_rcvar` +rcvar=tincd_enable command="%%PREFIX%%/sbin/tincd" start_cmd="tincd_start" stop_cmd="tincd_stop" diff --git a/security/tor-devel/files/tor.in b/security/tor-devel/files/tor.in index 8ed480b..ac24b8b 100644 --- a/security/tor-devel/files/tor.in +++ b/security/tor-devel/files/tor.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="tor" -rcvar=${name}_enable +rcvar=tor_enable load_rc_config ${name} diff --git a/security/tor/files/tor.in b/security/tor/files/tor.in index 8ed480b..ac24b8b 100644 --- a/security/tor/files/tor.in +++ b/security/tor/files/tor.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="tor" -rcvar=${name}_enable +rcvar=tor_enable load_rc_config ${name} diff --git a/security/trousers/files/tcsd.in b/security/trousers/files/tcsd.in index 3881087..f9c3773 100644 --- a/security/trousers/files/tcsd.in +++ b/security/trousers/files/tcsd.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=tcsd -rcvar=`set_rcvar` +rcvar=tcsd_enable command="%%PREFIX%%/sbin/${name}" required_files="%%PREFIX%%/etc/${name}.conf" diff --git a/security/vpnc/files/vpnc.in b/security/vpnc/files/vpnc.in index 7c02909..464a013 100644 --- a/security/vpnc/files/vpnc.in +++ b/security/vpnc/files/vpnc.in @@ -24,7 +24,7 @@ . /etc/rc.subr name="vpnc" -rcvar=`set_rcvar` +rcvar=vpnc_enable command="%%PREFIX%%/sbin/$name" diff --git a/security/xinetd/files/xinetd.in b/security/xinetd/files/xinetd.in index 41f0241..9e66788 100644 --- a/security/xinetd/files/xinetd.in +++ b/security/xinetd/files/xinetd.in @@ -13,7 +13,7 @@ . /etc/rc.subr name=xinetd -rcvar=`set_rcvar` +rcvar=xinetd_enable command=%%PREFIX%%/sbin/xinetd > /dev/null 2>&1 pidfile=/var/run/xinetd.pid diff --git a/shells/scponly/files/scponlyc.in b/shells/scponly/files/scponlyc.in index 28aa5f5..f094135 100644 --- a/shells/scponly/files/scponlyc.in +++ b/shells/scponly/files/scponlyc.in @@ -19,7 +19,7 @@ scponlyc_shells="${scponlyc_shells:-/etc/shells}" scponlyc_passwd="${scponlyc_passwd:-/etc/passwd}" name="scponlyc" -rcvar=`set_rcvar` +rcvar=scponlyc_enable start_cmd="scponlyc_startcmd" stop_cmd="scponlyc_stopcmd" diff --git a/shells/wapsh/files/htshd.sh.in b/shells/wapsh/files/htshd.sh.in index f42acdc..9e1fe17 100644 --- a/shells/wapsh/files/htshd.sh.in +++ b/shells/wapsh/files/htshd.sh.in @@ -7,7 +7,7 @@ . /etc/rc.subr name="htshd" -rcvar=`set_rcvar` +rcvar=htshd_enable load_rc_config $name htshd_enable=${htshd_enable:-"NO"} diff --git a/sysutils/3dm/files/3dm2.sh.in b/sysutils/3dm/files/3dm2.sh.in index b6dde38..93f0f65 100644 --- a/sysutils/3dm/files/3dm2.sh.in +++ b/sysutils/3dm/files/3dm2.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=twdm2 -rcvar=`set_rcvar` +rcvar=twdm2_enable start_precmd=twdm2_precmd command="%%PREFIX%%/sbin/3dm2" diff --git a/sysutils/915resolution/files/915resolution.sh.in b/sysutils/915resolution/files/915resolution.sh.in index 4f643fc..4878ebf 100644 --- a/sysutils/915resolution/files/915resolution.sh.in +++ b/sysutils/915resolution/files/915resolution.sh.in @@ -23,7 +23,7 @@ i915resolution_height=${i915resolution_height:-"1080"} # the vertical resolutio . /etc/rc.subr name="i915resolution" -rcvar=`set_rcvar` +rcvar=i915resolution_enable command="%%PREFIX%%/sbin/915resolution" start_cmd="${name}_start" stop_cmd=":" diff --git a/sysutils/LPRng/files/lprng.in b/sysutils/LPRng/files/lprng.in index 0da46aa..a0e3e6f 100644 --- a/sysutils/LPRng/files/lprng.in +++ b/sysutils/LPRng/files/lprng.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="lprng" -rcvar=${name}_enable +rcvar=lprng_enable command=%%PREFIX%%/sbin/lpd diff --git a/sysutils/afbinit/files/afbinit.sh.in b/sysutils/afbinit/files/afbinit.sh.in index e9cbbac..6e23c97 100644 --- a/sysutils/afbinit/files/afbinit.sh.in +++ b/sysutils/afbinit/files/afbinit.sh.in @@ -20,7 +20,7 @@ . /etc/rc.subr name="afbinit" -rcvar=${name}_enable +rcvar=afbinit_enable start_cmd="afbinit_startcmd" diff --git a/sysutils/aird/files/aird.in b/sysutils/aird/files/aird.in index 8504bd3..ecd1aa7 100644 --- a/sysutils/aird/files/aird.in +++ b/sysutils/aird/files/aird.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="aird" -rcvar=`set_rcvar` +rcvar=aird_enable load_rc_config $name diff --git a/sysutils/anacron/files/anacron.sh.in b/sysutils/anacron/files/anacron.sh.in index 85e2704..918d687 100644 --- a/sysutils/anacron/files/anacron.sh.in +++ b/sysutils/anacron/files/anacron.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="anacron" -rcvar=`set_rcvar` +rcvar=anacron_enable command="%%PREFIX%%/sbin/anacron" load_rc_config $name diff --git a/sysutils/apcupsd/files/apcupsd.in b/sysutils/apcupsd/files/apcupsd.in index 4422f8b..83ef00a 100644 --- a/sysutils/apcupsd/files/apcupsd.in +++ b/sysutils/apcupsd/files/apcupsd.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="apcupsd" -rcvar=${name}_enable +rcvar=apcupsd_enable load_rc_config $name diff --git a/sysutils/asusoled/files/asusoled.sh.in b/sysutils/asusoled/files/asusoled.sh.in index 45f9928..b432233 100644 --- a/sysutils/asusoled/files/asusoled.sh.in +++ b/sysutils/asusoled/files/asusoled.sh.in @@ -18,7 +18,7 @@ asusoled_command=${asusoled_command-""} . /etc/rc.subr name=asusoled -rcvar=`set_rcvar` +rcvar=asusoled_enable start_cmd=asusoled_start stop_cmd=asusoled_stop diff --git a/sysutils/asusoled/files/oled_clock.sh.in b/sysutils/asusoled/files/oled_clock.sh.in index a8c8c44..d47d669 100644 --- a/sysutils/asusoled/files/oled_clock.sh.in +++ b/sysutils/asusoled/files/oled_clock.sh.in @@ -17,7 +17,7 @@ oled_clock_flags=${oled_clock_flags-"-R -i -w -P 1"} . /etc/rc.subr name=oled_clock -rcvar=`set_rcvar` +rcvar=oled_clock_enable start_cmd=oled_clock_start stop_cmd=oled_clock_stop diff --git a/sysutils/ataidle/files/ataidle.in b/sysutils/ataidle/files/ataidle.in index 6218806..928ab02 100644 --- a/sysutils/ataidle/files/ataidle.in +++ b/sysutils/ataidle/files/ataidle.in @@ -23,7 +23,7 @@ . /etc/rc.subr name="ataidle" -rcvar=${name}_enable +rcvar=ataidle_enable command=%%PREFIX%%/sbin/${name} start_cmd=ataidle_start diff --git a/sysutils/atop/files/atop.in b/sysutils/atop/files/atop.in index 0b0e872..9eb224b 100644 --- a/sysutils/atop/files/atop.in +++ b/sysutils/atop/files/atop.in @@ -30,7 +30,7 @@ . /etc/rc.subr name="atop" -rcvar=`set_rcvar` +rcvar=atop_enable load_rc_config $name diff --git a/sysutils/backuppc/files/backuppc.in b/sysutils/backuppc/files/backuppc.in index e82370e..1d96403 100644 --- a/sysutils/backuppc/files/backuppc.in +++ b/sysutils/backuppc/files/backuppc.in @@ -10,7 +10,7 @@ . /etc/rc.subr name="backuppc" -rcvar=`set_rcvar` +rcvar=backuppc_enable load_rc_config $name diff --git a/sysutils/bacula-server/files/bacula-dir.in b/sysutils/bacula-server/files/bacula-dir.in index dab7df5..45121ab 100644 --- a/sysutils/bacula-server/files/bacula-dir.in +++ b/sysutils/bacula-server/files/bacula-dir.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="bacula_dir" -rcvar=${name}_enable +rcvar=bacula_dir_enable command=%%PREFIX%%/sbin/bacula-dir load_rc_config $name diff --git a/sysutils/bacula-server/files/bacula-fd.in b/sysutils/bacula-server/files/bacula-fd.in index cf04e50..77d61c4 100644 --- a/sysutils/bacula-server/files/bacula-fd.in +++ b/sysutils/bacula-server/files/bacula-fd.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="bacula_fd" -rcvar=${name}_enable +rcvar=bacula_fd_enable command=%%PREFIX%%/sbin/bacula-fd load_rc_config $name diff --git a/sysutils/bacula-server/files/bacula-sd.in b/sysutils/bacula-server/files/bacula-sd.in index d974daa..c8182e2 100644 --- a/sysutils/bacula-server/files/bacula-sd.in +++ b/sysutils/bacula-server/files/bacula-sd.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="bacula_sd" -rcvar=`set_rcvar` +rcvar=bacula_sd_enable command=%%PREFIX%%/sbin/bacula-sd load_rc_config $name diff --git a/sysutils/bacula2-server/files/bacula-dir.in b/sysutils/bacula2-server/files/bacula-dir.in index dab7df5..45121ab 100644 --- a/sysutils/bacula2-server/files/bacula-dir.in +++ b/sysutils/bacula2-server/files/bacula-dir.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="bacula_dir" -rcvar=${name}_enable +rcvar=bacula_dir_enable command=%%PREFIX%%/sbin/bacula-dir load_rc_config $name diff --git a/sysutils/bacula2-server/files/bacula-fd.in b/sysutils/bacula2-server/files/bacula-fd.in index cf04e50..77d61c4 100644 --- a/sysutils/bacula2-server/files/bacula-fd.in +++ b/sysutils/bacula2-server/files/bacula-fd.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="bacula_fd" -rcvar=${name}_enable +rcvar=bacula_fd_enable command=%%PREFIX%%/sbin/bacula-fd load_rc_config $name diff --git a/sysutils/bacula2-server/files/bacula-sd.in b/sysutils/bacula2-server/files/bacula-sd.in index d974daa..c8182e2 100644 --- a/sysutils/bacula2-server/files/bacula-sd.in +++ b/sysutils/bacula2-server/files/bacula-sd.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="bacula_sd" -rcvar=`set_rcvar` +rcvar=bacula_sd_enable command=%%PREFIX%%/sbin/bacula-sd load_rc_config $name diff --git a/sysutils/be_agent/files/be-agent.sh.in b/sysutils/be_agent/files/be-agent.sh.in index 457f31b..2562e60 100644 --- a/sysutils/be_agent/files/be-agent.sh.in +++ b/sysutils/be_agent/files/be-agent.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=be_agent -rcvar=`set_rcvar` +rcvar=be_agent_enable command="%%PREFIX%%/bin/agent.be" diff --git a/sysutils/boxbackup-devel/files/bbackupd.in b/sysutils/boxbackup-devel/files/bbackupd.in index 8e2e3af..e74a9df 100644 --- a/sysutils/boxbackup-devel/files/bbackupd.in +++ b/sysutils/boxbackup-devel/files/bbackupd.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="bbackupd" -rcvar=`set_rcvar` +rcvar=bbackupd_enable load_rc_config $name diff --git a/sysutils/boxbackup-devel/files/bbstored.in b/sysutils/boxbackup-devel/files/bbstored.in index 347af93..f5163bb 100644 --- a/sysutils/boxbackup-devel/files/bbstored.in +++ b/sysutils/boxbackup-devel/files/bbstored.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="bbstored" -rcvar=`set_rcvar` +rcvar=bbstored_enable load_rc_config $name diff --git a/sysutils/boxbackup/files/bbackupd.in b/sysutils/boxbackup/files/bbackupd.in index fe14fcb..dcb2c7d 100644 --- a/sysutils/boxbackup/files/bbackupd.in +++ b/sysutils/boxbackup/files/bbackupd.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="bbackupd" -rcvar=`set_rcvar` +rcvar=bbackupd_enable load_rc_config $name diff --git a/sysutils/boxbackup/files/bbstored.in b/sysutils/boxbackup/files/bbstored.in index 6865c0e..b77ca0e9 100644 --- a/sysutils/boxbackup/files/bbstored.in +++ b/sysutils/boxbackup/files/bbstored.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="bbstored" -rcvar=`set_rcvar` +rcvar=bbstored_enable load_rc_config $name diff --git a/sysutils/bsd-splash-changer/files/change_splash.sh.in b/sysutils/bsd-splash-changer/files/change_splash.sh.in index af3cb2e..f4a5122 100644 --- a/sysutils/bsd-splash-changer/files/change_splash.sh.in +++ b/sysutils/bsd-splash-changer/files/change_splash.sh.in @@ -1,6 +1,6 @@ #!/bin/sh -# -# /usr/local/etc/rc.d/change_splash.sh * mato [11-feb-2006] + +# $FreeBSD$ # # PROVIDE: change_splash # REQUIRE: mountcritremote @@ -14,19 +14,20 @@ # Splash image file is randomly picked up from this directory. # splash_changer_file (string): Defaults to "/boot/splash". # This is where the image file is copied to. -# . /etc/rc.subr name=change_splash -rcvar=`set_rcvar splash_changer` +rcvar=splash_changer_enable -start_cmd=${name}_start +load_rc_config $name : ${splash_changer_enable="NO"} : ${splash_changer_file="/boot/splash"} : ${splash_changer_dir="%%DATADIR%%"} +start_cmd=${name}_start + change_splash_start() { echo "Changing splash image." @@ -65,7 +66,4 @@ change_splash_start() debug "Boot splash image changed to $filename" } -load_rc_config $name run_rc_command "$1" - -# done diff --git a/sysutils/bsdstats/files/bsdstats.in b/sysutils/bsdstats/files/bsdstats.in index c598733..7a21b99 100644 --- a/sysutils/bsdstats/files/bsdstats.in +++ b/sysutils/bsdstats/files/bsdstats.in @@ -19,7 +19,7 @@ load_rc_config bsdstats name=bsdstats -rcvar=`set_rcvar` +rcvar=bsdstats_enable command=%%PREFIX%%/etc/periodic/monthly/300.statistics diff --git a/sysutils/cfengine/files/cfexecd.in b/sysutils/cfengine/files/cfexecd.in index 8a5dafb..0edae96 100644 --- a/sysutils/cfengine/files/cfexecd.in +++ b/sysutils/cfengine/files/cfexecd.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="cfexecd" -rcvar=${name}_enable +rcvar=cfexecd_enable command="%%PREFIX%%/sbin/${name}" diff --git a/sysutils/cfengine/files/cfservd.in b/sysutils/cfengine/files/cfservd.in index 75528ad..068c43a 100644 --- a/sysutils/cfengine/files/cfservd.in +++ b/sysutils/cfengine/files/cfservd.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="cfservd" -rcvar=${name}_enable +rcvar=cfservd_enable command="%%PREFIX%%/sbin/${name}" diff --git a/sysutils/cfengine3-legacy/files/cf-execd.in b/sysutils/cfengine3-legacy/files/cf-execd.in index 59803d5..1ee3310 100644 --- a/sysutils/cfengine3-legacy/files/cf-execd.in +++ b/sysutils/cfengine3-legacy/files/cf-execd.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="cf_execd" -rcvar=${name}_enable +rcvar=cf_execd_enable command="%%PREFIX%%/sbin/cf-execd" diff --git a/sysutils/cfengine3-legacy/files/cf-serverd.in b/sysutils/cfengine3-legacy/files/cf-serverd.in index 6f2ac49..9fbd07c 100644 --- a/sysutils/cfengine3-legacy/files/cf-serverd.in +++ b/sysutils/cfengine3-legacy/files/cf-serverd.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="cf_serverd" -rcvar=${name}_enable +rcvar=cf_serverd_enable command="%%PREFIX%%/sbin/cf-serverd" diff --git a/sysutils/cfengine3/files/cf-execd.in b/sysutils/cfengine3/files/cf-execd.in index 59803d5..1ee3310 100644 --- a/sysutils/cfengine3/files/cf-execd.in +++ b/sysutils/cfengine3/files/cf-execd.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="cf_execd" -rcvar=${name}_enable +rcvar=cf_execd_enable command="%%PREFIX%%/sbin/cf-execd" diff --git a/sysutils/cfengine3/files/cf-serverd.in b/sysutils/cfengine3/files/cf-serverd.in index 6f2ac49..9fbd07c 100644 --- a/sysutils/cfengine3/files/cf-serverd.in +++ b/sysutils/cfengine3/files/cf-serverd.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="cf_serverd" -rcvar=${name}_enable +rcvar=cf_serverd_enable command="%%PREFIX%%/sbin/cf-serverd" diff --git a/sysutils/cpupowerd/files/cpupowerd.in b/sysutils/cpupowerd/files/cpupowerd.in index a3f1c63..ad6ee3c 100644 --- a/sysutils/cpupowerd/files/cpupowerd.in +++ b/sysutils/cpupowerd/files/cpupowerd.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="cpupowerd" -rcvar=`set_rcvar` +rcvar=cpupowerd_enable command=%%PREFIX%%/sbin/${name} start_precmd="${name}_precmd" diff --git a/sysutils/daedalus/files/daedalus.sh b/sysutils/daedalus/files/daedalus.sh index 8dfc306..aa832f0 100644 --- a/sysutils/daedalus/files/daedalus.sh +++ b/sysutils/daedalus/files/daedalus.sh @@ -12,7 +12,7 @@ . /etc/rc.subr name="daedalus" -rcvar=`set_rcvar` +rcvar=daedalus_enable command="%%PREFIX%%/bin/daedalus.rb" pidfile="/var/run/daedalus.pid" diff --git a/sysutils/daemontools/files/svscan.in b/sysutils/daemontools/files/svscan.in index 8409479..b6c9476 100644 --- a/sysutils/daemontools/files/svscan.in +++ b/sysutils/daemontools/files/svscan.in @@ -61,7 +61,7 @@ . /etc/rc.subr name="svscan" -rcvar=`set_rcvar` +rcvar=svscan_enable command="%%PREFIX%%/bin/svscan" # diff --git a/sysutils/devcpu-data/files/microcode_update.in b/sysutils/devcpu-data/files/microcode_update.in index 80b02d3..d7d3c91 100644 --- a/sysutils/devcpu-data/files/microcode_update.in +++ b/sysutils/devcpu-data/files/microcode_update.in @@ -20,7 +20,7 @@ . /etc/rc.subr name="microcode_update" -rcvar=`set_rcvar` +rcvar=microcode_update_enable stop_cmd=":" start_precmd="microcode_update_prepare" start_cmd="microcode_update_start" diff --git a/sysutils/devcpu/files/devcpu.in b/sysutils/devcpu/files/devcpu.in index 957bf19..54af29b 100644 --- a/sysutils/devcpu/files/devcpu.in +++ b/sysutils/devcpu/files/devcpu.in @@ -20,7 +20,7 @@ . /etc/rc.subr name="devcpu" -rcvar=`set_rcvar` +rcvar=devcpu_enable stop_cmd=":" start_precmd="devcpu_prepare" start_cmd="devcpu_start" diff --git a/sysutils/diskcheckd/files/diskcheckd.in b/sysutils/diskcheckd/files/diskcheckd.in index a5f719b..847f9a0 100644 --- a/sysutils/diskcheckd/files/diskcheckd.in +++ b/sysutils/diskcheckd/files/diskcheckd.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="diskcheckd" -rcvar=`set_rcvar` +rcvar=diskcheckd_enable command=%%PREFIX%%/sbin/diskcheckd load_rc_config $name diff --git a/sysutils/diskprep/files/diskprep.in b/sysutils/diskprep/files/diskprep.in index d4419c0..c41d01e 100644 --- a/sysutils/diskprep/files/diskprep.in +++ b/sysutils/diskprep/files/diskprep.in @@ -1,6 +1,8 @@ #!/bin/sh # $Aero: util/diskprep/diskprep.rc,v 1.1 2005/08/06 00:50:59 brooks Exp $ +# $FreeBSD$ +# # PROVIDE: diskprep # REQUIRE: disks # BEFORE: fsck localswap @@ -9,7 +11,12 @@ . /etc/rc.subr name="diskprep" -rc_var=`set_rcvar` +rcvar=diskprep_enable + +load_rc_config $name + +# Needs default value for _enable ?? + start_precmd="diskprep_prestart" stop_cmd=":" command="/usr/local/sbin/diskprep" @@ -32,6 +39,4 @@ diskprep_prestart() command_args="$command_args $diskprep_disk" } -load_rc_config $name - run_rc_command "$1" diff --git a/sysutils/doinkd/files/doinkd.in b/sysutils/doinkd/files/doinkd.in index 6db9ed8..de35546 100644 --- a/sysutils/doinkd/files/doinkd.in +++ b/sysutils/doinkd/files/doinkd.in @@ -20,7 +20,7 @@ . /etc/rc.subr name=doinkd -rcvar=`set_rcvar` +rcvar=doinkd_enable command=%%PREFIX%%/sbin/doinkd required_files=%%PREFIX%%/etc/doinkd/doinkd.cf diff --git a/sysutils/downtimed/files/downtimed.in b/sysutils/downtimed/files/downtimed.in index 86fe06b..40097b3 100644 --- a/sysutils/downtimed/files/downtimed.in +++ b/sysutils/downtimed/files/downtimed.in @@ -23,7 +23,7 @@ . /etc/rc.subr name="downtimed" -rcvar=`set_rcvar` +rcvar=downtimed_enable command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/${name}.pid" diff --git a/sysutils/fcron/files/fcron.in b/sysutils/fcron/files/fcron.in index 1486226..0faf3935 100644 --- a/sysutils/fcron/files/fcron.in +++ b/sysutils/fcron/files/fcron.in @@ -11,7 +11,7 @@ . /etc/rc.subr name="fcron" -rcvar="`set_rcvar`" +rcvar=fcron_enable command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/${name}.pid" diff --git a/sysutils/freqsdwn/files/000.freqshpk.sh.in b/sysutils/freqsdwn/files/000.freqshpk.sh.in index e8475e8..157c96d 100644 --- a/sysutils/freqsdwn/files/000.freqshpk.sh.in +++ b/sysutils/freqsdwn/files/000.freqshpk.sh.in @@ -18,7 +18,7 @@ freqshpk_enable=${freqshpk_enable-"NO"} . /etc/rc.subr name=freqshpk -rcvar=`set_rcvar` +rcvar=freqshpk_enable command=%%PREFIX%%/sbin/freqshpk load_rc_config ${name} diff --git a/sysutils/freqsdwn/files/freqshpd.sh.in b/sysutils/freqsdwn/files/freqshpd.sh.in index c360a56..b3f44ba 100644 --- a/sysutils/freqsdwn/files/freqshpd.sh.in +++ b/sysutils/freqsdwn/files/freqshpd.sh.in @@ -18,7 +18,7 @@ freqshpd_enable=${freqshpd_enable-"NO"} . /etc/rc.subr name=freqshpd -rcvar=`set_rcvar` +rcvar=freqshpd_enable command=%%PREFIX%%/sbin/freqshpd load_rc_config ${name} diff --git a/sysutils/fusefs-kmod/files/fusefs.in b/sysutils/fusefs-kmod/files/fusefs.in index 1ac7ef6..420d87f 100644 --- a/sysutils/fusefs-kmod/files/fusefs.in +++ b/sysutils/fusefs-kmod/files/fusefs.in @@ -24,9 +24,10 @@ . /etc/rc.subr -kmod="%%PREFIX%%/modules/fuse.ko" name="fusefs" -rcvar=${name}_enable +rcvar=fusefs_enable + +kmod="%%PREFIX%%/modules/fuse.ko" start_cmd="fusefs_start" stop_cmd="fusefs_stop" diff --git a/sysutils/fvcool/files/fvcool.sh.in b/sysutils/fvcool/files/fvcool.sh.in index 2878bf8..8d4c0ca 100644 --- a/sysutils/fvcool/files/fvcool.sh.in +++ b/sysutils/fvcool/files/fvcool.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="%%PORTNAME%%" -rcvar=`set_rcvar` +rcvar=%%PORTNAME%%_enable command="%%PREFIX%%/sbin/%%PORTNAME%%" command_args="-e" diff --git a/sysutils/ganglia-monitor-core/files/gmetad.sh.in b/sysutils/ganglia-monitor-core/files/gmetad.sh.in index 28175f1..77f42fc 100644 --- a/sysutils/ganglia-monitor-core/files/gmetad.sh.in +++ b/sysutils/ganglia-monitor-core/files/gmetad.sh.in @@ -8,7 +8,7 @@ . /etc/rc.subr name=gmetad -rcvar=`set_rcvar` +rcvar=gmetad_enable command="%%PREFIX%%/sbin/${name}" start_precmd="gmetad_prestart" stop_postcmd="gmetad_poststop" diff --git a/sysutils/ganglia-monitor-core/files/gmond.sh.in b/sysutils/ganglia-monitor-core/files/gmond.sh.in index 95e78dd..a8f6dbe 100644 --- a/sysutils/ganglia-monitor-core/files/gmond.sh.in +++ b/sysutils/ganglia-monitor-core/files/gmond.sh.in @@ -10,7 +10,8 @@ bname=`basename $0` . /etc/rc.subr name=`echo "${bname}" | tr ".-" "__"` -rcvar=`set_rcvar` +rcvar=${name}_enable + command="%%PREFIX%%/sbin/gmond" load_rc_config ganglia diff --git a/sysutils/geomWatch/files/geomWatch.in b/sysutils/geomWatch/files/geomWatch.in index 275d358..58e93f4 100644 --- a/sysutils/geomWatch/files/geomWatch.in +++ b/sysutils/geomWatch/files/geomWatch.in @@ -19,7 +19,7 @@ geomwatch_pidfile="/var/run/geomWatch.pid" . /etc/rc.subr name="geomwatch" -rcvar=`set_rcvar` +rcvar=geomwatch_enable command="%%PREFIX%%/sbin/geomWatch" load_rc_config $name diff --git a/sysutils/gkrellm2/files/gkrellmd.sh.in b/sysutils/gkrellm2/files/gkrellmd.sh.in index 3ba458e..e588b2a 100644 --- a/sysutils/gkrellm2/files/gkrellmd.sh.in +++ b/sysutils/gkrellm2/files/gkrellmd.sh.in @@ -22,7 +22,7 @@ gkrellmd_flags=${gkrellmd_flags:-"-d"} # Flags to gkrellmd . /etc/rc.subr name="gkrellmd" -rcvar=`set_rcvar` +rcvar=gkrellmd_enable command="%%PREFIX%%/sbin/${name}" required_files="%%PREFIX%%/etc/${name}.conf" diff --git a/sysutils/hal/files/hald.in b/sysutils/hal/files/hald.in index 97dece8..0539fef 100644 --- a/sysutils/hal/files/hald.in +++ b/sysutils/hal/files/hald.in @@ -18,7 +18,7 @@ hald_enable=${hald_enable-${gnome_enable}} hald_flags=${hald_flags-""} name=hald -rcvar=`set_rcvar` +rcvar=hald_enable command="%%PREFIX%%/sbin/hald" pidfile="/var/run/${name}/${name}.pid" diff --git a/sysutils/healthd/files/healthd.in b/sysutils/healthd/files/healthd.in index 47a864d..7e5f3b8 100644 --- a/sysutils/healthd/files/healthd.in +++ b/sysutils/healthd/files/healthd.in @@ -22,7 +22,7 @@ . /etc/rc.subr name=healthd -rcvar=`set_rcvar` +rcvar=healthd_enable extra_commands="reload" command=%%PREFIX%%/sbin/healthd diff --git a/sysutils/heartbeat/files/heartbeat.in b/sysutils/heartbeat/files/heartbeat.in index 9d22727..980a2e8 100644 --- a/sysutils/heartbeat/files/heartbeat.in +++ b/sysutils/heartbeat/files/heartbeat.in @@ -24,7 +24,7 @@ SUBSYS=heartbeat RUNDIR=@localstatedir@/run name="heartbeat" -rcvar=`set_rcvar` +rcvar=heartbeat_enable load_rc_config $name : ${heartbeat_enable="NO"} diff --git a/sysutils/ipa/files/ipa.in b/sysutils/ipa/files/ipa.in index 2612c6a..619df73 100644 --- a/sysutils/ipa/files/ipa.in +++ b/sysutils/ipa/files/ipa.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="ipa" -rcvar=${name}_enable +rcvar=ipa_enable command="%%PREFIX%%/bin/ipa" extra_commands="reload" diff --git a/sysutils/istatd/files/istatd.in b/sysutils/istatd/files/istatd.in index 7dbe680..73b7be9 100644 --- a/sysutils/istatd/files/istatd.in +++ b/sysutils/istatd/files/istatd.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="istatd" -rcvar=${name}_enable +rcvar=istatd_enable command=%%PREFIX%%/bin/${name} diff --git a/sysutils/jailrc/files/jailrc.in b/sysutils/jailrc/files/jailrc.in index 06c7834..d97985f 100644 --- a/sysutils/jailrc/files/jailrc.in +++ b/sysutils/jailrc/files/jailrc.in @@ -11,7 +11,7 @@ . /etc/rc.subr name="jailrc" -rcvar=`set_rcvar` +rcvar=jailrc_enable start_precmd="jail_prestart" start_cmd="jail_start" diff --git a/sysutils/lcdproc/files/LCDd.in b/sysutils/lcdproc/files/LCDd.in index 40fd0e1..a6077b1 100644 --- a/sysutils/lcdproc/files/LCDd.in +++ b/sysutils/lcdproc/files/LCDd.in @@ -12,7 +12,7 @@ . /etc/rc.subr name="LCDd" -rcvar=${name}_enable +rcvar=LCDd_enable load_rc_config $name diff --git a/sysutils/lcdproc/files/lcdexec.in b/sysutils/lcdproc/files/lcdexec.in index 9b6a323..0764996 100644 --- a/sysutils/lcdproc/files/lcdexec.in +++ b/sysutils/lcdproc/files/lcdexec.in @@ -12,7 +12,7 @@ . /etc/rc.subr name="lcdexec" -rcvar=`set_rcvar` +rcvar=lcdexec_enable load_rc_config $name diff --git a/sysutils/lcdproc/files/lcdproc.in b/sysutils/lcdproc/files/lcdproc.in index b52fdf7..3874ef1 100644 --- a/sysutils/lcdproc/files/lcdproc.in +++ b/sysutils/lcdproc/files/lcdproc.in @@ -12,7 +12,7 @@ . /etc/rc.subr name="lcdproc" -rcvar=${name}_enable +rcvar=lcdproc_enable load_rc_config $name diff --git a/sysutils/lookupd/files/lookupd.in b/sysutils/lookupd/files/lookupd.in index e8ef5c4..7a987a1 100644 --- a/sysutils/lookupd/files/lookupd.in +++ b/sysutils/lookupd/files/lookupd.in @@ -18,7 +18,7 @@ . /etc/rc.subr name=lookupd -rcvar=`set_rcvar` +rcvar=lookupd_enable command=%%PREFIX%%/sbin/lookupd diff --git a/sysutils/mbmon/files/mbmon.sh.in b/sysutils/mbmon/files/mbmon.sh.in index 72e7f77..a06f601 100644 --- a/sysutils/mbmon/files/mbmon.sh.in +++ b/sysutils/mbmon/files/mbmon.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="mbmon" -rcvar=`set_rcvar` +rcvar=mbmon_enable # read configuration and set defaults load_rc_config "$name" diff --git a/sysutils/mcollective/files/mcollectived.in b/sysutils/mcollective/files/mcollectived.in index f3f72a4..057259d 100644 --- a/sysutils/mcollective/files/mcollectived.in +++ b/sysutils/mcollective/files/mcollectived.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="mcollectived" -rcvar="${name}_enable" +rcvar=mcollectived_enable load_rc_config "${name}" diff --git a/sysutils/metalog/files/metalog.in b/sysutils/metalog/files/metalog.in index 9cd840d..a1e72aa 100644 --- a/sysutils/metalog/files/metalog.in +++ b/sysutils/metalog/files/metalog.in @@ -10,7 +10,7 @@ . /etc/rc.subr name=metalog -rcvar=`set_rcvar` +rcvar=metalog_enable pidfile="/var/run/metalog.pid" command="%%PREFIX%%/sbin/${name}" command_args="--daemonize" diff --git a/sysutils/monit/files/monit.sh.in b/sysutils/monit/files/monit.sh.in index 4a6f55c..83ecd7c 100644 --- a/sysutils/monit/files/monit.sh.in +++ b/sysutils/monit/files/monit.sh.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="monit" -rcvar=`set_rcvar` +rcvar=monit_enable restart_precmd="monit_checkconfig" reload_precmd="monit_checkconfig" diff --git a/sysutils/monitord/files/monitord.in b/sysutils/monitord/files/monitord.in index 8c5033e..2f51d4d 100644 --- a/sysutils/monitord/files/monitord.in +++ b/sysutils/monitord/files/monitord.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="monitord" -rcvar=`set_rcvar` +rcvar=monitord_enable load_rc_config $name : ${monitord_enable="NO"} diff --git a/sysutils/monitorix/files/monitorix.in b/sysutils/monitorix/files/monitorix.in index 7db63f4..0b31715 100644 --- a/sysutils/monitorix/files/monitorix.in +++ b/sysutils/monitorix/files/monitorix.in @@ -12,7 +12,7 @@ monitorix_enable=${monitorix_enable:-"NO"} . /etc/rc.subr name="monitorix" -rcvar=`set_rcvar` +rcvar=monitorix_enable load_rc_config $name diff --git a/sysutils/moosefs-chunkserver/files/mfschunkserver.in b/sysutils/moosefs-chunkserver/files/mfschunkserver.in index d22ecde..c28d9f4 100644 --- a/sysutils/moosefs-chunkserver/files/mfschunkserver.in +++ b/sysutils/moosefs-chunkserver/files/mfschunkserver.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=mfschunkserver -rcvar=`set_rcvar` +rcvar=mfschunkserver_enable command=%%PREFIX%%/sbin/${name} diff --git a/sysutils/moosefs-master/files/mfscgiserv.in b/sysutils/moosefs-master/files/mfscgiserv.in index b5d5657..c447e35 100644 --- a/sysutils/moosefs-master/files/mfscgiserv.in +++ b/sysutils/moosefs-master/files/mfscgiserv.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=mfscgiserv -rcvar=`set_rcvar` +rcvar=mfscgiserv_enable command=%%PREFIX%%/sbin/mfscgiserv diff --git a/sysutils/moosefs-master/files/mfsmaster.in b/sysutils/moosefs-master/files/mfsmaster.in index 35f5e8dc..fd1f470 100644 --- a/sysutils/moosefs-master/files/mfsmaster.in +++ b/sysutils/moosefs-master/files/mfsmaster.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=mfsmaster -rcvar=`set_rcvar` +rcvar=mfsmaster_enable command=%%PREFIX%%/sbin/${name} diff --git a/sysutils/moosefs-master/files/mfsmetalogger.in b/sysutils/moosefs-master/files/mfsmetalogger.in index 9e6ff08..71607d7 100644 --- a/sysutils/moosefs-master/files/mfsmetalogger.in +++ b/sysutils/moosefs-master/files/mfsmetalogger.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="mfsmetalogger" -rcvar=${name}_enable +rcvar=mfsmetalogger_enable command=%%PREFIX%%/sbin/${name} #pidfile=/var/run/${name}.pid diff --git a/sysutils/msyslog/files/msyslogd.sh.in b/sysutils/msyslog/files/msyslogd.sh.in index 1cdd90a..49a4134 100644 --- a/sysutils/msyslog/files/msyslogd.sh.in +++ b/sysutils/msyslog/files/msyslogd.sh.in @@ -19,7 +19,7 @@ . /etc/rc.subr name=msyslogd -rcvar=`set_rcvar` +rcvar=msyslogd_enable command=%%PREFIX%%/sbin/syslogd pidfile=/var/run/syslog.pid diff --git a/sysutils/munin-node/files/munin-node-revive.sh.in b/sysutils/munin-node/files/munin-node-revive.sh.in index 4de3d93..5da4c06 100644 --- a/sysutils/munin-node/files/munin-node-revive.sh.in +++ b/sysutils/munin-node/files/munin-node-revive.sh.in @@ -10,7 +10,7 @@ . /etc/rc.subr name="munin_node" -rcvar=`set_rcvar` +rcvar=munin_node_enable [ -z "$munin_node_enable" ] && munin_node_enable="NO" [ -z "$munin_node_config" ] && munin_node_config="%%PREFIX%%/etc/munin/munin-node.conf" diff --git a/sysutils/munin-node/files/munin-node.in b/sysutils/munin-node/files/munin-node.in index c51862e..38f6bf4 100644 --- a/sysutils/munin-node/files/munin-node.in +++ b/sysutils/munin-node/files/munin-node.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="munin_node" -rcvar=`set_rcvar` +rcvar=munin_node_enable [ -z "$munin_node_enable" ] && munin_node_enable="NO" [ -z "$munin_node_config" ] && munin_node_config="%%PREFIX%%/etc/munin/munin-node.conf" diff --git a/sysutils/nagios-statd/files/nagiosstatd.sh.in b/sysutils/nagios-statd/files/nagiosstatd.sh.in index 0d1b57f..617f43d 100644 --- a/sysutils/nagios-statd/files/nagiosstatd.sh.in +++ b/sysutils/nagios-statd/files/nagiosstatd.sh.in @@ -1,36 +1,33 @@ #!/bin/sh +# $FreeBSD$ +# # PROVIDE: nagiosstatd # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: shutdown # -# -# # Add the following lines to /etc/rc.conf.local or /etc/rc.conf to enable nagiosstatd: # nagiosstatd_enable (bool): Set to "NO" by default. # Set it to "YES" to enable nagiosstatd # nagiosstatd_flags="<set as needed>" -nagiosstatd_enable=${nagiosstatd_enable-"NO"} -nagiosstatd_pidfile=${nagiosstatd_pidfile-"/var/run/nagiosstatd.pid"} - . /etc/rc.subr name="nagiosstatd" -#rcvar=`set_rcvar` -rcvar=${name}_enable +rcvar=nagiosstatd_enable -pidfile="${nagiosstatd_pidfile}" +load_rc_config $name +nagiosstatd_enable=${nagiosstatd_enable-"NO"} +nagiosstatd_pidfile=${nagiosstatd_pidfile-"/var/run/nagiosstatd.pid"} + +pidfile="${nagiosstatd_pidfile}" command=%%PREFIX%%/sbin/nagios-statd command_args="-P ${nagiosstatd_pidfile}" command_interpreter="python" -load_rc_config $name - start_precmd="export PATH=\"$PATH:/usr/local/bin\"" run_rc_command "$1" - diff --git a/sysutils/netdump-server/files/netdump-server.sh.in b/sysutils/netdump-server/files/netdump-server.sh.in index 4e4be03..d61938d 100644 --- a/sysutils/netdump-server/files/netdump-server.sh.in +++ b/sysutils/netdump-server/files/netdump-server.sh.in @@ -1,24 +1,25 @@ #!/bin/sh -# +# $FreeBSD$ +# # PROVIDE: netdump_server -# REQUIRE: -# BEFORE: +# REQUIRE: LOGIN # KEYWORD: shutdown - +# # Add the following line to /etc/rc.conf to enable mpd: # -#netdump_server_enable="YES" +# netdump_server_enable="YES" . /etc/rc.subr +name=netdump_server +rcvar=netdump_server_enable + load_rc_config netdump_server netdump_server_enable=${netdump_server_enable-"NO"} netdump_server_flags=${netdump_server_flags-"--daemon --secure 0"} -name=netdump_server -rcvar=`set_rcvar` command=%%PREFIX%%/bin/netdump-server pidfile=/var/run/netdump-server.pid start_cmd=start_cmd @@ -50,5 +51,4 @@ stop_cmd() fi } -load_rc_config $name run_rc_command "$1" diff --git a/sysutils/nut/files/nut.sh.in b/sysutils/nut/files/nut.sh.in index 1aa66a5..98ba639 100644 --- a/sysutils/nut/files/nut.sh.in +++ b/sysutils/nut/files/nut.sh.in @@ -21,7 +21,7 @@ nut_prefix=${nut_prefix-"%%PREFIX%%"} . /etc/rc.subr name="nut" -rcvar=`set_rcvar` +rcvar=nut_enable load_rc_config $name diff --git a/sysutils/nut/files/nut_upslog.sh.in b/sysutils/nut/files/nut_upslog.sh.in index 84b32b4..9bb361e 100644 --- a/sysutils/nut/files/nut_upslog.sh.in +++ b/sysutils/nut/files/nut_upslog.sh.in @@ -24,7 +24,7 @@ nut_upslog_ups=${nut_upslog_ups-"myups@localhost"} . /etc/rc.subr name="nut_upslog" -rcvar=`set_rcvar` +rcvar=nut_upslog_enable load_rc_config $name diff --git a/sysutils/nut/files/nut_upsmon.sh.in b/sysutils/nut/files/nut_upsmon.sh.in index e1836ac..6aee6a4 100644 --- a/sysutils/nut/files/nut_upsmon.sh.in +++ b/sysutils/nut/files/nut_upsmon.sh.in @@ -21,7 +21,7 @@ nut_upsmon_prefix=${nut_upsmon_prefix-"%%PREFIX%%"} . /etc/rc.subr name="nut_upsmon" -rcvar=`set_rcvar` +rcvar=nut_upsmon_enable load_rc_config $name diff --git a/sysutils/nut22/files/nut.sh.in b/sysutils/nut22/files/nut.sh.in index 8f6a85b..aaf33c5 100644 --- a/sysutils/nut22/files/nut.sh.in +++ b/sysutils/nut22/files/nut.sh.in @@ -21,7 +21,7 @@ nut_prefix=${nut_prefix-"%%PREFIX%%"} . /etc/rc.subr name="nut" -rcvar=`set_rcvar` +rcvar=nut_enable load_rc_config $name diff --git a/sysutils/nut22/files/nut_upslog.sh.in b/sysutils/nut22/files/nut_upslog.sh.in index 84b32b4..9bb361e 100644 --- a/sysutils/nut22/files/nut_upslog.sh.in +++ b/sysutils/nut22/files/nut_upslog.sh.in @@ -24,7 +24,7 @@ nut_upslog_ups=${nut_upslog_ups-"myups@localhost"} . /etc/rc.subr name="nut_upslog" -rcvar=`set_rcvar` +rcvar=nut_upslog_enable load_rc_config $name diff --git a/sysutils/nut22/files/nut_upsmon.sh.in b/sysutils/nut22/files/nut_upsmon.sh.in index c047ea2..2470e76 100644 --- a/sysutils/nut22/files/nut_upsmon.sh.in +++ b/sysutils/nut22/files/nut_upsmon.sh.in @@ -21,7 +21,7 @@ nut_upsmon_prefix=${nut_upsmon_prefix-"%%PREFIX%%"} . /etc/rc.subr name="nut_upsmon" -rcvar=`set_rcvar` +rcvar=nut_upsmon_enable load_rc_config $name diff --git a/sysutils/oak/files/oak.in b/sysutils/oak/files/oak.in index 8cbcef0..503728f 100644 --- a/sysutils/oak/files/oak.in +++ b/sysutils/oak/files/oak.in @@ -12,7 +12,7 @@ oak_enable="${oak_enable-NO}" . /etc/rc.subr name="oak" -rcvar=`set_rcvar` +rcvar=oak_enable command="%%PREFIX%%/bin/oak" load_rc_config $name diff --git a/sysutils/openupsd/files/openupsd.in b/sysutils/openupsd/files/openupsd.in index 73f616f..25fd28d 100644 --- a/sysutils/openupsd/files/openupsd.in +++ b/sysutils/openupsd/files/openupsd.in @@ -11,7 +11,7 @@ openupsd_enable=${openupsd_enable:-"NO"} . /etc/rc.subr name="openupsd" -rcvar=`set_rcvar` +rcvar=openupsd_enable pidfile=/var/run/${name}.pid required_files=%%PREFIX%%/etc/${name}.conf diff --git a/sysutils/p5-Tail-Stat/files/tstatd.in b/sysutils/p5-Tail-Stat/files/tstatd.in index 72ddd33..d627601 100644 --- a/sysutils/p5-Tail-Stat/files/tstatd.in +++ b/sysutils/p5-Tail-Stat/files/tstatd.in @@ -25,7 +25,7 @@ . /etc/rc.subr name="tstatd" -rcvar=${name}_enable +rcvar=tstatd_enable load_rc_config ${name} diff --git a/sysutils/pcfclock/files/pcfdate.in b/sysutils/pcfclock/files/pcfdate.in index 7a6db74..0d2f3ef 100644 --- a/sysutils/pcfclock/files/pcfdate.in +++ b/sysutils/pcfclock/files/pcfdate.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="pcfdate" -rcvar=${name}_enable +rcvar=pcfdate_enable load_rc_config $name diff --git a/sysutils/pfstat/files/pfstatd.in b/sysutils/pfstat/files/pfstatd.in index 3164373..46ec605 100644 --- a/sysutils/pfstat/files/pfstatd.in +++ b/sysutils/pfstat/files/pfstatd.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="pfstatd" -rcvar=`set_rcvar` +rcvar=pfstatd_enable command="%%PREFIX%%/bin/${name}" load_rc_config ${name} diff --git a/sysutils/powerman/files/powerman.sh.in b/sysutils/powerman/files/powerman.sh.in index 43ff4d3..a5e64a2 100644 --- a/sysutils/powerman/files/powerman.sh.in +++ b/sysutils/powerman/files/powerman.sh.in @@ -21,7 +21,7 @@ powermand_enable=${powermand_enable:-"NO"} . /etc/rc.subr name="powermand" -rcvar=`set_rcvar` +rcvar=powermand_enable command="%%PREFIX%%/sbin/powermand" required_files="%%PREFIX%%/etc/powerman.conf" diff --git a/sysutils/pprotectd/files/pprotectd.in b/sysutils/pprotectd/files/pprotectd.in index e59e33a..438a583 100644 --- a/sysutils/pprotectd/files/pprotectd.in +++ b/sysutils/pprotectd/files/pprotectd.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="pprotectd" -rcvar=`set_rcvar` +rcvar=pprotectd_enable load_rc_config "$name" diff --git a/sysutils/puppet/files/puppet.in b/sysutils/puppet/files/puppet.in index 7ffa33d..9d1cd48 100644 --- a/sysutils/puppet/files/puppet.in +++ b/sysutils/puppet/files/puppet.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="puppet" -rcvar=`set_rcvar` +rcvar=puppet_enable load_rc_config "$name" diff --git a/sysutils/puppet/files/puppetmaster.in b/sysutils/puppet/files/puppetmaster.in index 14dd12c..b525ed0 100644 --- a/sysutils/puppet/files/puppetmaster.in +++ b/sysutils/puppet/files/puppetmaster.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="puppetmaster" -rcvar=`set_rcvar` +rcvar=puppetmaster_enable load_rc_config "${name}" diff --git a/sysutils/py-bcfg2/files/bcfg2.in b/sysutils/py-bcfg2/files/bcfg2.in index 1236765..3dba6ca 100644 --- a/sysutils/py-bcfg2/files/bcfg2.in +++ b/sysutils/py-bcfg2/files/bcfg2.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="bcfg2" -rcvar=${name}_enable +rcvar=bcfg2_enable load_rc_config $name diff --git a/sysutils/py-supervisor/files/supervisord.in b/sysutils/py-supervisor/files/supervisord.in index df44104..e27a952 100644 --- a/sysutils/py-supervisor/files/supervisord.in +++ b/sysutils/py-supervisor/files/supervisord.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="supervisord" -rcvar=`set_rcvar` +rcvar=supervisord_enable command="%%PREFIX%%/bin/${name}" command_interpreter="%%PYTHON_CMD%%" diff --git a/sysutils/radmind/files/radmind.sh.in b/sysutils/radmind/files/radmind.sh.in index d0b0a3d..c0d8ff2 100644 --- a/sysutils/radmind/files/radmind.sh.in +++ b/sysutils/radmind/files/radmind.sh.in @@ -23,7 +23,7 @@ . /etc/rc.subr name=radmind -rcvar=`set_rcvar` +rcvar=radmind_enable command=%%PREFIX%%/sbin/radmind required_files=%%RADMIND_BASE_DIR%%/config diff --git a/sysutils/rsyncmanager/files/rsyncmanager.sh.in b/sysutils/rsyncmanager/files/rsyncmanager.sh.in index 56781e1..a00eafa 100644 --- a/sysutils/rsyncmanager/files/rsyncmanager.sh.in +++ b/sysutils/rsyncmanager/files/rsyncmanager.sh.in @@ -12,7 +12,7 @@ . /etc/rc.subr name="rsyncmanager" -rcvar=`set_rcvar` +rcvar=rsyncmanager_enable command="%%PREFIX%%/bin/rsyncmanager.rb" pidfile="/var/run/rsyncmanager.pid" diff --git a/sysutils/rsyslog4/files/rsyslogd.in b/sysutils/rsyslog4/files/rsyslogd.in index 6eb1c6d..6186aa1 100644 --- a/sysutils/rsyslog4/files/rsyslogd.in +++ b/sysutils/rsyslog4/files/rsyslogd.in @@ -1,21 +1,25 @@ #!/bin/sh -# + # $FreeBSD$ # - # PROVIDE: rsyslogd # REQUIRE: mountcritremote cleanvar newsyslog ldconfig # BEFORE: SERVERS +# KEYWORD: shutdown . /etc/rc.subr name=rsyslogd -rcvar=`set_rcvar` +rcvar=rsyslogd_enable + command="%%PREFIX%%/sbin/${name}" + load_rc_config $name + : ${rsyslogd_enable:="NO"} : ${rsyslogd_pidfile:="/var/run/rsyslogd.pid"} : ${rsyslogd_config:="%%PREFIX%%/etc/rsyslog.conf"} + pidfile="${rsyslogd_pidfile}" command_args="-i ${pidfile} -f ${rsyslogd_config}" required_files="${rsyslogd_config}" @@ -46,7 +50,7 @@ rsyslogd_precmd() # for _l in $altlog_proglist; do eval _ldir=\$${_l}_chrootdir - if checkyesno `set_rcvar $_l` && [ -n "$_ldir" ]; then + if checkyesno ${_l}_enable` && [ -n "$_ldir" ]; then echo "${_ldir}/var/run/log" >> $sockfile fi done diff --git a/sysutils/rsyslog5/files/rsyslogd.in b/sysutils/rsyslog5/files/rsyslogd.in index 7fd9b10..8730470 100644 --- a/sysutils/rsyslog5/files/rsyslogd.in +++ b/sysutils/rsyslog5/files/rsyslogd.in @@ -11,7 +11,7 @@ . /etc/rc.subr name=rsyslogd -rcvar=`set_rcvar` +rcvar=rsyslogd_enable command="%%PREFIX%%/sbin/${name}" load_rc_config $name : ${rsyslogd_enable:="NO"} diff --git a/sysutils/rsyslog6-devel/files/rsyslogd.in b/sysutils/rsyslog6-devel/files/rsyslogd.in index 7fd9b10..8730470 100644 --- a/sysutils/rsyslog6-devel/files/rsyslogd.in +++ b/sysutils/rsyslog6-devel/files/rsyslogd.in @@ -11,7 +11,7 @@ . /etc/rc.subr name=rsyslogd -rcvar=`set_rcvar` +rcvar=rsyslogd_enable command="%%PREFIX%%/sbin/${name}" load_rc_config $name : ${rsyslogd_enable:="NO"} diff --git a/sysutils/rubygem-chef/files/chef_client.in b/sysutils/rubygem-chef/files/chef_client.in index 924b666..fab7a1b 100644 --- a/sysutils/rubygem-chef/files/chef_client.in +++ b/sysutils/rubygem-chef/files/chef_client.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="chef_client" -rcvar=`set_rcvar` +rcvar=chef_client_enable # Read configuration and set defaults load_rc_config $name diff --git a/sysutils/runit/files/runsvdir.sh.in b/sysutils/runit/files/runsvdir.sh.in index 944706d..69e5e8e 100644 --- a/sysutils/runit/files/runsvdir.sh.in +++ b/sysutils/runit/files/runsvdir.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="runsvdir" -rcvar=`set_rcvar` +rcvar=runsvdir_enable command="%%PREFIX%%/sbin/runsvdir" diff --git a/sysutils/salt/files/salt_master.in b/sysutils/salt/files/salt_master.in index 77b124a..77d5971 100644 --- a/sysutils/salt/files/salt_master.in +++ b/sysutils/salt/files/salt_master.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="salt_master" -rcvar="${name}_enable" +rcvar=salt_master_enable load_rc_config ${name} diff --git a/sysutils/salt/files/salt_minion.in b/sysutils/salt/files/salt_minion.in index 340c6e7..5edb20a 100644 --- a/sysutils/salt/files/salt_minion.in +++ b/sysutils/salt/files/salt_minion.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="salt_minion" -rcvar="${name}_enable" +rcvar=salt_minion_enable load_rc_config ${name} diff --git a/sysutils/salt/files/salt_syndic.in b/sysutils/salt/files/salt_syndic.in index 9914780..a3a854b 100644 --- a/sysutils/salt/files/salt_syndic.in +++ b/sysutils/salt/files/salt_syndic.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="salt_syndic" -rcvar="${name}_enable" +rcvar=salt_syndic_enable load_rc_config ${name} diff --git a/sysutils/sec/files/sec.in b/sysutils/sec/files/sec.in index 5e51e53..2b61c4a 100644 --- a/sysutils/sec/files/sec.in +++ b/sysutils/sec/files/sec.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="sec" -rcvar=`set_rcvar` +rcvar=sec_enable command="%%PREFIX%%/bin/sec" command_args="-detach" diff --git a/sysutils/smartmontools/files/smartd.in b/sysutils/smartmontools/files/smartd.in index 4d4161b..b90c996 100644 --- a/sysutils/smartmontools/files/smartd.in +++ b/sysutils/smartmontools/files/smartd.in @@ -19,7 +19,7 @@ smartd_pidfile="/var/run/smartd.pid" . /etc/rc.subr name="smartd" -rcvar=`set_rcvar` +rcvar=smartd_enable command="%%PREFIX%%/sbin/smartd" load_rc_config $name diff --git a/sysutils/spiped/files/spiped.in b/sysutils/spiped/files/spiped.in index f3cfd26..49f301d 100644 --- a/sysutils/spiped/files/spiped.in +++ b/sysutils/spiped/files/spiped.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="spiped" -rcvar=${name}_enable +rcvar=spiped_enable load_rc_config $name diff --git a/sysutils/swapd/files/swapd.in b/sysutils/swapd/files/swapd.in index f5c2fa4..a71ec82 100644 --- a/sysutils/swapd/files/swapd.in +++ b/sysutils/swapd/files/swapd.in @@ -12,7 +12,7 @@ . /etc/rc.subr name=swapd -rcvar=`set_rcvar` +rcvar=swapd_enable command=%%PREFIX%%/sbin/swapd diff --git a/sysutils/swapexd/files/patch-rc.d__swapexd b/sysutils/swapexd/files/patch-rc.d__swapexd index 9d75535..4e3c9d8 100644 --- a/sysutils/swapexd/files/patch-rc.d__swapexd +++ b/sysutils/swapexd/files/patch-rc.d__swapexd @@ -10,7 +10,7 @@ -start_cmd="swapexd_start" - -load_rc_config $name -+rcvar=`set_rcvar` ++rcvar=swapexd_enable : ${swapexd_enable=NO} diff --git a/sysutils/swapmon/files/swapmon.in b/sysutils/swapmon/files/swapmon.in index 7d1da4b..6f63103 100644 --- a/sysutils/swapmon/files/swapmon.in +++ b/sysutils/swapmon/files/swapmon.in @@ -13,7 +13,7 @@ . /etc/rc.subr name=swapmon -rcvar=`set_rcvar` +rcvar=swapmon_enable command="%%PREFIX%%/sbin/${name}" command_interpreter="/bin/sh" diff --git a/sysutils/symon/files/symon.sh.in b/sysutils/symon/files/symon.sh.in index f63172b..e75de3e 100644 --- a/sysutils/symon/files/symon.sh.in +++ b/sysutils/symon/files/symon.sh.in @@ -7,7 +7,7 @@ . /etc/rc.subr name="symon" -rcvar=`set_rcvar` +rcvar=symon_enable command="%%PREFIX%%/bin/symon" symon_enable=${symon_enable:-"NO"} diff --git a/sysutils/symon/files/symux.sh.in b/sysutils/symon/files/symux.sh.in index 6cecd64..8b2788e 100644 --- a/sysutils/symon/files/symux.sh.in +++ b/sysutils/symon/files/symux.sh.in @@ -7,7 +7,7 @@ . /etc/rc.subr name="symux" -rcvar=`set_rcvar` +rcvar=symux_enable command="%%PREFIX%%/bin/symux" symux_enable=${symux_enable:-"NO"} diff --git a/sysutils/syslog-ng-devel/files/syslog-ng.sh.in b/sysutils/syslog-ng-devel/files/syslog-ng.sh.in index 1aa03e9..804bf6e 100644 --- a/sysutils/syslog-ng-devel/files/syslog-ng.sh.in +++ b/sysutils/syslog-ng-devel/files/syslog-ng.sh.in @@ -21,7 +21,7 @@ syslog_ng_purgeklog=${syslog_ng_purgeklog-"NO"} . /etc/rc.subr name=syslog_ng -rcvar=`set_rcvar` +rcvar=syslog_ng_enable command=%%PREFIX%%/sbin/syslog-ng required_files=%%PREFIX%%/etc/syslog-ng.conf diff --git a/sysutils/syslog-ng/files/syslog-ng.sh.in b/sysutils/syslog-ng/files/syslog-ng.sh.in index 1aa03e9..804bf6e 100644 --- a/sysutils/syslog-ng/files/syslog-ng.sh.in +++ b/sysutils/syslog-ng/files/syslog-ng.sh.in @@ -21,7 +21,7 @@ syslog_ng_purgeklog=${syslog_ng_purgeklog-"NO"} . /etc/rc.subr name=syslog_ng -rcvar=`set_rcvar` +rcvar=syslog_ng_enable command=%%PREFIX%%/sbin/syslog-ng required_files=%%PREFIX%%/etc/syslog-ng.conf diff --git a/sysutils/syslog-ng2/files/syslog-ng.sh.in b/sysutils/syslog-ng2/files/syslog-ng.sh.in index 1aa03e9..804bf6e 100644 --- a/sysutils/syslog-ng2/files/syslog-ng.sh.in +++ b/sysutils/syslog-ng2/files/syslog-ng.sh.in @@ -21,7 +21,7 @@ syslog_ng_purgeklog=${syslog_ng_purgeklog-"NO"} . /etc/rc.subr name=syslog_ng -rcvar=`set_rcvar` +rcvar=syslog_ng_enable command=%%PREFIX%%/sbin/syslog-ng required_files=%%PREFIX%%/etc/syslog-ng.conf diff --git a/sysutils/tenshi/files/tenshi.sh.in b/sysutils/tenshi/files/tenshi.sh.in index 821f4a9..65044ae 100644 --- a/sysutils/tenshi/files/tenshi.sh.in +++ b/sysutils/tenshi/files/tenshi.sh.in @@ -1,21 +1,23 @@ #!/bin/sh -# + # $FreeBSD$ # - # PROVIDE: tenshi # REQUIRE: LOGIN # KEYWORD: shutdown - -# Add the following lines to /etc/rc.conf to enable `tenshi': # -#tenshi_enable="YES" +# Add the following lines to /etc/rc.conf to enable `tenshi': # +# tenshi_enable="YES" . /etc/rc.subr name='tenshi' -rcvar=`set_rcvar` +rcvar=tenshi_enable + +load_rc_config "$name" + +tenshi_enable="${tenshi_enable:-NO}" extra_commands='reload' @@ -26,9 +28,4 @@ pidfile='/var/run/tenshi.pid' required_files='%%PREFIX%%/etc/tenshi.conf' -# set defaults - -tenshi_enable="${tenshi_enable:-NO}" - -load_rc_config "$name" run_rc_command "$1" diff --git a/sysutils/torque/files/pbs_mom.sh.in b/sysutils/torque/files/pbs_mom.sh.in index 54ce272..07359e1 100644 --- a/sysutils/torque/files/pbs_mom.sh.in +++ b/sysutils/torque/files/pbs_mom.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="pbs_mom" -rcvar=${name}_enable +rcvar=pbs_mom_enable pidfile=/var/spool/torque/mom_priv/mom.lock command=%%PREFIX%%/sbin/${name} diff --git a/sysutils/torque/files/pbs_sched.sh.in b/sysutils/torque/files/pbs_sched.sh.in index 817d8a3..86df72f 100644 --- a/sysutils/torque/files/pbs_sched.sh.in +++ b/sysutils/torque/files/pbs_sched.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="pbs_sched" -rcvar=${name}_enable +rcvar=pbs_sched_enable pidfile=/var/spool/torque/sched_priv/sched.lock command=%%PREFIX%%/sbin/${name} diff --git a/sysutils/torque/files/pbs_server.sh.in b/sysutils/torque/files/pbs_server.sh.in index be367c7..1a63925 100644 --- a/sysutils/torque/files/pbs_server.sh.in +++ b/sysutils/torque/files/pbs_server.sh.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="pbs_server" -rcvar=${name}_enable +rcvar=pbs_server_enable pidfile=/var/spool/torque/server_priv/server.lock command=%%PREFIX%%/sbin/${name} diff --git a/sysutils/uhidd/files/uhidd.in b/sysutils/uhidd/files/uhidd.in index f478310..ed478a8 100644 --- a/sysutils/uhidd/files/uhidd.in +++ b/sysutils/uhidd/files/uhidd.in @@ -16,7 +16,7 @@ # uhidd stop # stop all uhidd instances. name="uhidd" -rcvar=`set_rcvar` +rcvar=uhidd_enable command="%%PREFIX%%/sbin/${name}" start_cmd="uhidd_start" required_modules="uvhid vkbd" diff --git a/sysutils/upsdaemon/files/upsdaemon.in b/sysutils/upsdaemon/files/upsdaemon.in index 19a1d89..cfbae08 100644 --- a/sysutils/upsdaemon/files/upsdaemon.in +++ b/sysutils/upsdaemon/files/upsdaemon.in @@ -38,7 +38,7 @@ . /etc/rc.subr name=upsdaemon -rcvar=`set_rcvar` +rcvar=upsdaemon_enable command=/usr/local/sbin/upsdaemon diff --git a/sysutils/uptimed/files/uptimed.in b/sysutils/uptimed/files/uptimed.in index 331e70a..b6650db 100644 --- a/sysutils/uptimed/files/uptimed.in +++ b/sysutils/uptimed/files/uptimed.in @@ -12,7 +12,7 @@ . /etc/rc.subr name="uptimed" -rcvar=`set_rcvar` +rcvar=uptimed_enable command=%%PREFIX%%/sbin/${name} stop_postcmd="uptimed_poststop" diff --git a/sysutils/usermin/files/usermin.sh.in b/sysutils/usermin/files/usermin.sh.in index b1a8dca..54c8aeb 100644 --- a/sysutils/usermin/files/usermin.sh.in +++ b/sysutils/usermin/files/usermin.sh.in @@ -15,7 +15,7 @@ usermin_enable=${usermin_enable:-"NO"} . /etc/rc.subr name=usermin -rcvar=`set_rcvar` +rcvar=usermin_enable procname=%%PERL5%% pidfile=/var/log/usermin/miniserv.pid diff --git a/sysutils/volman/files/volmand.in b/sysutils/volman/files/volmand.in index 149b470..400c8bd 100644 --- a/sysutils/volman/files/volmand.in +++ b/sysutils/volman/files/volmand.in @@ -9,7 +9,7 @@ . /etc/rc.subr name="volmand" -rcvar=`set_rcvar` +rcvar=volmand_enable load_rc_config $name diff --git a/sysutils/watchfolder/files/watchd.in b/sysutils/watchfolder/files/watchd.in index 3d3486c..042452c 100644 --- a/sysutils/watchfolder/files/watchd.in +++ b/sysutils/watchfolder/files/watchd.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="watchd" -rcvar=${name}_enable +rcvar=watchd_enable load_rc_config $name diff --git a/sysutils/webmin/files/webmin.sh.in b/sysutils/webmin/files/webmin.sh.in index f03acd0..8bc3986 100644 --- a/sysutils/webmin/files/webmin.sh.in +++ b/sysutils/webmin/files/webmin.sh.in @@ -15,7 +15,7 @@ webmin_enable=${webmin_enable:-"NO"} . /etc/rc.subr name=webmin -rcvar=`set_rcvar` +rcvar=webmin_enable procname=%%PERL5%% pidfile=/var/log/webmin/miniserv.pid diff --git a/sysutils/xsi/files/xsi.in b/sysutils/xsi/files/xsi.in index e615c95..81db855 100644 --- a/sysutils/xsi/files/xsi.in +++ b/sysutils/xsi/files/xsi.in @@ -17,7 +17,7 @@ xsi_enable=${xsi_enable-"NO"} . /etc/rc.subr name=xsi -rcvar=`set_rcvar` +rcvar=xsi_enable command=%%PREFIX%%/bin/${name} load_rc_config ${name} diff --git a/textproc/pootle/files/pootle.sh.in b/textproc/pootle/files/pootle.sh.in index 14bbdd8..415fc50 100644 --- a/textproc/pootle/files/pootle.sh.in +++ b/textproc/pootle/files/pootle.sh.in @@ -21,7 +21,7 @@ . /etc/rc.subr name=pootle -rcvar=${name}_enable +rcvar=pootle_enable pidfile="%%POOTLERUNDIR%%/pootle.pid" command_interpreter="%%PYTHON_CMD%%" diff --git a/textproc/sphinxsearch-devel/files/sphinxsearch.sh.in b/textproc/sphinxsearch-devel/files/sphinxsearch.sh.in index 3fe9402..877267a 100644 --- a/textproc/sphinxsearch-devel/files/sphinxsearch.sh.in +++ b/textproc/sphinxsearch-devel/files/sphinxsearch.sh.in @@ -31,7 +31,7 @@ . /etc/rc.subr name=%%PORTNAME%% -rcvar=`set_rcvar` +rcvar=%%PORTNAME%%_enable load_rc_config ${name} diff --git a/textproc/sphinxsearch/files/sphinxsearch.sh.in b/textproc/sphinxsearch/files/sphinxsearch.sh.in index 838692f..15347f8 100644 --- a/textproc/sphinxsearch/files/sphinxsearch.sh.in +++ b/textproc/sphinxsearch/files/sphinxsearch.sh.in @@ -31,7 +31,7 @@ . /etc/rc.subr name=%%PORTNAME%% -rcvar=`set_rcvar` +rcvar=%%PORTNAME%%_enable load_rc_config ${name} diff --git a/textproc/xaira/files/xaira-server.in b/textproc/xaira/files/xaira-server.in index 33ff174..7848a76 100644 --- a/textproc/xaira/files/xaira-server.in +++ b/textproc/xaira/files/xaira-server.in @@ -10,7 +10,7 @@ . /etc/rc.subr name="xaira" -rcvar=`set_rcvar` +rcvar=xaira_enable command=%%PREFIX%%/sbin/xaira_daemon diff --git a/www/abyssws/files/abyssws.sh.in b/www/abyssws/files/abyssws.sh.in index c2fffe9..58b2ee5 100644 --- a/www/abyssws/files/abyssws.sh.in +++ b/www/abyssws/files/abyssws.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=abyssws -rcvar=${name}_enable +rcvar=abyssws_enable command="%%PREFIX%%/lib/abyssws/abyssws" command_args="-d >/dev/null" diff --git a/www/amphetadesk/files/amphetadesk.in b/www/amphetadesk/files/amphetadesk.in index af525de..2885abe 100644 --- a/www/amphetadesk/files/amphetadesk.in +++ b/www/amphetadesk/files/amphetadesk.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="amphetadesk" -rcvar=`set_rcvar` +rcvar=amphetadesk_enable command="%%PREFIX%%/bin/AmphetaDesk" procname="%%PERL%%" diff --git a/www/anyterm/files/anytermd.in b/www/anyterm/files/anytermd.in index 127cdd1..67ca34e 100644 --- a/www/anyterm/files/anytermd.in +++ b/www/anyterm/files/anytermd.in @@ -22,7 +22,7 @@ . /etc/rc.subr name=anytermd -rcvar=`set_rcvar` +rcvar=anytermd_enable load_rc_config $name diff --git a/www/aolserver/files/aolserver.in b/www/aolserver/files/aolserver.in index 467e100..408b336 100644 --- a/www/aolserver/files/aolserver.in +++ b/www/aolserver/files/aolserver.in @@ -1,8 +1,10 @@ #! /bin/sh -# + +# $FreeBSD$ # # PROVIDE: aolserver # REQUIRE: DAEMON NETWORKING SERVERS +# KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable aolserver: # @@ -13,8 +15,10 @@ . /etc/rc.subr name=aolserver +rcvar=aolserver_enable load_rc_config ${name} + : ${aolserver_enable="NO"} : ${aolserver_user="%%AOLSERVERUSER%%"} : ${aolserver_group="%%AOLSERVERGROUP%%"} @@ -24,7 +28,6 @@ load_rc_config ${name} : ${aolserver_prog=${aolserver_home}/bin/nsd} : ${aolserver_pidfile=/var/run/aolserver.pid} -rcvar=`set_rcvar` pidfile=${aolserver_pidfile} start_postcmd="start_postcmd" stop_postcmd="stop_postcmd" diff --git a/www/apache20/files/apache2.in b/www/apache20/files/apache2.in index 0b767a7..d630946 100644 --- a/www/apache20/files/apache2.in +++ b/www/apache20/files/apache2.in @@ -27,7 +27,7 @@ . /etc/rc.subr name="apache2" -rcvar=`set_rcvar` +rcvar=apache2_enable start_precmd="apache2_precmd" restart_precmd="apache2_checkconfig" diff --git a/www/apache22/files/apache22.in b/www/apache22/files/apache22.in index a324238..0c9b5f1 100644 --- a/www/apache22/files/apache22.in +++ b/www/apache22/files/apache22.in @@ -28,7 +28,7 @@ . /etc/rc.subr name="apache22" -rcvar=`set_rcvar` +rcvar=apache22_enable start_precmd="apache22_prestart" restart_precmd="apache22_checkconfig" diff --git a/www/apache22/files/htcacheclean.in b/www/apache22/files/htcacheclean.in index b86bdd2..656f753 100644 --- a/www/apache22/files/htcacheclean.in +++ b/www/apache22/files/htcacheclean.in @@ -1,10 +1,8 @@ #!/bin/sh -# -# -# +# $FreeBSD$ +# # PROVIDE: htcacheclean - # # Configuration settings for htcacheclean in /etc/rc.conf # @@ -33,20 +31,20 @@ . /etc/rc.subr +name="htcacheclean" +rcvar=htcacheclean_enable + +load_rc_config "${name}" + htcacheclean_enable="${htcacheclean_enable:-"NO"}" htcacheclean_cache="${htcacheclean_cache:-"%%PREFIX%%/www/proxy"}" htcacheclean_cachelimit="${htcacheclean_cachelimit:-"512M"}" htcacheclean_interval="${htcacheclean_interval:-"60"}" htcacheclean_args="${htcacheclean_args:-"-t -n -i"}" - -name="htcacheclean" -rcvar=`set_rcvar` - start_precmd="htc_check" restart_precmd="htc_check" restart_reload="htc_check" -load_rc_config "${name}" command="%%PREFIX%%/sbin/htcacheclean" flags="-p${htcacheclean_cache} -d${htcacheclean_interval} -l${htcacheclean_cachelimit} ${htcacheclean_args}" diff --git a/www/bigbluebutton/files/openoffice.in b/www/bigbluebutton/files/openoffice.in index 1bec332..fc259c0 100644 --- a/www/bigbluebutton/files/openoffice.in +++ b/www/bigbluebutton/files/openoffice.in @@ -28,7 +28,7 @@ . /etc/rc.subr name="openoffice" -rcvar=${name}_enable +rcvar=openoffice_enable load_rc_config $name : ${openoffice_enable:=NO} diff --git a/www/bozohttpd/files/bozohttpd.in b/www/bozohttpd/files/bozohttpd.in index de64102..40ef97d 100644 --- a/www/bozohttpd/files/bozohttpd.in +++ b/www/bozohttpd/files/bozohttpd.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="bozohttpd" -rcvar=`set_rcvar` +rcvar=bozohttpd_enable load_rc_config $name diff --git a/www/c-icap/files/c_icap.in b/www/c-icap/files/c_icap.in index 45ee2ec..0628f4f 100644 --- a/www/c-icap/files/c_icap.in +++ b/www/c-icap/files/c_icap.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="c_icap" -rcvar=`set_rcvar` +rcvar=c_icap_enable command="%%PREFIX%%/bin/c-icap" pidfile="%%RUN_DIR%%/c-icap.pid" diff --git a/www/cacheboy15-devel/files/squid.in b/www/cacheboy15-devel/files/squid.in index 04b472e..8a23131 100644 --- a/www/cacheboy15-devel/files/squid.in +++ b/www/cacheboy15-devel/files/squid.in @@ -27,7 +27,7 @@ squid_stop() { . /etc/rc.subr name=squid -rcvar=${name}_enable +rcvar=squid_enable command=%%PREFIX%%/sbin/squid extra_commands=reload diff --git a/www/cacheboy16/files/squid.in b/www/cacheboy16/files/squid.in index 04b472e..8a23131 100644 --- a/www/cacheboy16/files/squid.in +++ b/www/cacheboy16/files/squid.in @@ -27,7 +27,7 @@ squid_stop() { . /etc/rc.subr name=squid -rcvar=${name}_enable +rcvar=squid_enable command=%%PREFIX%%/sbin/squid extra_commands=reload diff --git a/www/cblog/files/cblog.in b/www/cblog/files/cblog.in index 7b05c4a..94accfc 100644 --- a/www/cblog/files/cblog.in +++ b/www/cblog/files/cblog.in @@ -41,7 +41,7 @@ cblog_precmd() { . /etc/rc.subr name="cblog" -rcvar=`set_rcvar` +rcvar=cblog_enable command="%%PREFIX%%/libexec/cblog.fcgi" start_precmd="cblog_precmd" diff --git a/www/cherokee/files/cherokee.sh.in b/www/cherokee/files/cherokee.sh.in index 706575d..04973fc 100644 --- a/www/cherokee/files/cherokee.sh.in +++ b/www/cherokee/files/cherokee.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="cherokee" -rcvar=`set_rcvar` +rcvar=cherokee_enable load_rc_config $name diff --git a/www/cntlm/files/cntlm.in b/www/cntlm/files/cntlm.in index 6dc19f6..5e0f19c 100644 --- a/www/cntlm/files/cntlm.in +++ b/www/cntlm/files/cntlm.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="cntlm" -rcvar=${name}_enable +rcvar=cntlm_enable load_rc_config $name diff --git a/www/cocoon/files/cocoon.sh.in b/www/cocoon/files/cocoon.sh.in index 4e2c834..7e292e0 100644 --- a/www/cocoon/files/cocoon.sh.in +++ b/www/cocoon/files/cocoon.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=%%APP_NAME%% -rcvar=`set_rcvar` +rcvar=%%APP_NAME%%_enable command="%%PREFIX%%/sbin/%%APP_NAME%%ctl" command_args="start" diff --git a/www/dansguardian-devel/files/dansguardian.in b/www/dansguardian-devel/files/dansguardian.in index d4c7c8b..857a5b2 100644 --- a/www/dansguardian-devel/files/dansguardian.in +++ b/www/dansguardian-devel/files/dansguardian.in @@ -21,7 +21,7 @@ dansguardian_pidfile=${dansguardian_pidfile:-"/var/run/dansguardian.pid"} . /etc/rc.subr name="dansguardian" -rcvar=${name}_enable +rcvar=dansguardian_enable command="%%PREFIX%%/sbin/${name}" load_rc_config $name diff --git a/www/dansguardian/files/dansguardian.in b/www/dansguardian/files/dansguardian.in index d4c7c8b..857a5b2 100644 --- a/www/dansguardian/files/dansguardian.in +++ b/www/dansguardian/files/dansguardian.in @@ -21,7 +21,7 @@ dansguardian_pidfile=${dansguardian_pidfile:-"/var/run/dansguardian.pid"} . /etc/rc.subr name="dansguardian" -rcvar=${name}_enable +rcvar=dansguardian_enable command="%%PREFIX%%/sbin/${name}" load_rc_config $name diff --git a/www/dhttpd/files/dhttpd.sh.in b/www/dhttpd/files/dhttpd.sh.in index 4fd034e..d633d6f 100644 --- a/www/dhttpd/files/dhttpd.sh.in +++ b/www/dhttpd/files/dhttpd.sh.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="dhttpd" -rcvar=`set_rcvar` +rcvar=dhttpd_enable load_rc_config $name diff --git a/www/elog/files/elogd.in b/www/elog/files/elogd.in index 76884c7..c01b45c 100644 --- a/www/elog/files/elogd.in +++ b/www/elog/files/elogd.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="elogd" -rcvar=${name}_enable +rcvar=elogd_enable command=%%PREFIX%%/sbin/${name} pidfile=/var/run/${name}.pid diff --git a/www/fcgiwrap/files/fcgiwrap.in b/www/fcgiwrap/files/fcgiwrap.in index f3d9fb1..cbbe791 100644 --- a/www/fcgiwrap/files/fcgiwrap.in +++ b/www/fcgiwrap/files/fcgiwrap.in @@ -7,7 +7,6 @@ # PROVIDE: fcgiwrap # REQUIRE: LOGIN # KEYWORD: shutdown - # # Add the following to /etc/rc.conf[.local] to enable this service # @@ -22,6 +21,11 @@ # fcgiwrap_flags= # Use fcgiwrap_user to run fcgiwrap as user +. /etc/rc.subr + +name="fcgiwrap" +rcvar=fcgiwrap_enable + fcgiwrap_setfib() { sysctl net.fibs >/dev/null 2>&1 || return 0 @@ -49,11 +53,7 @@ fcgiwrap_cleansocket() { rm -f $pidfile } -. /etc/rc.subr - pidfile="/var/run/fcgiwrap/fcgiwrap.pid" -name="fcgiwrap" -rcvar=`set_rcvar` procname="%%PREFIX%%/sbin/${name}" command="/usr/sbin/daemon" diff --git a/www/gatling/files/gatling.in b/www/gatling/files/gatling.in index 48609e1..3e28cbb 100644 --- a/www/gatling/files/gatling.in +++ b/www/gatling/files/gatling.in @@ -27,7 +27,7 @@ check_user() { . /etc/rc.subr name=gatling -rcvar=`set_rcvar` +rcvar=gatling_enable load_rc_config ${name} diff --git a/www/geronimo/files/geronimo2.sh.in b/www/geronimo/files/geronimo2.sh.in index 29d1ffe..32f32f7 100644 --- a/www/geronimo/files/geronimo2.sh.in +++ b/www/geronimo/files/geronimo2.sh.in @@ -65,7 +65,7 @@ geronimo%%GERONIMO_VERSION%%_stop_timeout="${geronimo%%GERONIMO_VERSION%%_stop_t . /etc/rc.subr name="geronimo%%GERONIMO_VERSION%%" -rcvar=`set_rcvar` +rcvar=geronimo%%GERONIMO_VERSION%%_enable pidfile="%%PID_FILE%%" JAVA_HOME=%%JAVA_HOME%% diff --git a/www/havp/files/havp.in b/www/havp/files/havp.in index 02510cf..d475780 100644 --- a/www/havp/files/havp.in +++ b/www/havp/files/havp.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="havp" -rcvar=`set_rcvar` +rcvar=havp_enable command="%%PREFIX%%/sbin/$name" pidfile="%%RUN_DIR%%/${name}.pid" diff --git a/www/helma/files/helma.in b/www/helma/files/helma.in index bb1d521..b083804 100644 --- a/www/helma/files/helma.in +++ b/www/helma/files/helma.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="helma" -rcvar=`set_rcvar` +rcvar=helma_enable pidfile="/var/run/${name}.pid" load_rc_config $name diff --git a/www/hiawatha/files/hiawatha.in b/www/hiawatha/files/hiawatha.in index f489195..c8d5f56 100644 --- a/www/hiawatha/files/hiawatha.in +++ b/www/hiawatha/files/hiawatha.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="hiawatha" -rcvar=`set_rcvar` +rcvar=hiawatha_enable load_rc_config $name diff --git a/www/hiawatha/files/php-fcgi.in b/www/hiawatha/files/php-fcgi.in index 5207d24..2e12f94 100644 --- a/www/hiawatha/files/php-fcgi.in +++ b/www/hiawatha/files/php-fcgi.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="php_fcgi" -rcvar=`set_rcvar` +rcvar=php_fcgi_enable load_rc_config $name diff --git a/www/httptunnel/files/htc.in b/www/httptunnel/files/htc.in index bfd0a1a..0311709 100644 --- a/www/httptunnel/files/htc.in +++ b/www/httptunnel/files/htc.in @@ -26,7 +26,7 @@ . /etc/rc.subr name="htc" -rcvar=${name}_enable +rcvar=htc_enable command=%%PREFIX%%/bin/${name} diff --git a/www/httptunnel/files/hts.in b/www/httptunnel/files/hts.in index 2ccae46..00959c3 100644 --- a/www/httptunnel/files/hts.in +++ b/www/httptunnel/files/hts.in @@ -20,7 +20,7 @@ . /etc/rc.subr name="hts" -rcvar=${name}_enable +rcvar=hts_enable command=%%PREFIX%%/bin/${name} diff --git a/www/hudson/files/hudson.sh.in b/www/hudson/files/hudson.sh.in index 67e3d2b..c67bd37 100644 --- a/www/hudson/files/hudson.sh.in +++ b/www/hudson/files/hudson.sh.in @@ -44,7 +44,7 @@ hudson_log_file=/var/log/hudson.log . /etc/rc.subr name="hudson" -rcvar=`set_rcvar` +rcvar=hudson_enable load_rc_config "${name}" diff --git a/www/hydra/files/hydra.sh.in b/www/hydra/files/hydra.sh.in index d458058..08c2f90 100644 --- a/www/hydra/files/hydra.sh.in +++ b/www/hydra/files/hydra.sh.in @@ -14,7 +14,7 @@ hydra_enable=${hydra_enable-"NO"} load_rc_config hydra name=hydra -rcvar=`set_rcvar` +rcvar=hydra_enable command=%%PREFIX%%/bin/${name} diff --git a/www/interchange/files/interchange.sh.in b/www/interchange/files/interchange.sh.in index 070c83c..8ee4fed 100644 --- a/www/interchange/files/interchange.sh.in +++ b/www/interchange/files/interchange.sh.in @@ -21,7 +21,7 @@ . /etc/rc.subr name="interchange" -rcvar=`set_rcvar` +rcvar=interchange_enable interchange_enable=${interchange_enable:-"NO"} interchange_config=${interchange_config:-"%%PREFIX%%/interchange/interchange.cfg"} diff --git a/www/jetty/files/jetty.in b/www/jetty/files/jetty.in index fcbb914..549022a 100644 --- a/www/jetty/files/jetty.in +++ b/www/jetty/files/jetty.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=%%APP_NAME%% -rcvar=`set_rcvar` +rcvar=%%APP_NAME%%_enable command="%%PREFIX%%/sbin/%%APP_NAME%%ctl" command_args="start" diff --git a/www/kannel/files/kannel.in b/www/kannel/files/kannel.in index 8c3c2fe..55eb348 100644 --- a/www/kannel/files/kannel.in +++ b/www/kannel/files/kannel.in @@ -1,4 +1,7 @@ #!/bin/sh + +# $FreeBSD$ +# # PROVIDE: kannel_smsbox kannel_wapbox kannel_bearerbox # REQUIRE: NETWORKING SERVERS # BEFORE: LOGIN @@ -7,7 +10,8 @@ . /etc/rc.subr name=kannel -rcvar=`set_rcvar` +rcvar=kannel_enable + command="%%PREFIX%%/sbin/run_kannel_box" extra_commands="reload" sig_reload=SIGUSR1 @@ -33,7 +37,7 @@ fi # bearerbox name=kannel_bearerbox -rcvar=`set_rcvar` +rcvar=kannel_bearerbox_enable pidfile=/var/run/kannel/${name}.pid # Defaults kannel_bearerbox_user=${kannel_bearerbox_user:-"${kannel_user}"} @@ -48,7 +52,7 @@ _rc_restart_done=false # smsbox name=kannel_smsbox -rcvar=`set_rcvar` +rcvar=kannel_smsbox_enable pidfile=/var/run/kannel/${name}.pid # Defaults kannel_smsbox_user=${kannel_smsbox_user:-"${kannel_user}"} @@ -63,7 +67,7 @@ _rc_restart_done=false # wapbox name=kannel_wapbox -rcvar=`set_rcvar` +rcvar=kannel_wapbox_enable pidfile=/var/run/kannel/${name}.pid # Defaults kannel_wapbox_user=${kannel_wapbox_user:-"${kannel_user}"} diff --git a/www/lighttpd/files/lighttpd.sh.in b/www/lighttpd/files/lighttpd.sh.in index 193c0c9..aa86640 100644 --- a/www/lighttpd/files/lighttpd.sh.in +++ b/www/lighttpd/files/lighttpd.sh.in @@ -29,7 +29,7 @@ . /etc/rc.subr name="lighttpd" -rcvar=`set_rcvar` +rcvar=lighttpd_enable load_rc_config $name diff --git a/www/lusca-head/files/squid.in b/www/lusca-head/files/squid.in index 04b472e..8a23131 100644 --- a/www/lusca-head/files/squid.in +++ b/www/lusca-head/files/squid.in @@ -27,7 +27,7 @@ squid_stop() { . /etc/rc.subr name=squid -rcvar=${name}_enable +rcvar=squid_enable command=%%PREFIX%%/sbin/squid extra_commands=reload diff --git a/www/mohawk/files/mohawk.in b/www/mohawk/files/mohawk.in index 01ce79c..81e50de 100644 --- a/www/mohawk/files/mohawk.in +++ b/www/mohawk/files/mohawk.in @@ -14,7 +14,7 @@ . /etc/rc.subr name="mohawk" -rcvar=`set_rcvar` +rcvar=mohawk_enable load_rc_config $name diff --git a/www/monast/files/monast.in b/www/monast/files/monast.in index 853bd48..bc5a1c4 100644 --- a/www/monast/files/monast.in +++ b/www/monast/files/monast.in @@ -14,7 +14,7 @@ . /etc/rc.subr name=monast -rcvar=${name}_enable +rcvar=monast_enable command="%%PREFIX%%/monast/monast.py" pidfile="/var/run/${name}.pid" diff --git a/www/nginx-devel/files/nginx.sh.in b/www/nginx-devel/files/nginx.sh.in index 7e6d0d1..61b6914 100644 --- a/www/nginx-devel/files/nginx.sh.in +++ b/www/nginx-devel/files/nginx.sh.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="nginx" -rcvar=`set_rcvar` +rcvar=nginx_enable start_precmd="nginx_precmd" restart_precmd="nginx_checkconfig" diff --git a/www/nginx/files/nginx.sh.in b/www/nginx/files/nginx.sh.in index 7e6d0d1..61b6914 100644 --- a/www/nginx/files/nginx.sh.in +++ b/www/nginx/files/nginx.sh.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="nginx" -rcvar=`set_rcvar` +rcvar=nginx_enable start_precmd="nginx_precmd" restart_precmd="nginx_checkconfig" diff --git a/www/nostromo/files/nostromo.sh.in b/www/nostromo/files/nostromo.sh.in index 65dd114..455aa54 100644 --- a/www/nostromo/files/nostromo.sh.in +++ b/www/nostromo/files/nostromo.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=nostromo -rcvar=`set_rcvar` +rcvar=nostromo_enable command=/usr/local/sbin/nhttpd diff --git a/www/oops/files/oops.in b/www/oops/files/oops.in index 285d1fd..9168a42 100644 --- a/www/oops/files/oops.in +++ b/www/oops/files/oops.in @@ -9,7 +9,7 @@ . /etc/rc.subr name="oops" -rcvar=`set_rcvar` +rcvar=oops_enable command="%%PREFIX%%/sbin/oopsctl" procname="%%PREFIX%%/sbin/oops" diff --git a/www/openacs/files/dotlrn.in b/www/openacs/files/dotlrn.in index 8def4dc..ffc7ec1 100644 --- a/www/openacs/files/dotlrn.in +++ b/www/openacs/files/dotlrn.in @@ -1,8 +1,10 @@ #! /bin/sh -# + +# $FreeBSD$ # # PROVIDE: dotlrn # REQUIRE: DAEMON NETWORKING SERVERS +# KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable dotlrn: # @@ -13,8 +15,10 @@ . /etc/rc.subr name=dotlrn +rcvar=dotlrn_enable load_rc_config ${name} + : ${dotlrn_enable="NO"} : ${dotlrn_user="%%OPENACS_USER%%"} : ${dotlrn_group="%%OPENACS_GROUP%%"} @@ -23,7 +27,6 @@ load_rc_config ${name} : ${dotlrn_prog=%%AOLSERVERBASE%%/bin/nsd} : ${dotlrn_pidfile=/var/run/dotlrn.pid} -rcvar=`set_rcvar` pidfile=${dotlrn_pidfile} start_postcmd="start_postcmd" stop_postcmd="stop_postcmd" diff --git a/www/openacs/files/openacs.in b/www/openacs/files/openacs.in index 1960dad..61b2b83 100644 --- a/www/openacs/files/openacs.in +++ b/www/openacs/files/openacs.in @@ -1,8 +1,10 @@ #! /bin/sh -# + +# $FreeBSD$ # # PROVIDE: openacs # REQUIRE: DAEMON NETWORKING SERVERS +# KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable openacs: # @@ -13,8 +15,10 @@ . /etc/rc.subr name=openacs +rcvar=openacs_enable load_rc_config ${name} + : ${openacs_enable="NO"} : ${openacs_user="%%OPENACS_USER%%"} : ${openacs_group="%%OPENACS_GROUP%%"} @@ -23,7 +27,6 @@ load_rc_config ${name} : ${openacs_prog=%%AOLSERVERBASE%%/bin/nsd} : ${openacs_pidfile=/var/run/openacs.pid} -rcvar=`set_rcvar` pidfile=${openacs_pidfile} start_postcmd="start_postcmd" stop_postcmd="stop_postcmd" diff --git a/www/p5-FCGI-Spawn/files/fcgi_spawn.in b/www/p5-FCGI-Spawn/files/fcgi_spawn.in index 7f03472..0b1866f 100644 --- a/www/p5-FCGI-Spawn/files/fcgi_spawn.in +++ b/www/p5-FCGI-Spawn/files/fcgi_spawn.in @@ -7,7 +7,7 @@ . /etc/rc.subr name="fcgi_spawn" -rcvar=${name}_enable +rcvar=fcgi_spawn_enable fcgi_spawn_enable=${fcgi_spawn_enable:-"NO"} pidfile=${fcgi_spawn_pid:-"/var/run/${name}.pid"} diff --git a/www/p5-Starman/files/starman.in b/www/p5-Starman/files/starman.in index a1381fe..82f1374 100644 --- a/www/p5-Starman/files/starman.in +++ b/www/p5-Starman/files/starman.in @@ -26,7 +26,7 @@ . /etc/rc.subr name=starman -rcvar=`set_rcvar` +rcvar=starman_enable command="%%PREFIX%%/bin/${name}" load_rc_config $name diff --git a/www/polipo/files/polipo.sh.in b/www/polipo/files/polipo.sh.in index ffab21d..b4b41f0 100644 --- a/www/polipo/files/polipo.sh.in +++ b/www/polipo/files/polipo.sh.in @@ -12,7 +12,7 @@ . /etc/rc.subr name=polipo -rcvar=`set_rcvar` +rcvar=polipo_enable polipo_enable=${polipo_enable:-"NO"} polipo_user=%%USER%% diff --git a/www/pound/files/pound.sh.in b/www/pound/files/pound.sh.in index a6aca3b..23b6fa8 100644 --- a/www/pound/files/pound.sh.in +++ b/www/pound/files/pound.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="%%NAME%%" -rcvar=`set_rcvar` +rcvar=%%NAME%%_enable command="%%PREFIX%%/sbin/$name" pidfile="/var/run/$name.pid" diff --git a/www/privoxy/files/privoxy.in b/www/privoxy/files/privoxy.in index dfa9e3b..02632cb 100644 --- a/www/privoxy/files/privoxy.in +++ b/www/privoxy/files/privoxy.in @@ -25,7 +25,7 @@ . /etc/rc.subr name="privoxy" -rcvar=${name}_enable +rcvar=privoxy_enable load_rc_config ${name} : ${privoxy_enable="NO"} diff --git a/www/red5/files/red5.in b/www/red5/files/red5.in index 2d2c620..772f7bf 100644 --- a/www/red5/files/red5.in +++ b/www/red5/files/red5.in @@ -49,7 +49,7 @@ . /etc/rc.subr name="red5" -rcvar=`set_rcvar` +rcvar=red5_enable pidfile="/var/run/red5.pid" java_command="%%LOCALBASE%%/bin/java" diff --git a/www/redmine/files/redmine.in b/www/redmine/files/redmine.in index 8f4da36..d9a2cf7 100644 --- a/www/redmine/files/redmine.in +++ b/www/redmine/files/redmine.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="redmine" -rcvar=`set_rcvar` +rcvar=redmine_enable command=%%RUBY_NAME%% pidfile="%%WWWDIR%%/tmp/pids/thin.pid" diff --git a/www/resin2/files/resin.sh.in b/www/resin2/files/resin.sh.in index fcbb914..549022a 100644 --- a/www/resin2/files/resin.sh.in +++ b/www/resin2/files/resin.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=%%APP_NAME%% -rcvar=`set_rcvar` +rcvar=%%APP_NAME%%_enable command="%%PREFIX%%/sbin/%%APP_NAME%%ctl" command_args="start" diff --git a/www/resin3/files/resin.sh.in b/www/resin3/files/resin.sh.in index fcbb914..549022a 100644 --- a/www/resin3/files/resin.sh.in +++ b/www/resin3/files/resin.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=%%APP_NAME%% -rcvar=`set_rcvar` +rcvar=%%APP_NAME%%_enable command="%%PREFIX%%/sbin/%%APP_NAME%%ctl" command_args="start" diff --git a/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in b/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in index 578797b..02f7e4b 100644 --- a/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in +++ b/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in @@ -15,7 +15,7 @@ . /etc/rc.subr name=cruisecontrolrb -rcvar=${name}_enable +rcvar=cruisecontrolrb_enable homedir="%%PREFIX%%/www/${name}" pidfile="${homedir}/tmp/pids/mongrel.pid" diff --git a/www/rubygem-mongrel_cluster/files/mongrel_cluster.in b/www/rubygem-mongrel_cluster/files/mongrel_cluster.in index 4d330f1..cfaeea1 100644 --- a/www/rubygem-mongrel_cluster/files/mongrel_cluster.in +++ b/www/rubygem-mongrel_cluster/files/mongrel_cluster.in @@ -17,7 +17,7 @@ . /etc/rc.subr name=mongrel_cluster -rcvar=${name}_enable +rcvar=mongrel_cluster_enable command="%%PREFIX%%/bin/mongrel_cluster_ctl" diff --git a/www/sams/files/sams.sh.in b/www/sams/files/sams.sh.in index 9d77650..b813573 100644 --- a/www/sams/files/sams.sh.in +++ b/www/sams/files/sams.sh.in @@ -21,7 +21,7 @@ sams_pidfile=${sams_pidfile-"/var/run/samsdaemon.pid"} . /etc/rc.subr name="sams" -rcvar=`set_rcvar` +rcvar=sams_enable command="%%PREFIX%%/bin/samsdaemon" load_rc_config $name diff --git a/www/shellinabox/files/shellinaboxd.in b/www/shellinabox/files/shellinaboxd.in index 8e8e9f4..1cff58c 100644 --- a/www/shellinabox/files/shellinaboxd.in +++ b/www/shellinabox/files/shellinaboxd.in @@ -39,7 +39,7 @@ shellinaboxd_setfib() { . /etc/rc.subr name="shellinaboxd" -rcvar=`set_rcvar` +rcvar=shellinaboxd_enable command="%%PREFIX%%/bin/${name}" start_precmd="shellinaboxd_setfib" diff --git a/www/spawn-fcgi/files/spawn-fcgi.sh.in b/www/spawn-fcgi/files/spawn-fcgi.sh.in index 414f250..75bd893 100644 --- a/www/spawn-fcgi/files/spawn-fcgi.sh.in +++ b/www/spawn-fcgi/files/spawn-fcgi.sh.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="spawn_fcgi" -rcvar=`set_rcvar` +rcvar=spawn_fcgi_enable load_rc_config $name diff --git a/www/spreadlogd/files/spreadlogd.sh.in b/www/spreadlogd/files/spreadlogd.sh.in index 0b8f88b..76608c0 100644 --- a/www/spreadlogd/files/spreadlogd.sh.in +++ b/www/spreadlogd/files/spreadlogd.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=spreadlogd -rcvar=`set_rcvar` +rcvar=spreadlogd_enable command="%%PREFIX%%/sbin/spreadlogd" pidfile=/var/run/${name}.pid diff --git a/www/squid/files/squid.in b/www/squid/files/squid.in index 25ae857..499f79de 100644 --- a/www/squid/files/squid.in +++ b/www/squid/files/squid.in @@ -62,7 +62,7 @@ squid_stop() { . /etc/rc.subr name=squid -rcvar=${name}_enable +rcvar=squid_enable command=%%PREFIX%%/sbin/squid extra_commands=reload diff --git a/www/squid31/files/squid.in b/www/squid31/files/squid.in index d21b439..a6e0b63 100644 --- a/www/squid31/files/squid.in +++ b/www/squid31/files/squid.in @@ -62,7 +62,7 @@ squid_stop() { . /etc/rc.subr name=squid -rcvar=${name}_enable +rcvar=squid_enable command=%%PREFIX%%/sbin/squid extra_commands=reload diff --git a/www/tclhttpd/files/tclhttpd.sh.in b/www/tclhttpd/files/tclhttpd.sh.in index ac3efd8..c63303b 100644 --- a/www/tclhttpd/files/tclhttpd.sh.in +++ b/www/tclhttpd/files/tclhttpd.sh.in @@ -23,7 +23,7 @@ . /etc/rc.subr name="tclhttpd" -rcvar=`set_rcvar` +rcvar=tclhttpd_enable load_rc_config $name diff --git a/www/thttpd/files/thttpd.sh.in b/www/thttpd/files/thttpd.sh.in index 1299aa5..2c9b108 100644 --- a/www/thttpd/files/thttpd.sh.in +++ b/www/thttpd/files/thttpd.sh.in @@ -16,7 +16,7 @@ . /etc/rc.subr name=thttpd -rcvar=`set_rcvar` +rcvar=thttpd_enable command=%%PREFIX%%/sbin/thttpd diff --git a/www/thundercache/files/thundercache.in b/www/thundercache/files/thundercache.in index 57e3014..ed6074a 100644 --- a/www/thundercache/files/thundercache.in +++ b/www/thundercache/files/thundercache.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="thundercache" -rcvar=`set_rcvar` +rcvar=thundercache_enable command="%%PREFIX%%/thunder/sbin/thunder" required_files="%%PREFIX%%/thunder/etc/thunder.conf" diff --git a/www/tinyproxy/files/tinyproxy.sh.in b/www/tinyproxy/files/tinyproxy.sh.in index c4adc6a..3a0e5a3 100644 --- a/www/tinyproxy/files/tinyproxy.sh.in +++ b/www/tinyproxy/files/tinyproxy.sh.in @@ -13,7 +13,7 @@ . /etc/rc.subr name="tinyproxy" -rcvar=`set_rcvar` +rcvar=tinyproxy_enable load_rc_config $name diff --git a/www/tomcat55/files/tomcat55.sh.in b/www/tomcat55/files/tomcat55.sh.in index e8f514f..1c06fee 100644 --- a/www/tomcat55/files/tomcat55.sh.in +++ b/www/tomcat55/files/tomcat55.sh.in @@ -76,7 +76,7 @@ tomcat%%TOMCAT_VERSION%%_stop_timeout="${tomcat%%TOMCAT_VERSION%%_stop_timeout:- . /etc/rc.subr name="tomcat%%TOMCAT_VERSION%%" -rcvar=`set_rcvar` +rcvar=tomcat%%TOMCAT_VERSION%%_enable pidfile="%%PID_FILE%%" load_rc_config "${name}" diff --git a/www/tomcat6/files/tomcat6.sh.in b/www/tomcat6/files/tomcat6.sh.in index a1f1178..8c5edf0 100644 --- a/www/tomcat6/files/tomcat6.sh.in +++ b/www/tomcat6/files/tomcat6.sh.in @@ -66,7 +66,7 @@ tomcat%%TOMCAT_VERSION%%_stop_timeout="${tomcat%%TOMCAT_VERSION%%_stop_timeout:- . /etc/rc.subr name="tomcat%%TOMCAT_VERSION%%" -rcvar=`set_rcvar` +rcvar=tomcat%%TOMCAT_VERSION%%_enable pidfile="/var/run/%%APP_SHORTNAME%%.pid" load_rc_config "${name}" diff --git a/www/tomcat7/files/tomcat7.in b/www/tomcat7/files/tomcat7.in index 3ff0ef9..b904de4 100644 --- a/www/tomcat7/files/tomcat7.in +++ b/www/tomcat7/files/tomcat7.in @@ -62,7 +62,7 @@ tomcat7_stop_timeout="${tomcat7_stop_timeout:-"10"}" . /etc/rc.subr name="tomcat7" -rcvar=`set_rcvar` +rcvar=tomcat7_enable pidfile="/var/run/tomcat7.pid" load_rc_config "${name}" diff --git a/www/trac/files/tracd.in b/www/trac/files/tracd.in index 8957303..2775682 100644 --- a/www/trac/files/tracd.in +++ b/www/trac/files/tracd.in @@ -30,7 +30,7 @@ . /etc/rc.subr name="tracd" -rcvar="${name}_enable" +rcvar=tracd_enable tracd_enable=${tracd_enable:-"NO"} tracd_listen=${tracd_listen:-"0.0.0.0"} diff --git a/www/transproxy/files/tproxy.in b/www/transproxy/files/tproxy.in index 951fb43..093051a 100644 --- a/www/transproxy/files/tproxy.in +++ b/www/transproxy/files/tproxy.in @@ -54,7 +54,7 @@ . /etc/rc.subr name="tproxy" -rcvar=`set_rcvar` +rcvar=tproxy_enable command="%%PREFIX%%/sbin/$name" procname="%%PREFIX%%/sbin/$name" diff --git a/www/tt-rss/files/ttrssd.in b/www/tt-rss/files/ttrssd.in index 6df6399..0f674ad 100644 --- a/www/tt-rss/files/ttrssd.in +++ b/www/tt-rss/files/ttrssd.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="ttrssd" -rcvar=`set_rcvar` +rcvar=ttrssd_enable # read settings, set default values load_rc_config "${name}" diff --git a/www/twms/files/twms.in b/www/twms/files/twms.in index d6b8120..c36c31a 100644 --- a/www/twms/files/twms.in +++ b/www/twms/files/twms.in @@ -10,7 +10,7 @@ . /etc/rc.subr name=twms -rcvar=`set_rcvar` +rcvar=twms_enable twms_enable=${twms_enable:-"NO"} twms_user=%%USER%% diff --git a/www/uwsgi/files/uwsgi.in b/www/uwsgi/files/uwsgi.in index 9b86914..1af04d9 100644 --- a/www/uwsgi/files/uwsgi.in +++ b/www/uwsgi/files/uwsgi.in @@ -35,7 +35,7 @@ . /etc/rc.subr name="uwsgi" -rcvar=`set_rcvar` +rcvar=uwsgi_enable load_rc_config $name diff --git a/www/varnish/files/varnishd.in b/www/varnish/files/varnishd.in index e238fbe..61512f1 100644 --- a/www/varnish/files/varnishd.in +++ b/www/varnish/files/varnishd.in @@ -53,7 +53,7 @@ . /etc/rc.subr name="varnishd" -rcvar=`set_rcvar` +rcvar=varnishd_enable command="%%PREFIX%%/sbin/${name}" diff --git a/www/varnish/files/varnishlog.in b/www/varnish/files/varnishlog.in index 4a0f64c..c7b2980 100644 --- a/www/varnish/files/varnishlog.in +++ b/www/varnish/files/varnishlog.in @@ -34,7 +34,7 @@ . /etc/rc.subr name="varnishlog" -rcvar=`set_rcvar` +rcvar=varnishlog_enable command="%%PREFIX%%/bin/${name}" diff --git a/www/varnish/files/varnishncsa.in b/www/varnish/files/varnishncsa.in index ba3d376..73950cc 100644 --- a/www/varnish/files/varnishncsa.in +++ b/www/varnish/files/varnishncsa.in @@ -34,7 +34,7 @@ . /etc/rc.subr name="varnishncsa" -rcvar=`set_rcvar` +rcvar=varnishncsa_enable command="%%PREFIX%%/bin/${name}" diff --git a/www/varnish2/files/varnishd.in b/www/varnish2/files/varnishd.in index e238fbe..61512f1 100644 --- a/www/varnish2/files/varnishd.in +++ b/www/varnish2/files/varnishd.in @@ -53,7 +53,7 @@ . /etc/rc.subr name="varnishd" -rcvar=`set_rcvar` +rcvar=varnishd_enable command="%%PREFIX%%/sbin/${name}" diff --git a/www/varnish2/files/varnishlog.in b/www/varnish2/files/varnishlog.in index 4a0f64c..c7b2980 100644 --- a/www/varnish2/files/varnishlog.in +++ b/www/varnish2/files/varnishlog.in @@ -34,7 +34,7 @@ . /etc/rc.subr name="varnishlog" -rcvar=`set_rcvar` +rcvar=varnishlog_enable command="%%PREFIX%%/bin/${name}" diff --git a/www/varnish2/files/varnishncsa.in b/www/varnish2/files/varnishncsa.in index ba3d376..73950cc 100644 --- a/www/varnish2/files/varnishncsa.in +++ b/www/varnish2/files/varnishncsa.in @@ -34,7 +34,7 @@ . /etc/rc.subr name="varnishncsa" -rcvar=`set_rcvar` +rcvar=varnishncsa_enable command="%%PREFIX%%/bin/${name}" diff --git a/www/vdradmin-am/files/vdradmind.in b/www/vdradmin-am/files/vdradmind.in index 42f462f..72fbdf2 100644 --- a/www/vdradmin-am/files/vdradmind.in +++ b/www/vdradmin-am/files/vdradmind.in @@ -13,7 +13,7 @@ . /etc/rc.subr name=vdradmind -rcvar=`set_rcvar` +rcvar=vdradmind_enable command="%%PREFIX%%/bin/vdradmind" pidfile="/var/run/vdradmin-am/${name}.pid" diff --git a/www/webfs/files/webfsd.in b/www/webfs/files/webfsd.in index f5f6250..21157e4 100644 --- a/www/webfs/files/webfsd.in +++ b/www/webfs/files/webfsd.in @@ -16,7 +16,7 @@ . /etc/rc.subr name="webfsd" -rcvar=`set_rcvar` +rcvar=webfsd_enable load_rc_config $name diff --git a/www/webobjects/files/JavaMonitor.sh.in b/www/webobjects/files/JavaMonitor.sh.in index 4801c93..a3b9cdc 100644 --- a/www/webobjects/files/JavaMonitor.sh.in +++ b/www/webobjects/files/JavaMonitor.sh.in @@ -1,17 +1,25 @@ #!/bin/sh + # $FreeBSD$ +# # PROVIDE: JavaMonitor # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON # KEYWORD: shutdown - +# # Define these JavaMonitor_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # # DO NOT CHANGE THESE DEFAULT VALUES HERE -# + +. /etc/rc.subr + name="JavaMonitor" +rcvar=JavaMonitor_enable + +load_rc_config "$name" +load_rc_config NEXT JavaMonitor_enable="${JavaMonitor_enable-"NO"}" JavaMonitor_user="${JavaMonitor_user-%%USER%%}" @@ -20,12 +28,6 @@ JavaMonitor_pidfile="${JavaMonitor_pidfile:-/var/run/webobjects/${name}.pid}" JavaMonitor_logfile="${JavaMonitor_logfile:-/var/log/webobjects/${name}.log}" NEXT_ROOT="${NEXT_ROOT-%%PREFIX%%/%%NEXT_ROOT%%}" -. /etc/rc.subr -rcvar=`set_rcvar` - -load_rc_config "$name" -load_rc_config NEXT - pidfile="${JavaMonitor_pidfile}" logfile="${JavaMonitor_logfile}" runuser="${JavaMonitor_user}" diff --git a/www/webobjects/files/wotaskd.sh.in b/www/webobjects/files/wotaskd.sh.in index cee2a60..e6afe23 100644 --- a/www/webobjects/files/wotaskd.sh.in +++ b/www/webobjects/files/wotaskd.sh.in @@ -1,17 +1,25 @@ #!/bin/sh + # $FreeBSD$ +# # PROVIDE: wotaskd # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON # KEYWORD: shutdown - +# # Define these wotaskd_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # # DO NOT CHANGE THESE DEFAULT VALUES HERE -# + +. /etc/rc.subr + name="wotaskd" +rcvar=wotaskd_enable + +load_rc_config "$name" +load_rc_config NEXT wotaskd_enable="${wotaskd_enable-"NO"}" wotaskd_user="${wotaskd_user-%%USER%%}" @@ -19,12 +27,6 @@ wotaskd_pidfile="${wotaskd_pidfile:-/var/run/webobjects/${name}.pid}" wotaskd_logfile="${wotaskd_logfile:-/var/log/webobjects/${name}.log}" NEXT_ROOT="${NEXT_ROOT-%%PREFIX%%/%%NEXT_ROOT%%}" -. /etc/rc.subr -rcvar=`set_rcvar` - -load_rc_config "$name" -load_rc_config NEXT - pidfile="${wotaskd_pidfile}" logfile="${wotaskd_logfile}" runuser="${wotaskd_user}" diff --git a/www/www6to4/files/www6to4.in b/www/www6to4/files/www6to4.in index 0a2dbcd..00520f1 100644 --- a/www/www6to4/files/www6to4.in +++ b/www/www6to4/files/www6to4.in @@ -12,7 +12,7 @@ . /etc/rc.subr name=www6to4 -rcvar=`set_rcvar` +rcvar=www6to4_enable command=%%PREFIX%%/sbin/www6to4 WWW6TO4DIR=%%PREFIX%%/etc/www6to4 diff --git a/www/wwwoffle/files/wwwoffled.sh.in b/www/wwwoffle/files/wwwoffled.sh.in index 05c857d..53b60da 100644 --- a/www/wwwoffle/files/wwwoffled.sh.in +++ b/www/wwwoffle/files/wwwoffled.sh.in @@ -21,7 +21,7 @@ wwwoffled_conffile="%%PREFIX%%/etc/wwwoffle.conf" . /etc/rc.subr name="wwwoffled" -rcvar=`set_rcvar` +rcvar=wwwoffled_enable command="%%PREFIX%%/sbin/wwwoffled" extra_commands="reload" diff --git a/www/wyvern/files/wyvern.in b/www/wyvern/files/wyvern.in index 087b509..4002637 100644 --- a/www/wyvern/files/wyvern.in +++ b/www/wyvern/files/wyvern.in @@ -20,7 +20,7 @@ wyvern_enable=${wyvern_enable:-"NO"} # Enable wyvern . /etc/rc.subr name="wyvern" -rcvar=`set_rcvar` +rcvar=wyvern_enable command="%%PREFIX%%/sbin/wyvern" pidfile="/var/run/wyvern.pid" required_files="%%PREFIX%%/wyvern/conf/wyvern.conf" diff --git a/www/xshttpd-devel/files/xshttpd.sh.in b/www/xshttpd-devel/files/xshttpd.sh.in index e2c539a..975fece 100644 --- a/www/xshttpd-devel/files/xshttpd.sh.in +++ b/www/xshttpd-devel/files/xshttpd.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="xshttpd" -rcvar=`set_rcvar` +rcvar=xshttpd_enable load_rc_config $name diff --git a/www/xshttpd/files/xshttpd.sh.in b/www/xshttpd/files/xshttpd.sh.in index 0e204b8..93687f7 100644 --- a/www/xshttpd/files/xshttpd.sh.in +++ b/www/xshttpd/files/xshttpd.sh.in @@ -17,7 +17,7 @@ . /etc/rc.subr name="xshttpd" -rcvar=`set_rcvar` +rcvar=xshttpd_enable load_rc_config $name diff --git a/www/zerowait-httpd/files/0W-httpd.in b/www/zerowait-httpd/files/0W-httpd.in index 5a45c4b..eb5d2db 100644 --- a/www/zerowait-httpd/files/0W-httpd.in +++ b/www/zerowait-httpd/files/0W-httpd.in @@ -15,7 +15,7 @@ . /etc/rc.subr name="zerowait" -rcvar=`set_rcvar` +rcvar=zerowait_enable command="%%PREFIX%%/sbin/0W-httpd" args="-c %%PREFIX%%/etc/0W-httpd/httpd.conf" required_files="%%PREFIX%%/etc/0W-httpd/httpd.conf" diff --git a/www/zope/files/zeo.in b/www/zope/files/zeo.in index 87a37fa..6ed954f 100644 --- a/www/zope/files/zeo.in +++ b/www/zope/files/zeo.in @@ -21,7 +21,7 @@ zeo_instances=${zeo_instances:-""} # List of instancehome dirs . /etc/rc.subr name="zeo" -rcvar=`set_rcvar` +rcvar=zeo_enable load_rc_config $name extra_commands="status" diff --git a/www/zope/files/zope.in b/www/zope/files/zope.in index 1e54792c..99414f2 100644 --- a/www/zope/files/zope.in +++ b/www/zope/files/zope.in @@ -21,7 +21,7 @@ zope_instances=${zope_instances:-""} # List of instancehome dirs . /etc/rc.subr name="zope" -rcvar=`set_rcvar` +rcvar=zope_enable load_rc_config $name extra_commands="status" diff --git a/www/zope211/files/zeo211.in b/www/zope211/files/zeo211.in index 6d8d593..0bdbb7e 100644 --- a/www/zope211/files/zeo211.in +++ b/www/zope211/files/zeo211.in @@ -24,7 +24,7 @@ . /etc/rc.subr name="zeo211" -rcvar=`set_rcvar` +rcvar=zeo211_enable zeo211ctl () { for instance in $zeo211_instances; do diff --git a/www/zope211/files/zope211.in b/www/zope211/files/zope211.in index dc32d86..4d561a6 100644 --- a/www/zope211/files/zope211.in +++ b/www/zope211/files/zope211.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="zope211" -rcvar=`set_rcvar` +rcvar=zope211_enable zope211ctl () { for instance in $zope211_instances; do diff --git a/www/zope213/files/zope213.in b/www/zope213/files/zope213.in index 5a46807..afeaf44 100644 --- a/www/zope213/files/zope213.in +++ b/www/zope213/files/zope213.in @@ -22,7 +22,7 @@ . /etc/rc.subr name="zope213" -rcvar=`set_rcvar` +rcvar=zope213_enable load_rc_config $name diff --git a/x11-drivers/input-wacom/files/wacom.in b/x11-drivers/input-wacom/files/wacom.in index b4264db..61ed94a 100644 --- a/x11-drivers/input-wacom/files/wacom.in +++ b/x11-drivers/input-wacom/files/wacom.in @@ -23,7 +23,7 @@ . /etc/rc.subr name="wacom" -rcvar=${name}_enable +rcvar=wacom_enable extra_commands="setup cleanup" setup_cmd=do_setup diff --git a/x11-fonts/xfs/files/xfs.in b/x11-fonts/xfs/files/xfs.in index 5db6d2f..8ffeadf 100644 --- a/x11-fonts/xfs/files/xfs.in +++ b/x11-fonts/xfs/files/xfs.in @@ -19,7 +19,7 @@ . /etc/rc.subr name="xfs" -rcvar=`set_rcvar` +rcvar=xfs_enable # Set defaults [ -z "$xfs_enable" ] && xfs_enable="NO" diff --git a/x11/gdm/files/gdm.in b/x11/gdm/files/gdm.in index b897fa8..f7c4444 100644 --- a/x11/gdm/files/gdm.in +++ b/x11/gdm/files/gdm.in @@ -20,7 +20,7 @@ gdm_lang=${gdm_lang-${LANG}} export PATH=/bin:/sbin:/usr/bin:/usr/sbin:%%LOCALBASE%%/bin:%%LOCALBASE%%/sbin name="gdm" -rcvar=`set_rcvar` +rcvar=gdm_enable command="%%PREFIX%%/sbin/${name}" pidfile="/var/run/${name}.pid" procname="%%PREFIX%%/sbin/gdm-binary" diff --git a/x11/kde4-workspace/files/kdm4.in b/x11/kde4-workspace/files/kdm4.in index 8908394..278ff62 100644 --- a/x11/kde4-workspace/files/kdm4.in +++ b/x11/kde4-workspace/files/kdm4.in @@ -18,7 +18,7 @@ . /etc/rc.subr name=kdm4 -rcvar=`set_rcvar` +rcvar=kdm4_enable load_rc_config ${name} diff --git a/x11/slim/files/slim.sh.in b/x11/slim/files/slim.sh.in index 7141f6a..6f6c6fc 100644 --- a/x11/slim/files/slim.sh.in +++ b/x11/slim/files/slim.sh.in @@ -18,7 +18,7 @@ . /etc/rc.subr name="slim" -rcvar=`set_rcvar` +rcvar=slim_enable start_precmd=${name}_rmfile stop_precmd=${name}_prestop |