Date: Sunday, March 1, 2015 @ 13:43:37
  Author: svenstaro
Revision: 128486

upgpkg: murmur 1.2.8-3

Fix group handling

Modified:
  murmur/trunk/PKGBUILD
  murmur/trunk/murmur.install

----------------+
 PKGBUILD       |    4 ++--
 murmur.install |   11 ++---------
 2 files changed, 4 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2015-03-01 12:41:26 UTC (rev 128485)
+++ PKGBUILD    2015-03-01 12:43:37 UTC (rev 128486)
@@ -5,7 +5,7 @@
 
 pkgname=murmur
 pkgver=1.2.8
-pkgrel=2
+pkgrel=3
 pkgdesc="The voice chat application server for Mumble"
 arch=('i686' 'x86_64')
 url="http://mumble.sourceforge.net";
@@ -37,7 +37,7 @@
     -e "s|#uname=|uname=murmur|" \
     -i scripts/murmur.ini
 
-  install -dm755 ${pkgdir}/var/lib/murmur
+  install -dm755 -o 122 -g 122 ${pkgdir}/var/lib/murmur
   install -Dm755 release/murmurd ${pkgdir}/usr/bin/murmurd
   install -Dm644 scripts/murmur.ini ${pkgdir}/etc/murmur.ini
   install -Dm644 ${srcdir}/murmur.dbus.conf 
${pkgdir}/etc/dbus-1/system.d/murmur.conf

Modified: murmur.install
===================================================================
--- murmur.install      2015-03-01 12:41:26 UTC (rev 128485)
+++ murmur.install      2015-03-01 12:43:37 UTC (rev 128486)
@@ -1,16 +1,9 @@
 post_install() {
-    getent group murmur > /dev/null || groupadd -r -g 122 murmur 1>/dev/null
-    getent passwd murmur > /dev/null || useradd -r -u 122 -d /var/lib/murmur 
-g murmur -s /bin/false murmur 1>/dev/null
+    getent group murmur > /dev/null || groupadd -g 122 murmur 1>/dev/null
+    getent passwd murmur > /dev/null || useradd -u 122 -d /var/lib/murmur -g 
murmur -s /bin/false murmur 1>/dev/null
 
-    chown -R murmur:murmur /var/lib/murmur
-
     echo "You might have to reload dbus before launching murmur:"
     echo "    systemctl reload dbus"
     echo "Don't forget to set the superuser password:"
     echo "    murmurd -ini /etc/murmur.ini -supw <your-password>"
 }
-
-post_remove() {
-    getent passwd murmur > /dev/null && userdel murmur 1>/dev/null
-    getent group murmur > /dev/null && groupdel murmur 1>/dev/null
-}

Reply via email to