Loading icecast-kh/PKGBUILD 0 → 100644 +39 −0 Original line number Diff line number Diff line # Maintainer: Sebastien Luttringer <seblu+arch@seblu.net> pkgname=icecast-kh pkgver=2.3.2_kh30 pkgrel=1 pkgdesc='KH branche extends the offical release of Icecast with new features and bug fixes.' arch=('i686' 'x86_64') url='http://www.xiphicecast.webspace.virginmedia.com' license=('GPL2') depends=('openssl' 'libxml2' 'libxslt' 'libvorbis' 'libogg' 'libtheora' 'speex' 'curl') conflict=('icecast' 'icecast-svn') provides=("icecast=${pkgver/_*}") backup=('etc/icecast.xml' 'etc/logrotate.d/icecast') source=("http://www.xiphicecast.webspace.virginmedia.com/${pkgname/-*}-${pkgver//_/-}.tar.gz" 'logrotate' 'rc.d') md5sums=('0bc7668c20586fb340a1e1b2065bc106' '59c6552bcb1dd9fb542af8670dfabd3c' '8bec8be276a9204bf26fe51a5855e626') build() { cd ${pkgname/-*}-${pkgver//_/-} ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var make } package() { cd ${pkgname/-*}-${pkgver//_/-} make DESTDIR="$pkgdir" install # rc.d install -D -m 755 "${srcdir}/rc.d" "${pkgdir}/etc/rc.d/icecast" # logrorate install -D -m 644 "${srcdir}/logrotate" "${pkgdir}/etc/logrotate.d/icecast" # log directory install -d -o root -g log -m 750 "${pkgdir}/var/log/icecast" } # vim:set ts=2 sw=2 ft=sh et: icecast-kh/logrotate 0 → 100644 +8 −0 Original line number Diff line number Diff line /var/log/icecast/*log { missingok notifempty sharedscripts postrotate endscript } icecast-kh/rc.d 0 → 100644 +31 −0 Original line number Diff line number Diff line #!/bin/bash . /etc/rc.conf . /etc/rc.d/functions case "$1" in start) stat_busy 'Starting Icecast Server' /usr/bin/icecast -b -c /etc/icecast.xml </dev/null &>/dev/null if [[ $? -gt 0 ]]; then stat_fail else add_daemon icecast stat_done fi ;; stop) stat_busy 'Stopping Icecast Server' rm_daemon icecast stat_done ;; restart) $0 stop sleep 1 $0 start ;; *) echo "usage: $0 {start|stop|restart}" esac # vim:set ts=2 sw=2 ft=sh et: Loading
icecast-kh/PKGBUILD 0 → 100644 +39 −0 Original line number Diff line number Diff line # Maintainer: Sebastien Luttringer <seblu+arch@seblu.net> pkgname=icecast-kh pkgver=2.3.2_kh30 pkgrel=1 pkgdesc='KH branche extends the offical release of Icecast with new features and bug fixes.' arch=('i686' 'x86_64') url='http://www.xiphicecast.webspace.virginmedia.com' license=('GPL2') depends=('openssl' 'libxml2' 'libxslt' 'libvorbis' 'libogg' 'libtheora' 'speex' 'curl') conflict=('icecast' 'icecast-svn') provides=("icecast=${pkgver/_*}") backup=('etc/icecast.xml' 'etc/logrotate.d/icecast') source=("http://www.xiphicecast.webspace.virginmedia.com/${pkgname/-*}-${pkgver//_/-}.tar.gz" 'logrotate' 'rc.d') md5sums=('0bc7668c20586fb340a1e1b2065bc106' '59c6552bcb1dd9fb542af8670dfabd3c' '8bec8be276a9204bf26fe51a5855e626') build() { cd ${pkgname/-*}-${pkgver//_/-} ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var make } package() { cd ${pkgname/-*}-${pkgver//_/-} make DESTDIR="$pkgdir" install # rc.d install -D -m 755 "${srcdir}/rc.d" "${pkgdir}/etc/rc.d/icecast" # logrorate install -D -m 644 "${srcdir}/logrotate" "${pkgdir}/etc/logrotate.d/icecast" # log directory install -d -o root -g log -m 750 "${pkgdir}/var/log/icecast" } # vim:set ts=2 sw=2 ft=sh et:
icecast-kh/logrotate 0 → 100644 +8 −0 Original line number Diff line number Diff line /var/log/icecast/*log { missingok notifempty sharedscripts postrotate endscript }
icecast-kh/rc.d 0 → 100644 +31 −0 Original line number Diff line number Diff line #!/bin/bash . /etc/rc.conf . /etc/rc.d/functions case "$1" in start) stat_busy 'Starting Icecast Server' /usr/bin/icecast -b -c /etc/icecast.xml </dev/null &>/dev/null if [[ $? -gt 0 ]]; then stat_fail else add_daemon icecast stat_done fi ;; stop) stat_busy 'Stopping Icecast Server' rm_daemon icecast stat_done ;; restart) $0 stop sleep 1 $0 start ;; *) echo "usage: $0 {start|stop|restart}" esac # vim:set ts=2 sw=2 ft=sh et: