[arch-commits] Commit in icecast/trunk (PKGBUILD icecastd)
Lukas Fleischer
lfleischer at nymeria.archlinux.org
Mon May 13 07:46:41 UTC 2013
Date: Monday, May 13, 2013 @ 09:46:41
Author: lfleischer
Revision: 90558
upgpkg: icecast 2.3.3-4
Remove rc.d script.
Modified:
icecast/trunk/PKGBUILD
Deleted:
icecast/trunk/icecastd
----------+
PKGBUILD | 7 +-----
icecastd | 66 -------------------------------------------------------------
2 files changed, 2 insertions(+), 71 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-05-13 07:36:14 UTC (rev 90557)
+++ PKGBUILD 2013-05-13 07:46:41 UTC (rev 90558)
@@ -6,7 +6,7 @@
pkgname=icecast
pkgver=2.3.3
-pkgrel=3
+pkgrel=4
pkgdesc='Streaming audio over the Internet'
arch=('i686' 'x86_64')
license=('GPL')
@@ -15,12 +15,10 @@
backup=('etc/icecast.xml'
'etc/logrotate.d/icecast')
source=("http://downloads.us.xiph.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz"
- 'icecastd'
'icecast.logrotate'
'start-by-nobody.patch'
'icecast.service')
md5sums=('2b5d1b40778922e5f6431b7758c359ad'
- 'e823c1fdb080aae3d0c54ef8be95f7cb'
'59c6552bcb1dd9fb542af8670dfabd3c'
'd8e929d2214123a1954da4383bf16583'
'1468e59f76de194579b615889e20198f')
@@ -43,8 +41,7 @@
sed -i -e 's/icecast2/icecast/g' debian/icecast2.1
install -Dm644 debian/icecast2.1 "${pkgdir}/usr/share/man/man1/icecast.1"
- # install rc.d script and logrotate config (taken from Fedora)
- install -Dm755 "${srcdir}/icecastd" "${pkgdir}/etc/rc.d/icecast"
+ # install logrotate config (taken from Fedora)
install -Dm644 "${srcdir}/icecast.logrotate" "${pkgdir}/etc/logrotate.d/icecast"
# create log directory
Deleted: icecastd
===================================================================
--- icecastd 2013-05-13 07:36:14 UTC (rev 90557)
+++ icecastd 2013-05-13 07:46:41 UTC (rev 90558)
@@ -1,66 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-timeo=30
-
-getPID() {
- pgrep -u nobody icecast 2>/dev/null
-}
-
-case $1 in
- start)
- stat_busy "Starting Icecast Server"
- if getPID >/dev/null; then
- # already running
- stat_fail
- exit 1
- else
- /usr/bin/icecast -b -c /etc/icecast.xml &>/dev/null
- while (( timeo > 0 )); do
- if getPID >/dev/null; then
- add_daemon icecast
- stat_done
- exit 0
- fi
- sleep 1
- (( timeo-- ))
- done
- stat_fail
- exit 1
- fi
- ;;
-
- stop)
- stat_busy "Stopping Icecast Server"
- if ! getPID >/dev/null; then
- # not running
- stat_done
- exit 1
- fi
- if ! kill $(getPID) &> /dev/null; then
- stat_fail
- exit 1
- fi
- while (( timeo > 0 )); do
- if getPID >/dev/null; then
- rm_daemon icecast
- stat_done
- exit 0
- fi
- sleep 1
- (( timeo-- ))
- done
- stat_fail
- exit 1
- ;;
-
- restart)
- $0 stop
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0
More information about the arch-commits
mailing list