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 | |
parent | 7a1dacab41f5028091288a73a456eb9829f1b42b (diff) |
pulseaudio: create pulse user and create /var/run/pulse via volatiles
Diffstat (limited to 'packages/pulseaudio')
-rw-r--r-- | packages/pulseaudio/files/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/pulseaudio/files/volatiles.04_pulse | 2 | ||||
-rw-r--r-- | packages/pulseaudio/pulseaudio_0.9.5.bb | 38 |
3 files changed, 37 insertions, 3 deletions
diff --git a/packages/pulseaudio/files/.mtn2git_empty b/packages/pulseaudio/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/pulseaudio/files/.mtn2git_empty diff --git a/packages/pulseaudio/files/volatiles.04_pulse b/packages/pulseaudio/files/volatiles.04_pulse new file mode 100644 index 0000000000..5b1998032b --- /dev/null +++ b/packages/pulseaudio/files/volatiles.04_pulse @@ -0,0 +1,2 @@ +# <type> <owner> <group> <mode> <path> <linksource> +d pulse pulse 0755 /var/run/pulse none 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 |