From f902f2264f2b50cbf87230152bebc67024e68c68 Mon Sep 17 00:00:00 2001 From: brooks Date: Wed, 14 Oct 2009 21:42:58 +0000 Subject: Commit an identical copy of squeezecenter.sh.in as squeezeboxserver.sh.in so we get diffs when the real port comes in. Remove the squeezeboxserver.sh.in I mistakenly added last time. Too many similar product names. :( --- .../squeezeboxserver/files/squeezeboxcenter.sh.in | 77 ---------------------- .../squeezeboxserver/files/squeezeboxserver.sh.in | 77 ++++++++++++++++++++++ 2 files changed, 77 insertions(+), 77 deletions(-) delete mode 100644 audio/squeezeboxserver/files/squeezeboxcenter.sh.in create mode 100644 audio/squeezeboxserver/files/squeezeboxserver.sh.in (limited to 'audio/squeezeboxserver') diff --git a/audio/squeezeboxserver/files/squeezeboxcenter.sh.in b/audio/squeezeboxserver/files/squeezeboxcenter.sh.in deleted file mode 100644 index bc06b8a348b8..000000000000 --- a/audio/squeezeboxserver/files/squeezeboxcenter.sh.in +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: %%PORTNAME%% -# REQUIRE: LOGIN -# KEYWORD: shutdown - -# -# Add the following lines to /etc/rc.conf to enable %%PORTNAME%%: -# -# %%PORTNAME%%_enable="YES" -# %%PORTNAME%%_flags="" -# - -. %%RC_SUBR%% - -name=%%PORTNAME%% -start_precmd="%%PORTNAME%%_start_precmd" -stop_postcmd="%%PORTNAME%%_stop_postcmd" -rcvar=`set_rcvar` - -command=%%PREFIX%%/%%SLIMDIR%%/slimserver.pl -command_interpreter=%%PERL%% -pidfile=/var/run/${name}/${name}.pid -logdir=/var/log/${name} -statedir=%%SLIMDBDIR%% -cachedir=${statedir}/cache -prefsdir=${statedir}/prefs -playlistdir=${statedir}/playlists -conffile=${statedir}/${name}.conf -u=%%SLIMUSER%% -g=%%SLIMGROUP%% -command_args="--daemon --prefsfile=${conffile} --pidfile=${pidfile}" -%%PORTNAME%%_user=${u} -%%PORTNAME%%_group=${g} - -%%PORTNAME%%_start_precmd() -{ - mkdir -p /var/run/${name} - chown -RH ${u}:${g} /var/run/${name} - - mkdir -p ${logdir} - chown -RH ${u}:${g} ${logdir} - - mkdir -p ${statedir} - mkdir -p ${cachedir} - mkdir -p ${prefsdir} - mkdir -p ${playlistdir} - touch ${conffile} - chown -RH ${u}:${g} ${statedir} - - if [ ! -f ${logfile} ]; then - touch ${logfile} - chown -H ${u}:${g} ${logfile} - fi -} - -%%PORTNAME%%_stop_postcmd() -{ - pids=`pgrep -u $u` - if [ -n "${pids}" ]; then - sleep 1 - kill $pids > /dev/null 2>&1 - fi - pids=`pgrep -u $u` - if [ -n "${pids}" ]; then - wait_for_pids $pids - fi -} - -load_rc_config ${name} - -%%PORTNAME%%_enable=${%%PORTNAME%%_enable:-"NO"} - -run_rc_command "$1" diff --git a/audio/squeezeboxserver/files/squeezeboxserver.sh.in b/audio/squeezeboxserver/files/squeezeboxserver.sh.in new file mode 100644 index 000000000000..bc06b8a348b8 --- /dev/null +++ b/audio/squeezeboxserver/files/squeezeboxserver.sh.in @@ -0,0 +1,77 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: %%PORTNAME%% +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable %%PORTNAME%%: +# +# %%PORTNAME%%_enable="YES" +# %%PORTNAME%%_flags="" +# + +. %%RC_SUBR%% + +name=%%PORTNAME%% +start_precmd="%%PORTNAME%%_start_precmd" +stop_postcmd="%%PORTNAME%%_stop_postcmd" +rcvar=`set_rcvar` + +command=%%PREFIX%%/%%SLIMDIR%%/slimserver.pl +command_interpreter=%%PERL%% +pidfile=/var/run/${name}/${name}.pid +logdir=/var/log/${name} +statedir=%%SLIMDBDIR%% +cachedir=${statedir}/cache +prefsdir=${statedir}/prefs +playlistdir=${statedir}/playlists +conffile=${statedir}/${name}.conf +u=%%SLIMUSER%% +g=%%SLIMGROUP%% +command_args="--daemon --prefsfile=${conffile} --pidfile=${pidfile}" +%%PORTNAME%%_user=${u} +%%PORTNAME%%_group=${g} + +%%PORTNAME%%_start_precmd() +{ + mkdir -p /var/run/${name} + chown -RH ${u}:${g} /var/run/${name} + + mkdir -p ${logdir} + chown -RH ${u}:${g} ${logdir} + + mkdir -p ${statedir} + mkdir -p ${cachedir} + mkdir -p ${prefsdir} + mkdir -p ${playlistdir} + touch ${conffile} + chown -RH ${u}:${g} ${statedir} + + if [ ! -f ${logfile} ]; then + touch ${logfile} + chown -H ${u}:${g} ${logfile} + fi +} + +%%PORTNAME%%_stop_postcmd() +{ + pids=`pgrep -u $u` + if [ -n "${pids}" ]; then + sleep 1 + kill $pids > /dev/null 2>&1 + fi + pids=`pgrep -u $u` + if [ -n "${pids}" ]; then + wait_for_pids $pids + fi +} + +load_rc_config ${name} + +%%PORTNAME%%_enable=${%%PORTNAME%%_enable:-"NO"} + +run_rc_command "$1" -- cgit