From: Koen Kooi Date: Sat, 14 Jun 2008 16:31:09 +0000 (+0000) Subject: pulseaudio esd wrapper: meta package that transparently replaces the esound server... X-Git-Tag: Release-2010-05/1~6695 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f148387226b979c4ffaa5000320c102f9a4cfb1;p=openembedded.git pulseaudio esd wrapper: meta package that transparently replaces the esound server with pulseaudio --- diff --git a/packages/pulseaudio/pulseaudio-esd-wrapper.bb b/packages/pulseaudio/pulseaudio-esd-wrapper.bb new file mode 100644 index 0000000000..30164225df --- /dev/null +++ b/packages/pulseaudio/pulseaudio-esd-wrapper.bb @@ -0,0 +1,40 @@ +DESCRIPTION = "Drop-in Esound replacement" +LICENSE = "GPLv2" + +RCONFLICTS = "esd" +RREPLACES = "esd" + +RDEPENDS = " \ + pulseaudio-server \ + pulseaudio-misc \ + pulseaudio-lib-protocol-esound \ + pulseaudio-module-esound-compat-spawnfd \ + pulseaudio-module-esound-compat-spawnpid \ + pulseaudio-module-esound-protocol-tcp \ + pulseaudio-module-esound-protocol-unix \ +" + +do_install() { + install -d ${D}/${bindir} + ln -sf ${bindir}/esdcompat ${D}/${bindir}/esd +} + + +PACKAGE_ARCH = "all" + +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-esound-protocol-unix/d e /load-module\ module-esound-protocol-tcp/d /etc/pulse/session +fi +# Load esound modules +echo "load-module module-esound-protocol-tcp" >> /etc/pulse/session +echo "load-module module-esound-protocol-unix" >> /etc/pulse/session +} +