diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2011-03-31 08:35:55 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2011-03-31 08:35:55 +0000 |
commit | 58b032904dfdeb71eb44423a89e16c368954abdd (patch) | |
tree | 151ca6008e9b5dd42e96bf5b0ded06e052b4aaa2 | |
parent | 2d1f5c7758911890b79850336203c14f31ed6bf0 (diff) | |
download | aports-58b032904dfdeb71eb44423a89e16c368954abdd.tar.bz2 aports-58b032904dfdeb71eb44423a89e16c368954abdd.tar.xz |
testing/darkice: initd fix, confd added
-rw-r--r-- | testing/darkice/APKBUILD | 9 | ||||
-rw-r--r-- | testing/darkice/darkice.confd | 2 | ||||
-rwxr-xr-x | testing/darkice/darkice.initd | 10 |
3 files changed, 11 insertions, 10 deletions
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 <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" 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 $? } |