diff options
author | Koen Kooi <koen@openembedded.org> | 2007-02-04 16:10:20 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-02-04 16:10:20 +0000 |
commit | 42609ed1d3614d365530a1121bce6c1aa78423da (patch) | |
tree | eb35f58d343b423ab64658619f6859c1ceb25e8d /packages/pulseaudio/pulseaudio_0.9.5.bb | |
parent | 7a1dacab41f5028091288a73a456eb9829f1b42b (diff) |
pulseaudio: create pulse user and create /var/run/pulse via volatiles
Diffstat (limited to 'packages/pulseaudio/pulseaudio_0.9.5.bb')
-rw-r--r-- | packages/pulseaudio/pulseaudio_0.9.5.bb | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/packages/pulseaudio/pulseaudio_0.9.5.bb b/packages/pulseaudio/pulseaudio_0.9.5.bb index b6209143f0..4cdee78bb2 100644 --- a/packages/pulseaudio/pulseaudio_0.9.5.bb +++ b/packages/pulseaudio/pulseaudio_0.9.5.bb @@ -10,10 +10,13 @@ DEPENDS += "alsa-lib" RPROVIDES = "esound esd" -PR = "r3" +PR = "r4" SRC_URI = "http://0pointer.de/lennart/projects/pulseaudio/pulseaudio-${PV}.tar.gz" +SRC_URI += "file://volatiles.04_pulse" + + inherit autotools pkgconfig EXTRA_OECONF = "\ @@ -27,19 +30,48 @@ EXTRA_OECONF = "\ PARALLEL_MAKE = "" + +do_install_append() { + install -m 0644 ${WORKDIR}/volatiles.04_pulse ${D}${sysconfdir}/default/volatiles/volatiles.04_pulse +} + + LEAD_SONAME = "libpulse.so" -PACKAGES =+ "${PN}-conf ${PN}-bin" +PACKAGES =+ "${PN}-bin ${PN}-conf" PACKAGES_DYNAMIC = "pulseaudio-module-* pulseaudio-lib-*" FILES_${PN}-conf = "${sysconfdir}" -FILES_${PN}-bin = "${bindir}/*" +FILES_${PN}-bin = "${bindir}/* \ + ${sysconfdir}/default/volatiles/volatiles.04_pulse" CONFFILES_${PN}-conf = "\ ${sysconfdir}/pulse/default.pa \ ${sysconfdir}/pulse/daemon.conf \ ${sysconfdir}/pulse/client.conf \ " +pkg_postinst_${PN}-bin() { +if test "x$D" != "x"; then + exit 1 +else + grep -q pulse: /etc/group || addgroup pulse + grep -q pulse: /etc/passwd || \ + adduser --disabled-password --home=/var/run/pulse/ --system \ + --ingroup pulse --no-create-home -g "Pulse audio daemon" pulse + /etc/init.d/populate-volatile.sh update +fi +} + +pkg_postrm${PN}-bin() { +if test "x$D" != "x"; then + exit 1 +else + deluser pulse +fi +} + + + do_stage() { autotools_stage_all |