summaryrefslogtreecommitdiff
path: root/packages/pulseaudio
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-09-29 12:35:16 +0000
committerKoen Kooi <koen@openembedded.org>2008-09-29 12:35:16 +0000
commit4da75935cddcc6f6a91dc486845b23c8d7fe175a (patch)
tree094f331299ef86cd0cb008798015b7847dea7c73 /packages/pulseaudio
parente244c9dcbdef627422c27cb1aca33b91c2dbcdc3 (diff)
pulseaudio-meta: overwrite config files at install time.
* this is still flaky as hell and plain wrong, but at least the package can actually be installed now
Diffstat (limited to 'packages/pulseaudio')
-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 \
"