aboutsummaryrefslogtreecommitdiffstats
path: root/testing/darkice
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2011-03-30 17:20:25 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2011-03-30 17:20:25 +0000
commit989b2c78d00c8176cf5c2dbb4c4f965be1a2e862 (patch)
treeb0645b5e6672ca3e40f47a58fccb6856bde5b66c /testing/darkice
parentb8ae3637eb9534f2e380ffebe027786b4fd5c9a5 (diff)
downloadaports-989b2c78d00c8176cf5c2dbb4c4f965be1a2e862.tar.bz2
aports-989b2c78d00c8176cf5c2dbb4c4f965be1a2e862.tar.xz
testing/darkice: new aport - live audio streamer
Diffstat (limited to 'testing/darkice')
-rw-r--r--testing/darkice/APKBUILD37
-rwxr-xr-xtesting/darkice/darkice.initd24
2 files changed, 61 insertions, 0 deletions
diff --git a/testing/darkice/APKBUILD b/testing/darkice/APKBUILD
new file mode 100644
index 0000000000..6ba52cb9f5
--- /dev/null
+++ b/testing/darkice/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=darkice
+pkgver=1.0
+pkgrel=1
+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"
+license="GPL"
+depends=
+depends_dev="alsa-lib-dev faac-dev lame-dev libvorbis-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://darkice.googlecode.com/files/$pkgname-$pkgver.tar.gz
+ darkice.initd"
+
+_builddir=$srcdir/$pkgname-$pkgver
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc/darkice \
+ --without-aacplus \
+ --without-twolame
+ make || return 1
+}
+
+package() {
+ mkdir -p "$pkgdir"/etc/$pkgname
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+}
+
+md5sums="1804e63d42a9703d01fe378c9a77c473 darkice-1.0.tar.gz
+5a580c39bd27f82abd785dc50d126734 darkice.initd"
diff --git a/testing/darkice/darkice.initd b/testing/darkice/darkice.initd
new file mode 100755
index 0000000000..5087dbd83c
--- /dev/null
+++ b/testing/darkice/darkice.initd
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+
+DARKICE_BIN="/usr/bin/darkice"
+DARKICE_OPTS="-c /etc/darkice/darkice.cfg"
+
+
+depend() {
+ need net
+ after firewall
+}
+
+start() {
+ ebegin "Starting DarkIce"
+ start-stop-daemon --start --exec $DARKICE_BIN \
+ -- $DARKICE_OPTS > /dev/null
+ eend $?
+}
+
+
+stop() {
+ ebegin "Stopping DarkIce"
+ start-stop-daemon --stop --exec $DARKICE_BIN
+ eend $?
+}