mirror of
https://git.freebsd.org/ports.git
synced 2025-06-30 00:50:29 -04:00
- does not build on !i386 CFLAGS+= -fPIC doesn't fix it PR: ports/135966 Submitted by: Sten Spans <sten@blinkenlights.nl> (maintainer)
36 lines
486 B
Bash
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"
|