Commit 58b03290 authored by Leonardo Arena's avatar Leonardo Arena

testing/darkice: initd fix, confd added

parent 2d1f5c77
......@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=darkice
pkgver=1.0
pkgrel=2
pkgrel=3
pkgdesc="Live audio streamer. Records audio from an audio interface, encodes it and sends it to a streaming server"
url="http://code.google.com/p/darkice/"
arch="all"
......@@ -13,7 +13,8 @@ makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://darkice.googlecode.com/files/$pkgname-$pkgver.tar.gz
darkice.initd"
darkice.initd
darkice.confd"
_builddir=$srcdir/$pkgname-$pkgver
......@@ -31,7 +32,9 @@ package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
md5sums="1804e63d42a9703d01fe378c9a77c473 darkice-1.0.tar.gz
01f20101740179a123442bb9dc6d1715 darkice.initd"
f4382e0b6bb7a802370e9f37d41f3cb1 darkice.initd
8aaa2212a0e6eff3922e0dba7fab4028 darkice.confd"
DARKICE_OPTS="-c /etc/darkice/darkice.cfg"
DARKICE_BIN="/usr/bin/darkice"
#!/sbin/runscript
DARKICE_BIN="/usr/bin/darkice"
DARKICE_OPTS="-c /etc/darkice/darkice.cfg"
depend() {
need net
need net icecast
after firewall
}
start() {
ebegin "Starting DarkIce"
start-stop-daemon --start --quiet --background --exec $DARKICE_BIN \
-- $DARKICE_OPTS > /dev/null
start-stop-daemon --start --quiet --background \
--exec ${DARKICE_BIN} -- ${DARKICE_OPTS}
eend $?
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment