summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-12-22 12:45:39 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-12-22 12:46:07 +0000
commit1d14e8873a7f6445fe2fc4e2fc2ee35b7345e5eb (patch)
tree92c104620b362e6bc4d8149e95e2695be821e1f9
parent7cb979f0f90f2644da24a049cb13e4c21861a857 (diff)
downloadaports-1d14e8873a7f6445fe2fc4e2fc2ee35b7345e5eb.tar.bz2
aports-1d14e8873a7f6445fe2fc4e2fc2ee35b7345e5eb.tar.xz
main/vlc: make sure vlc user are in audio/video groups
fixes #874
-rw-r--r--main/vlc/APKBUILD2
-rw-r--r--main/vlc/vlc-daemon.pre-install12
2 files changed, 11 insertions, 3 deletions
diff --git a/main/vlc/APKBUILD b/main/vlc/APKBUILD
index c09d036b5..50bdec6d5 100644
--- a/main/vlc/APKBUILD
+++ b/main/vlc/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vlc
pkgver=1.1.13
-pkgrel=0
+pkgrel=1
pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player"
pkgusers="vlc"
pkggroups="vlc"
diff --git a/main/vlc/vlc-daemon.pre-install b/main/vlc/vlc-daemon.pre-install
index 45f66bff6..17473498c 100644
--- a/main/vlc/vlc-daemon.pre-install
+++ b/main/vlc/vlc-daemon.pre-install
@@ -1,5 +1,13 @@
#!/bin/sh
-addgroup -S vlc 2>/dev/null
-adduser -S -h /home/vlc -s /bin/sh -G vlc -G audio -G video -D vlc &>/dev/null
+groups="vlc audio video"
+for group in $groups do
+ addgroup -S $group 2>/dev/null
+done
+adduser -S -h /home/vlc -s /bin/sh -G vlc -D vlc 2>/dev/null
+
+# make sure vlc are in all groups
+for group in $groups do
+ addgroup vlc $group 2>/dev/null
+done
exit 0