ports/net/ladvd/files/ladvd.in
Philip M. Gollucci 02afb3ef23 - update to 0.8 [1]
- does not build on !i386
    CFLAGS+= -fPIC doesn't fix it

PR:             ports/135966
Submitted by:   Sten Spans <sten@blinkenlights.nl> (maintainer)
2009-06-23 20:09:31 +00:00

36 lines
486 B
Bash

#!/bin/sh
#
# PROVIDE: ladvd
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to enable ladvd:
#
#ladvd_enable="YES"
#
# See ladvd(8) for flags.
#
. %%RC_SUBR%%
name=ladvd
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/ladvd
load_rc_config ${name}
# set defaults
ladvd_enable=${ladvd_enable:-"NO"}
ladvd_flags=${ladvd_flags:-"-a"}
start_precmd="ladvd_check"
ladvd_check()
{
if [ -z "${ladvd_flags}" ]
then
err 1 "ladvd_flags should be set"
fi
}
run_rc_command "$1"