freebsd-ports/audio/ices0/files/ices0.sh.in
Michael Nottebrock ab55f8a2cb Install ices0 as ices0 (and thus resolve a long-unnoticed conflict with ices),
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>
2006-06-12 09:18:27 +00:00

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"