- Clean up of rc script. submitted via email by dougb@FreeBSD.org Fix: Attached patch ______________________________________________________________________ This email has been scanned and certified safe by SpammerTrap(r). For Information please see http://www.spammertrap.com/ ______________________________________________________________________--z93Ogx3nS10FmqYF584UZ4yRNZhqWWHK69KiirzLUK3JDFGR Content-Type: text/plain; name="shoutcast.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="shoutcast.txt" Index: files/shoutcast.in =================================================================== RCS file: /home/pcvs/ports/audio/shoutcast/files/shoutcast.in,v retrieving revision 1.1 diff -u -r1.1 shoutcast.in --- files/shoutcast.in 19 Jan 2012 01:23:55 -0000 1.1 +++ files/shoutcast.in 19 Jan 2012 11:09:44 -0000 @@ -1,45 +1,44 @@ #!/bin/sh -# + # $FreeBSD: ports/audio/shoutcast/files/shoutcast.in,v 1.1 2012/01/19 01:23:55 scheidell Exp $ # - # PROVIDE: shoutcast # REQUIRE: LOGIN -# BEFORE: # KEYWORD: shutdown - # # Add the following lines to /etc/rc.conf to enable SHOUTcast: # shoutcast_enable (bool): Set to "NO" by default. # Set it to "YES" to enable SHOUTcast. # shoutcast_configfile (str): Set to "%%PREFIX%%/%%ETCDIR%%/sc_serv.conf" by default. -# +# shoutcast_user (str): Set to %%SHOUTCASTUSER%% by default +# shoutcast_chdir (str): Set to %%SHOUTCASTDIR%% by default . /etc/rc.subr -name="shoutcast" -rcvar=`set_rcvar` -shoutcast_logfile="/var/log/sc_serv.log" +name=shoutcast +rcvar=shoutcast_enable -start_cmd="shoutcast_startcmd" -stop_cmd="shoutcast_stopcmd" +load_rc_config shoutcast -[ -z "${shoutcast_enable}" ] && shoutcast_enable="NO" -[ -z "${shoutcast_configfile}" ] && shoutcast_configfile="%%PREFIX%%/%%ETCDIR%%/sc_serv.conf" +: ${shoutcast_enable:="NO"} +: ${shoutcast_user:="%%SHOUTCASTUSER%%"} +: ${shoutcast_chdir:="%%SHOUTCASTDIR%%"} -load_rc_config "${name}" +command="%%PREFIX%%/sbin/sc_serv" +shoutcast_logfile="/var/log/sc_serv.log" + +required_dirs="${shoutcast_chdir}" +required_files="${shoutcast_configfile:="%%PREFIX%%/%%ETCDIR%%/sc_serv.conf"}" + +command_args="${required_files} >/dev/null 2>&1 &" -required_files="${shoutcast_configfile}" +start_precmd="shoutcast_prestart" -shoutcast_startcmd() { +shoutcast_prestart() +{ touch ${shoutcast_logfile} chown %%SHOUTCASTUSER%%:wheel ${shoutcast_logfile} chmod 0640 ${shoutcast_logfile} - su %%SHOUTCASTUSER%% -c "cd %%SHOUTCASTDIR%% && %%PREFIX%%/sbin/sc_serv ${shoutcast_configfile} >/dev/null 2>&1 &" -} - -shoutcast_stopcmd() { - killall sc_serv } run_rc_command "$1"
Responsible Changed From-To: freebsd-ports-bugs->scheidell Submitter has GNATS access (via the GNATS Auto Assign Tool)
Maintainer of audio/shoutcast, Please note that PR ports/164307 has just been submitted. If it contains a patch for an upgrade, an enhancement or a bug fix you agree on, reply to this email stating that you approve the patch and a committer will take care of it. The full text of the PR can be found at: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/164307 -- Edwin Groothuis via the GNATS Auto Assign Tool edwin@FreeBSD.org
State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
scheidell 2012-01-21 19:33:20 UTC FreeBSD ports repository Modified files: audio/shoutcast Makefile audio/shoutcast/files shoutcast.in Log: - update rc file for audio/shoutcast PR: ports/164307 Submitted by: dougb Approved by: maintainer (implicit), gabor (mentor) Revision Changes Path 1.21 +3 -5 ports/audio/shoutcast/Makefile 1.2 +20 -21 ports/audio/shoutcast/files/shoutcast.in _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: feedback->closed Committed by request of ports audit committee