From 58b032904dfdeb71eb44423a89e16c368954abdd Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Thu, 31 Mar 2011 08:35:55 +0000 Subject: testing/darkice: initd fix, confd added --- testing/darkice/APKBUILD | 9 ++++++--- testing/darkice/darkice.confd | 2 ++ testing/darkice/darkice.initd | 10 +++------- 3 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 testing/darkice/darkice.confd (limited to 'testing') diff --git a/testing/darkice/APKBUILD b/testing/darkice/APKBUILD index db32bd46d..97170d55e 100644 --- a/testing/darkice/APKBUILD +++ b/testing/darkice/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Francesco Colista 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" diff --git a/testing/darkice/darkice.confd b/testing/darkice/darkice.confd new file mode 100644 index 000000000..1a610d0f4 --- /dev/null +++ b/testing/darkice/darkice.confd @@ -0,0 +1,2 @@ +DARKICE_OPTS="-c /etc/darkice/darkice.cfg" +DARKICE_BIN="/usr/bin/darkice" diff --git a/testing/darkice/darkice.initd b/testing/darkice/darkice.initd index f722c5214..1c4777134 100755 --- a/testing/darkice/darkice.initd +++ b/testing/darkice/darkice.initd @@ -1,18 +1,14 @@ #!/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 $? } -- cgit v1.2.3