# Tanım: Ağ üzerinden ses akışı sağlamak
# URL: http://www.icecast.org/
# Paketçi: milisarge
# Gerekler: libxslt libvorbis speex libtheora
# Grup: medya

isim=icecast
surum=2.4.3
devir=1
kaynak=(http://downloads.us.xiph.org/releases/icecast/icecast-$surum.tar.gz
		icecast.logrotate
		start-by-nobody.patch)

derle() {
  cd "${SRC}/${isim}-${surum}"
  patch -Np1 -i "${SRC}/start-by-nobody.patch"
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  make
  make DESTDIR="${PKG}" install
  install -Dm644 "${SRC}/icecast.logrotate" "${PKG}/etc/logrotate.d/icecast"
  # create log directory
  install -d -g99 -o99 "${PKG}/var/log/icecast"
  rm -rf $PKG/usr/share/doc
}
