summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/pulseaudio
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-multimedia/pulseaudio')
-rw-r--r--meta/recipes-multimedia/pulseaudio/pulseaudio.inc18
1 files changed, 8 insertions, 10 deletions
diff --git a/meta/recipes-multimedia/pulseaudio/pulseaudio.inc b/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
index 131d659629..4170857b64 100644
--- a/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
+++ b/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
@@ -16,7 +16,7 @@ SRC_URI = "http://0pointer.de/lennart/projects/pulseaudio/pulseaudio-${PV}.tar.g
16 file://gcc4-compile-fix.patch \ 16 file://gcc4-compile-fix.patch \
17 file://volatiles.04_pulse" 17 file://volatiles.04_pulse"
18 18
19inherit autotools pkgconfig 19inherit autotools pkgconfig useradd
20 20
21EXTRA_OECONF = "\ 21EXTRA_OECONF = "\
22 --disable-lynx \ 22 --disable-lynx \
@@ -50,6 +50,12 @@ do_install_append() {
50 fi 50 fi
51} 51}
52 52
53USERADD_PACKAGES = "pulseaudio-server"
54GROUPADD_PARAM_pulseaudio-server = "pulse"
55USERADD_PARAM_pulseaudio-server = "--system --home /var/run/pulse \
56 --no-create-home --shell /bin/false \
57 --groups audio,pulse --gid pulse pulse"
58
53PACKAGES =+ "libpulsecore libpulsecommon libpulsedsp libpulse libpulse-simple libpulse-browse libpulse-mainloop-glib \ 59PACKAGES =+ "libpulsecore libpulsecommon libpulsedsp libpulse libpulse-simple libpulse-browse libpulse-mainloop-glib \
54 pulseaudio-server pulseaudio-misc pulseaudio-gconf-helper" 60 pulseaudio-server pulseaudio-misc pulseaudio-gconf-helper"
55 61
@@ -90,20 +96,12 @@ pkg_postinst_${PN}-server() {
90 if [ "x$D" != "x" ]; then 96 if [ "x$D" != "x" ]; then
91 exit 1 97 exit 1
92 fi 98 fi
93 grep -q pulse: ${sysconfdir}/group || addgroup pulse 99
94 grep -q pulse: ${sysconfdir}/passwd || \
95 adduser --disabled-password --home=/var/run/pulse --system \
96 --ingroup pulse --no-create-home -g "Pulse audio daemon" pulse
97 addgroup pulse audio
98 if [ -e ${sysconfdir}/init.d/populate-volatile.sh ] ; then 100 if [ -e ${sysconfdir}/init.d/populate-volatile.sh ] ; then
99 ${sysconfdir}/init.d/populate-volatile.sh update 101 ${sysconfdir}/init.d/populate-volatile.sh update
100 fi 102 fi
101} 103}
102 104
103pkg_postrm_${PN}-server() {
104 deluser pulse || true
105}
106
107python populate_packages_prepend() { 105python populate_packages_prepend() {
108 #d.setVar('PKG_pulseaudio', 'pulseaudio') 106 #d.setVar('PKG_pulseaudio', 'pulseaudio')
109 107