clarify comment and pkg-descr to make clear that ices0 is for streaming mp3s, add an rc-script, optionalize most dependencies, do not depend on lame by default in order to enable the build of a binary package. While here, modify comment of ices as well to make perfectly clear that ices is for vorbis streaming. Based on a submission by: "Dave" <dmehler26@woh.rr.com>
31 lines
490 B
Bash
31 lines
490 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: ices0
|
|
# REQUIRE: DAEMON
|
|
# BEFORE: login
|
|
# KEYWORD: FreeBSD shutdown
|
|
|
|
# Add the following line to /etc/rc.conf to enable `ices0':
|
|
#
|
|
#ices0_enable="YES"
|
|
#ices0_flags=""
|
|
#
|
|
|
|
. "/etc/rc.subr"
|
|
|
|
name="ices0"
|
|
rcvar=`set_rcvar`
|
|
|
|
command="%%PREFIX%%/bin/$name"
|
|
command_args="1>/dev/null 2>&1"
|
|
required_files="%%PREFIX%%/etc/ices.conf"
|
|
|
|
# read configuration and set defaults
|
|
load_rc_config "$name"
|
|
: ${ices0_enable="NO"}
|
|
: ${ices0_flags=""}
|
|
|
|
run_rc_command "$1"
|