summaryrefslogtreecommitdiff
path: root/packages/pulseaudio/pulseaudio-meta_0.9.10.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/pulseaudio/pulseaudio-meta_0.9.10.bb')
-rw-r--r--packages/pulseaudio/pulseaudio-meta_0.9.10.bb22
1 files changed, 17 insertions, 5 deletions
diff --git a/packages/pulseaudio/pulseaudio-meta_0.9.10.bb b/packages/pulseaudio/pulseaudio-meta_0.9.10.bb
index b11963b869..1c53ee0b91 100644
--- a/packages/pulseaudio/pulseaudio-meta_0.9.10.bb
+++ b/packages/pulseaudio/pulseaudio-meta_0.9.10.bb
@@ -18,7 +18,7 @@ RDEPENDS = "\
libasound-module-ctl-pulse \
libasound-module-pcm-pulse \
"
-PR = "r2"
+PR = "r3"
inherit update-rc.d
@@ -37,8 +37,8 @@ do_install() {
install -d ${D}/${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/pulseaudio ${D}/${sysconfdir}/init.d/
install -d ${D}/${sysconfdir}/pulse
- install -m 0755 ${WORKDIR}/session ${D}/${sysconfdir}/pulse/session
- install -m 0644 ${WORKDIR}/asound.conf ${D}/${sysconfdir}
+ install -m 0755 ${WORKDIR}/session ${D}/${sysconfdir}/pulse/session.pulseaudio-meta
+ install -m 0644 ${WORKDIR}/asound.conf ${D}/${sysconfdir}/asound.conf.pulseaudio-meta
if [ "x${TARGET_PFPU}" == "xsoft" ] ; then
sed -i -e s:resample-method=sinc-fastest:resample-method=trivial: ${D}${sysconfdir}/init.d/pulseaudio
@@ -47,8 +47,20 @@ do_install() {
PACKAGE_ARCH = "${MACHINE_ARCH}"
+pkg_postinst_${PN} () {
+#!/bin/sh
+if [ "x$D" != "x" ]; then
+ exit 1
+fi
+
+# Overwrite existing configfiles, yuck!
+cp /etc/pulse/session.pulseaudio-meta /etc/pulse/session
+cp /etc/asound.conf.pulseaudio-meta /etc/asound.conf
+}
+
+
CONFFILES_${PN} = "\
${sysconfdir}/init.d/pulseaudio \
- ${sysconfdir}/pulse/session \
- ${sysconfdir}/asound.conf \
+ ${sysconfdir}/pulse/session.pulseaudio-meta \
+ ${sysconfdir}/asound.conf.pulseaudio-meta \
"