diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2011-10-07 13:56:32 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2011-10-07 13:56:32 +0000 |
commit | f4d2baf23a09387be726e8a1c5f3ee5947f94904 (patch) | |
tree | 2d1317242b947faec3c7fd006db4b40d1f112676 /main/darkice | |
parent | 04e29b22eb62bb286e68c655b4ad126e5f7154ad (diff) | |
download | aports-f4d2baf23a09387be726e8a1c5f3ee5947f94904.tar.bz2 aports-f4d2baf23a09387be726e8a1c5f3ee5947f94904.tar.xz |
testing/darkice: move to main
Diffstat (limited to 'main/darkice')
-rw-r--r-- | main/darkice/APKBUILD | 36 | ||||
-rw-r--r-- | main/darkice/darkice.confd | 2 | ||||
-rwxr-xr-x | main/darkice/darkice.initd | 20 |
3 files changed, 58 insertions, 0 deletions
diff --git a/main/darkice/APKBUILD b/main/darkice/APKBUILD new file mode 100644 index 0000000000..004fd3fe2e --- /dev/null +++ b/main/darkice/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=darkice +pkgver=1.0 +pkgrel=5 +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 + darkice.confd" +_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 + install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname +} +md5sums="1804e63d42a9703d01fe378c9a77c473 darkice-1.0.tar.gz +9afe1b3d2046261d38814abc8304152b darkice.initd +8aaa2212a0e6eff3922e0dba7fab4028 darkice.confd" diff --git a/main/darkice/darkice.confd b/main/darkice/darkice.confd new file mode 100644 index 0000000000..1a610d0f4e --- /dev/null +++ b/main/darkice/darkice.confd @@ -0,0 +1,2 @@ +DARKICE_OPTS="-c /etc/darkice/darkice.cfg" +DARKICE_BIN="/usr/bin/darkice" diff --git a/main/darkice/darkice.initd b/main/darkice/darkice.initd new file mode 100755 index 0000000000..1c47771347 --- /dev/null +++ b/main/darkice/darkice.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript + +depend() { + need net icecast + after firewall +} + +start() { + ebegin "Starting DarkIce" + start-stop-daemon --start --quiet --background \ + --exec ${DARKICE_BIN} -- ${DARKICE_OPTS} + eend $? +} + + +stop() { + ebegin "Stopping DarkIce" + start-stop-daemon --stop --exec $DARKICE_BIN + eend $? +} |