summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-04-12 12:49:01 +0000
committerKoen Kooi <koen@openembedded.org>2008-04-12 12:49:01 +0000
commit7e2d206310f03a9e9c42124899956d2afd66d40d (patch)
tree669b69e036aaf5d0622f26cf21bdf7669836c3c8
parent7ca48a4e9ef4a50e831ddd695de76c5351cc872a (diff)
angstrom-zeroconf-audio: add meta package to enable zeroconf audio
* see http://poh9.blogspot.com/2008/02/for-my-own-future-reference-how-to.html
-rw-r--r--packages/angstrom/angstrom-zeroconf-audio.bb26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/angstrom/angstrom-zeroconf-audio.bb b/packages/angstrom/angstrom-zeroconf-audio.bb
new file mode 100644
index 0000000000..9cbbba4053
--- /dev/null
+++ b/packages/angstrom/angstrom-zeroconf-audio.bb
@@ -0,0 +1,26 @@
+DESCRIPTION = "Meta package to enable zeroconf audio with pulseaudio"
+DEPENDS = "avahi pulseaudio"
+RDEPENDS = "pulseaudio-module-zeroconf-publish avahi-daemon"
+
+do_compile() {
+ :
+}
+
+PACKAGE_ARCH = "all"
+ALLOW_EMPTY_${PN} = "1"
+
+pkg_postinst_${PN} () {
+#!/bin/sh
+if [ "x$D" != "x" ]; then
+ exit 1
+fi
+
+mkdir -p /etc/pulse || true
+# Remove existing entries
+if [ -e /etc/pulse/session ] ; then
+ sed -i -e /load-module\ module-native-protocol-tcp/d -e /load-module\ module-zeroconf-publish/d /etc/pulse/session
+fi
+# Enable network and zeroconf plugins, allow localhost and usbnet access (where available)
+echo "load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.0.0/16" >> /etc/pulse/session
+echo "load-module module-zeroconf-publish" >> /etc/pulse/session
+}