[arch-commits] Commit in wireshark/trunk (PKGBUILD wireshark.install)

Ionut Biru ibiru at archlinux.org
Mon Aug 2 09:35:29 UTC 2010


    Date: Monday, August 2, 2010 @ 05:35:28
  Author: ibiru
Revision: 86489

upgpkg: wireshark 1.2.10-2 change wireshark GID to 150 if exists

Modified:
  wireshark/trunk/PKGBUILD
  wireshark/trunk/wireshark.install

-------------------+
 PKGBUILD          |    2 +-
 wireshark.install |    6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-08-02 08:29:16 UTC (rev 86488)
+++ PKGBUILD	2010-08-02 09:35:28 UTC (rev 86489)
@@ -3,7 +3,7 @@
 
 pkgname=wireshark
 pkgver=1.2.10
-pkgrel=1
+pkgrel=2
 pkgdesc="A free network protocol analyzer for Unix/Linux and Windows"
 arch=('i686' 'x86_64')
 license=('GPL2')

Modified: wireshark.install
===================================================================
--- wireshark.install	2010-08-02 08:29:16 UTC (rev 86488)
+++ wireshark.install	2010-08-02 09:35:28 UTC (rev 86489)
@@ -1,5 +1,9 @@
 post_install() {
-    getent group wireshark >/dev/null 2>&1 || groupadd -g 150 wireshark &>/dev/null
+    if getent group wireshark >/dev/null 2>&1; then
+        groupmod -g 150 wireshark &>/dev/null
+    else
+        groupadd -g 150 wireshark &>/dev/null
+    fi
     setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap
     echo "NOTE: To run wireshark as normal user you have to add yourself into wireshark group"
 }




More information about the arch-commits mailing list