Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=6ba1767e32444d56564c99247ec34156c22af2a0
commit 6ba1767e32444d56564c99247ec34156c22af2a0 Author: Priyank <priy...@frugalware.org> Date: Sun Feb 1 12:57:57 2009 +0530 icecast-2.3.2-2-i686 * New initscript (now supports status) * New maintainer diff --git a/source/network-extra/icecast/FrugalBuild b/source/network-extra/icecast/FrugalBuild index 74ca772..968c123 100644 --- a/source/network-extra/icecast/FrugalBuild +++ b/source/network-extra/icecast/FrugalBuild @@ -1,5 +1,5 @@ # Compiling Time: 0.14 SBU -# Maintainer: DNAku <dn...@frugalware.org> +# Maintainer: Priyank Gosalia <priyan...@gmail.com> # Contributor: Tuxbubling <tuxbubl...@tiscali.fr> pkgname=icecast @@ -14,14 +14,15 @@ up2date="lynx -dump http://www.icecast.org/download.php | grep icecast-[0-9\.]*t source=(http://downloads.us.xiph.org/releases/icecast/$pkgname-$pkgver.tar.gz icecast rc.icecast) sha1sums=('a52b13505548c2eff2c64aab95a42dcafda11227' \ '98ce0b4d3f2234944de42e90434b7deb3068c478' \ - 'e3c53bb8d458c14a6d0bf5fae931ed6b45591f7f') + '2d2f9d2f73547476a4f5c538a2b48c73841d2e22') -build() { +build() +{ Fmkdir /var/log/icecast Fbuild --sysconfdir=/etc/icecast Fmv /usr/share/doc/$pkgname /usr/share/doc/$pkgname-$pkgver Ffile /etc/sysconfig/icecast - Frcd icecast + Frcd2 chown -R nobody $Fdestdir/var/log/icecast chgrp -R nogroup $Fdestdir/var/log/icecast diff --git a/source/network-extra/icecast/messages/icecast.en b/source/network-extra/icecast/messages/icecast.en deleted file mode 100644 index af7937c..0000000 --- a/source/network-extra/icecast/messages/icecast.en +++ /dev/null @@ -1,2 +0,0 @@ -stopicecast="Stopping icecast" -starticecast="Starting icecast" diff --git a/source/network-extra/icecast/messages/icecast.fr b/source/network-extra/icecast/messages/icecast.fr deleted file mode 100644 index 16c07b9..0000000 --- a/source/network-extra/icecast/messages/icecast.fr +++ /dev/null @@ -1,2 +0,0 @@ -stopicecast="Arret de icecast" -starticecast="Demarrage de icecast" diff --git a/source/network-extra/icecast/messages/icecast.hu b/source/network-extra/icecast/messages/icecast.hu deleted file mode 100644 index d7b531a..0000000 --- a/source/network-extra/icecast/messages/icecast.hu +++ /dev/null @@ -1,2 +0,0 @@ -stopicecast="A icecast leállítása" -starticecast="A icecast indítása" diff --git a/source/network-extra/icecast/rc.icecast b/source/network-extra/icecast/rc.icecast index 90820ca..0772069 100644 --- a/source/network-extra/icecast/rc.icecast +++ b/source/network-extra/icecast/rc.icecast @@ -1,25 +1,42 @@ #!/bin/sh # (c) 2005 Tuxbubling <tuxbubl...@tiscali.fr> -# rc.distccd for FrugalWare +# (c) 2009 Priyank Gosalia <priyan...@gmail.com> +# rc.icecase for FrugalWare # distributed under GPL License -. /etc/rc.d/rc.functions -. /etc/sysconfig/icecast - -# chkconfig: 2345 99 03 -# description: Start/stop icecast streaming server - -if [ "$1" = "stop" ]; then - stop "$stopicecast" - killall icecast - ok $? -elif [ "$1" = "restart" ]; then - "$0" stop - sleep 1 - "$0" start -else # start - start "$starticecast" - /usr/bin/icecast $ICECAST_ARGS > /dev/null 2> /dev/null - ok $? -fi +# chkconfig: 2345 99 01 +# description: Icecast streaming server + +source /lib/initscripts/functions +source /etc/sysconfig/icecast + +actions=(start stop restart status) +daemon=$"Icecast streaming server" + +pid="pidof icecast 2>/dev/null" + +rc_start() +{ + start_msg + if [ -z "$(eval $pid)" ]; then + /usr/bin/icecast $ICECAST_ARGS > /dev/null 2> /dev/null + ok $? + else + ok 999 + fi +} + +rc_stop() +{ + stop_msg + if [ -n "$(eval $pid)" ]; then + killall icecast + ok $? + else + ok 999 + fi +} + +rc_exec $1 + diff --git a/source/network-extra/icecast/rc.icecast.new b/source/network-extra/icecast/rc.icecast.new deleted file mode 100644 index d6623a0..0000000 --- a/source/network-extra/icecast/rc.icecast.new +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash - -# (c) 2005 Marcus Habermehl <bmh198...@yahoo.de> -# (c) 2005 Tuxbubling <tuxbubl...@tiscali.fr> -# rc.icecast for FrugalWare -# distributed under GPL License - -# chkconfig: 2345 99 03 -# description: Start/stop icecast streaming server - -source /lib/initscripts/functions -TEXTDOMAIN=icecast - -actions=(restart start status stop) -daemon=$"icecast" - -pid="$(pidof icecast 2> /dev/null)" - -rc_start() -{ - start_msg - if [ -z ${pid} ] ; then - source /etc/sysconfig/icecast - /usr/bin/icecast ${ICECAST_ARGS} > /dev/null 2> /dev/null - ok $? - else - ok 999 - fi -} - -rc_stop() -{ - stop_msg - if [ ! -z ${pid} ] ; then - killall icecast - ok $? - else - ok 999 - fi -} - -rc_exec $1 - -# vim: ft=sh _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git