Date: Sat, 17 Apr 2010 16:23:09 +0200 (CEST) From: Jille Timmermans <jille@quis.cx> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/145779: [patch] audio/icecast2: rc setting icecast_config Message-ID: <20100417142309.32D6161082A@istud.quis.cx> Resent-Message-ID: <201004171450.o3HEo21O079079@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 145779 >Category: ports >Synopsis: [patch] audio/icecast2: rc setting icecast_config >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Apr 17 14:50:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Jille Timmermans >Release: FreeBSD 8.0-STABLE amd64 >Organization: Private >Environment: System: FreeBSD istud.quis.cx 8.0-STABLE FreeBSD 8.0-STABLE #0 r203672: Mon Feb 8 20:23:01 CET 2010 quis@istud.quis.cx:/usr/obj/usr/src/sys/ISTUD amd64 >Description: This patch adds the rc.conf setting to specify another config file than the default of /usr/local/etc/icecast.xml. >How-To-Repeat: >Fix: --- icecast2 (from port) +++ icecast2 (my version) @@ -8,12 +8,16 @@ # BEFORE: LOGIN # KEYWORD: shutdown -# Add the following line to /etc/rc.conf to enable `icecast2'. This requires -# a working configuration in /usr/local/etc/icecast.xml. +# Add the following line to /etc/rc.conf to enable `icecast2'. # #icecast_enable="YES" # -# Make sure the <changeowner> section in your /usr/local/etc/icecast.xml is +# You can specify another configuration file than /usr/local/etc/icecast.xml +# by adding the following line. +# +#icecast_config="/usr/local/etc/icecast.xml" +# +# Make sure the <changeowner> section in your configuration file is # not commented out - icecast refuses to run as root. # @@ -24,11 +24,13 @@ command="/usr/local/bin/icecast" command_args="-b 1>/dev/null" -required_files="/usr/local/etc/$name.xml" # read configuration and set defaults load_rc_config "$name" : ${icecast_enable="NO"} -: ${icecast_flags="-c ${required_files}"} +: ${icecast_config="/usr/local/etc/$name.xml"} +: ${icecast_flags="-c ${icecast_config}"} + +required_files="${icecast_config}" run_rc_command "$1" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100417142309.32D6161082A>