summaryrefslogtreecommitdiff
path: root/packages/pulseaudio/pulse.inc
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2007-08-10 08:30:17 +0000
committerMichael Lauer <mickey@vanille-media.de>2007-08-10 08:30:17 +0000
commit5af596c69226a8f1667ce77d5bd7a98ec083e018 (patch)
tree3e48b0d48f45d5f7b425eb37a22c03961a90ff63 /packages/pulseaudio/pulse.inc
parentc958cfa97e8397df6648970bab8db9884437285d (diff)
pulseaudio: set postinst to correct package
Diffstat (limited to 'packages/pulseaudio/pulse.inc')
-rw-r--r--packages/pulseaudio/pulse.inc27
1 files changed, 12 insertions, 15 deletions
diff --git a/packages/pulseaudio/pulse.inc b/packages/pulseaudio/pulse.inc
index 0158a8a9cc..6594fcfbb6 100644
--- a/packages/pulseaudio/pulse.inc
+++ b/packages/pulseaudio/pulse.inc
@@ -65,28 +65,25 @@ FILES_${PN}-gconf-helper = "${libexecdir}/pulse/gconf-helper"
FILES_${PN}-misc = "${bindir}/*"
CONFFILES_pulseaudio-server = "\
- ${sysconfdir}/pulse/default.pa \
- ${sysconfdir}/pulse/daemon.conf \
- ${sysconfdir}/pulse/client.conf \
- "
-pkg_postinst_libppulse() {
-if test "x$D" != "x"; then
- exit 1
-else
+ ${sysconfdir}/pulse/default.pa \
+ ${sysconfdir}/pulse/daemon.conf \
+ ${sysconfdir}/pulse/client.conf \
+ "
+
+pkg_postinst_${PN}-server() {
+ # can't do this offline
+ if [ "x$D" != "x" ]; then
+ exit 1
+ fi
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_libpulse() {
-if test "x$D" != "x"; then
- exit 1
-else
- deluser pulse
-fi
+pkg_postrm_${PN}-server() {
+ deluser pulse || true
}
python populate_packages_prepend() {