[arch-commits] Commit in wireshark/repos (10 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Mon Dec 7 00:44:37 UTC 2015


    Date: Monday, December 7, 2015 @ 01:44:37
  Author: bpiotrowski
Revision: 149420

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  wireshark/repos/community-staging-i686/
  wireshark/repos/community-staging-i686/PKGBUILD
    (from rev 149418, wireshark/trunk/PKGBUILD)
  wireshark/repos/community-staging-i686/wireshark-common.install
    (from rev 149419, wireshark/trunk/wireshark-common.install)
  wireshark/repos/community-staging-i686/wireshark-gui.install
    (from rev 149419, wireshark/trunk/wireshark-gui.install)
  wireshark/repos/community-staging-i686/wireshark.install
    (from rev 149419, wireshark/trunk/wireshark.install)
  wireshark/repos/community-staging-x86_64/
  wireshark/repos/community-staging-x86_64/PKGBUILD
    (from rev 149419, wireshark/trunk/PKGBUILD)
  wireshark/repos/community-staging-x86_64/wireshark-common.install
    (from rev 149419, wireshark/trunk/wireshark-common.install)
  wireshark/repos/community-staging-x86_64/wireshark-gui.install
    (from rev 149419, wireshark/trunk/wireshark-gui.install)
  wireshark/repos/community-staging-x86_64/wireshark.install
    (from rev 149419, wireshark/trunk/wireshark.install)

---------------------------------------------------+
 community-staging-i686/PKGBUILD                   |   93 ++++++++++++++++++++
 community-staging-i686/wireshark-common.install   |   12 ++
 community-staging-i686/wireshark-gui.install      |   11 ++
 community-staging-i686/wireshark.install          |   18 +++
 community-staging-x86_64/PKGBUILD                 |   93 ++++++++++++++++++++
 community-staging-x86_64/wireshark-common.install |   12 ++
 community-staging-x86_64/wireshark-gui.install    |   11 ++
 community-staging-x86_64/wireshark.install        |   18 +++
 8 files changed, 268 insertions(+)

Copied: wireshark/repos/community-staging-i686/PKGBUILD (from rev 149418, wireshark/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-12-07 00:44:37 UTC (rev 149420)
@@ -0,0 +1,93 @@
+# $Id$
+# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Guillaume ALAUX <guillaume at archlinux.org>
+# Contributor: Florian Pritz <bluewind at jabber dot ccc dot de>
+pkgname=('wireshark-cli' 'wireshark-common' 'wireshark-gtk' 'wireshark-qt')
+pkgbase=wireshark
+pkgver=2.0.0
+pkgrel=2
+arch=('i686' 'x86_64')
+license=('GPL2')
+makedepends=('qt5-base' 'gtk3' 'krb5' 'libpcap' 'bash' 'gnutls' 'portaudio'
+             'lua52' 'python' 'desktop-file-utils' 'hicolor-icon-theme')
+options=(!emptydirs)
+url='http://www.wireshark.org/'
+source=(http://www.wireshark.org/download/src/${pkgbase}-${pkgver}.tar.bz2)
+sha1sums=('f8b226b40e36e4c431b4f70bc3f523b6dd53a501')
+
+build() {
+  cd ${pkgbase}-${pkgver}
+
+  ./autogen.sh
+  ./configure \
+      --prefix=/usr \
+      --with-qt=5 \
+      --with-gtk3=yes \
+      --with-pcap \
+      --with-zlib \
+      --with-lua \
+      --with-portaudio \
+      --with-ssl \
+      --with-krb5
+  make all
+}
+
+package_wireshark-cli() {
+  pkgdesc='a free network protocol analyzer for Unix/Linux and Windows - CLI version'
+  depends=('krb5' 'libgcrypt' 'libcap' 'libpcap' 'gnutls' 'glib2' 'lua52')
+  install=wireshark.install
+  conflicts=(wireshark)
+
+  cd ${pkgbase}-${pkgver}
+
+  make DESTDIR="${pkgdir}" install
+  make DESTDIR="${pkgdir}" uninstall-local
+
+  #wireshark uid group is 150
+  chgrp 150 "${pkgdir}/usr/bin/dumpcap"
+  chmod 754 "${pkgdir}/usr/bin/dumpcap"
+  rm "${pkgdir}/usr/bin/wireshark" "${pkgdir}/usr/bin/wireshark-gtk"
+
+  # Headers
+  install -dm755 "${pkgdir}"/usr/include/${pkgbase}/{epan/{crypt,dfilter,dissectors,ftypes,wmem},wiretap,wsutil}
+
+  install -m644 color.h config.h register.h ws_symbol_export.h "${pkgdir}/usr/include/${pkgbase}"
+  for d in epan epan/crypt epan/dfilter epan/dissectors epan/ftypes epan/wmem wiretap wsutil; do
+    install -m644 ${d}/*.h "${pkgdir}"/usr/include/${pkgbase}/${d}
+  done
+}
+
+package_wireshark-common() {
+  pkgdesc='Common files used by wireshark-gtk and wireshark-qt'
+  depends=('hicolor-icon-theme' 'shared-mime-info' 'xdg-utils')
+  install=wireshark-common.install
+
+  cd ${pkgbase}-${pkgver}
+
+  make DESTDIR="${pkgdir}" install-data-local
+  rm "${pkgdir}"/usr/share/applications/wireshark{,-gtk}.desktop
+}
+
+package_wireshark-gtk() {
+  pkgdesc='a free network protocol analyzer for Unix/Linux and Windows - GTK frontend'
+  depends=('desktop-file-utils' 'gtk3' 'portaudio' 'wireshark-cli' 'wireshark-common')
+  replaces=(wireshark)
+  conflicts=(wireshark)
+  install=wireshark-gui.install
+
+  cd ${pkgbase}-${pkgver}
+
+  install -Dm755 .libs/wireshark-gtk "${pkgdir}/usr/bin/wireshark-gtk"
+  install -Dm644 wireshark-gtk.desktop "${pkgdir}/usr/share/applications/wireshark-gtk.desktop"
+}
+
+package_wireshark-qt() {
+  pkgdesc='a free network protocol analyzer for Unix/Linux and Windows - Qt frontend'
+  depends=('desktop-file-utils' 'qt5-base' 'wireshark-cli' 'wireshark-common')
+  install=wireshark-gui.install
+
+  cd ${pkgbase}-${pkgver}
+
+  install -Dm755 .libs/wireshark "${pkgdir}/usr/bin/wireshark"
+  install -Dm644 wireshark.desktop "${pkgdir}/usr/share/applications/wireshark.desktop"
+}

Copied: wireshark/repos/community-staging-i686/wireshark-common.install (from rev 149419, wireshark/trunk/wireshark-common.install)
===================================================================
--- community-staging-i686/wireshark-common.install	                        (rev 0)
+++ community-staging-i686/wireshark-common.install	2015-12-07 00:44:37 UTC (rev 149420)
@@ -0,0 +1,12 @@
+post_install() {
+    xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+    update-mime-database usr/share/mime &>/dev/null
+}
+
+post_upgrade() {
+    post_install
+}
+
+post_remove() {
+    post_install
+}

Copied: wireshark/repos/community-staging-i686/wireshark-gui.install (from rev 149419, wireshark/trunk/wireshark-gui.install)
===================================================================
--- community-staging-i686/wireshark-gui.install	                        (rev 0)
+++ community-staging-i686/wireshark-gui.install	2015-12-07 00:44:37 UTC (rev 149420)
@@ -0,0 +1,11 @@
+post_install() {
+    update-desktop-database -q
+}
+
+post_upgrade() {
+    post_install
+}
+
+post_remove() {
+    post_install
+}

Copied: wireshark/repos/community-staging-i686/wireshark.install (from rev 149419, wireshark/trunk/wireshark.install)
===================================================================
--- community-staging-i686/wireshark.install	                        (rev 0)
+++ community-staging-i686/wireshark.install	2015-12-07 00:44:37 UTC (rev 149420)
@@ -0,0 +1,18 @@
+post_install() {
+    getent group wireshark >/dev/null 2>&1 ||  groupadd -g 150 wireshark &>/dev/null
+
+    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"
+}
+
+post_upgrade() {
+    getent group wireshark >/dev/null 2>&1 ||  groupadd -g 150 wireshark &>/dev/null
+
+    setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap
+}
+
+post_remove() {
+    if getent group wireshark >/dev/null 2>&1; then
+        groupdel wireshark
+    fi
+}

Copied: wireshark/repos/community-staging-x86_64/PKGBUILD (from rev 149419, wireshark/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-12-07 00:44:37 UTC (rev 149420)
@@ -0,0 +1,93 @@
+# $Id$
+# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Guillaume ALAUX <guillaume at archlinux.org>
+# Contributor: Florian Pritz <bluewind at jabber dot ccc dot de>
+pkgname=('wireshark-cli' 'wireshark-common' 'wireshark-gtk' 'wireshark-qt')
+pkgbase=wireshark
+pkgver=2.0.0
+pkgrel=2
+arch=('i686' 'x86_64')
+license=('GPL2')
+makedepends=('qt5-base' 'gtk3' 'krb5' 'libpcap' 'bash' 'gnutls' 'portaudio'
+             'lua52' 'python' 'desktop-file-utils' 'hicolor-icon-theme')
+options=(!emptydirs)
+url='http://www.wireshark.org/'
+source=(http://www.wireshark.org/download/src/${pkgbase}-${pkgver}.tar.bz2)
+sha1sums=('f8b226b40e36e4c431b4f70bc3f523b6dd53a501')
+
+build() {
+  cd ${pkgbase}-${pkgver}
+
+  ./autogen.sh
+  ./configure \
+      --prefix=/usr \
+      --with-qt=5 \
+      --with-gtk3=yes \
+      --with-pcap \
+      --with-zlib \
+      --with-lua \
+      --with-portaudio \
+      --with-ssl \
+      --with-krb5
+  make all
+}
+
+package_wireshark-cli() {
+  pkgdesc='a free network protocol analyzer for Unix/Linux and Windows - CLI version'
+  depends=('krb5' 'libgcrypt' 'libcap' 'libpcap' 'gnutls' 'glib2' 'lua52')
+  install=wireshark.install
+  conflicts=(wireshark)
+
+  cd ${pkgbase}-${pkgver}
+
+  make DESTDIR="${pkgdir}" install
+  make DESTDIR="${pkgdir}" uninstall-local
+
+  #wireshark uid group is 150
+  chgrp 150 "${pkgdir}/usr/bin/dumpcap"
+  chmod 754 "${pkgdir}/usr/bin/dumpcap"
+  rm "${pkgdir}/usr/bin/wireshark" "${pkgdir}/usr/bin/wireshark-gtk"
+
+  # Headers
+  install -dm755 "${pkgdir}"/usr/include/${pkgbase}/{epan/{crypt,dfilter,dissectors,ftypes,wmem},wiretap,wsutil}
+
+  install -m644 color.h config.h register.h ws_symbol_export.h "${pkgdir}/usr/include/${pkgbase}"
+  for d in epan epan/crypt epan/dfilter epan/dissectors epan/ftypes epan/wmem wiretap wsutil; do
+    install -m644 ${d}/*.h "${pkgdir}"/usr/include/${pkgbase}/${d}
+  done
+}
+
+package_wireshark-common() {
+  pkgdesc='Common files used by wireshark-gtk and wireshark-qt'
+  depends=('hicolor-icon-theme' 'shared-mime-info' 'xdg-utils')
+  install=wireshark-common.install
+
+  cd ${pkgbase}-${pkgver}
+
+  make DESTDIR="${pkgdir}" install-data-local
+  rm "${pkgdir}"/usr/share/applications/wireshark{,-gtk}.desktop
+}
+
+package_wireshark-gtk() {
+  pkgdesc='a free network protocol analyzer for Unix/Linux and Windows - GTK frontend'
+  depends=('desktop-file-utils' 'gtk3' 'portaudio' 'wireshark-cli' 'wireshark-common')
+  replaces=(wireshark)
+  conflicts=(wireshark)
+  install=wireshark-gui.install
+
+  cd ${pkgbase}-${pkgver}
+
+  install -Dm755 .libs/wireshark-gtk "${pkgdir}/usr/bin/wireshark-gtk"
+  install -Dm644 wireshark-gtk.desktop "${pkgdir}/usr/share/applications/wireshark-gtk.desktop"
+}
+
+package_wireshark-qt() {
+  pkgdesc='a free network protocol analyzer for Unix/Linux and Windows - Qt frontend'
+  depends=('desktop-file-utils' 'qt5-base' 'wireshark-cli' 'wireshark-common')
+  install=wireshark-gui.install
+
+  cd ${pkgbase}-${pkgver}
+
+  install -Dm755 .libs/wireshark "${pkgdir}/usr/bin/wireshark"
+  install -Dm644 wireshark.desktop "${pkgdir}/usr/share/applications/wireshark.desktop"
+}

Copied: wireshark/repos/community-staging-x86_64/wireshark-common.install (from rev 149419, wireshark/trunk/wireshark-common.install)
===================================================================
--- community-staging-x86_64/wireshark-common.install	                        (rev 0)
+++ community-staging-x86_64/wireshark-common.install	2015-12-07 00:44:37 UTC (rev 149420)
@@ -0,0 +1,12 @@
+post_install() {
+    xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+    update-mime-database usr/share/mime &>/dev/null
+}
+
+post_upgrade() {
+    post_install
+}
+
+post_remove() {
+    post_install
+}

Copied: wireshark/repos/community-staging-x86_64/wireshark-gui.install (from rev 149419, wireshark/trunk/wireshark-gui.install)
===================================================================
--- community-staging-x86_64/wireshark-gui.install	                        (rev 0)
+++ community-staging-x86_64/wireshark-gui.install	2015-12-07 00:44:37 UTC (rev 149420)
@@ -0,0 +1,11 @@
+post_install() {
+    update-desktop-database -q
+}
+
+post_upgrade() {
+    post_install
+}
+
+post_remove() {
+    post_install
+}

Copied: wireshark/repos/community-staging-x86_64/wireshark.install (from rev 149419, wireshark/trunk/wireshark.install)
===================================================================
--- community-staging-x86_64/wireshark.install	                        (rev 0)
+++ community-staging-x86_64/wireshark.install	2015-12-07 00:44:37 UTC (rev 149420)
@@ -0,0 +1,18 @@
+post_install() {
+    getent group wireshark >/dev/null 2>&1 ||  groupadd -g 150 wireshark &>/dev/null
+
+    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"
+}
+
+post_upgrade() {
+    getent group wireshark >/dev/null 2>&1 ||  groupadd -g 150 wireshark &>/dev/null
+
+    setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap
+}
+
+post_remove() {
+    if getent group wireshark >/dev/null 2>&1; then
+        groupdel wireshark
+    fi
+}



More information about the arch-commits mailing list