aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 c09d036b5a..50bdec6d5e 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 45f66bff6b..17473498c9 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