Commit 42f11922 authored by Seblu's avatar Seblu
Browse files

Remove icecast-kh

parent 6582f304
Loading
Loading
Loading
Loading

icecast-kh/PKGBUILD

deleted100644 → 0
+0 −42
Original line number Diff line number Diff line
# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>

pkgname=icecast-kh
pkgver=2.3.3_kh3
pkgrel=1
pkgdesc='KH branche extends the offical release of Icecast with new features and bug fixes.'
arch=('i686' 'x86_64')
url='http://karlheyes.github.com'
license=('GPL2')
conflict=('icecast' 'icecast-svn')
provides=("icecast=${pkgver/_*}")
depends=('openssl' 'libxml2' 'libxslt' 'libvorbis' 'libogg' 'libtheora' 'speex' 'curl')
optdepends=('ices-kh: client for icecast server')
backup=('etc/icecast.xml' 'etc/logrotate.d/icecast')
source=("https://github.com/downloads/karlheyes/$pkgname/${pkgname%-*}-${pkgver//_/-}.tar.gz"
        'logrotate'
        'rc.d')
md5sums=('8d265e730851e9bccc14c09d0d157cca'
         '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

deleted100644 → 0
+0 −8
Original line number Diff line number Diff line
/var/log/icecast/*log {
    missingok
    notifempty
    sharedscripts
    postrotate
    endscript
}

icecast-kh/rc.d

deleted100644 → 0
+0 −31
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: