Date: Friday, December 8, 2017 @ 18:04:27 Author: anatolik Revision: 273357
archrelease: copy trunk to community-testing-x86_64 Added: wireshark/repos/community-testing-x86_64/ wireshark/repos/community-testing-x86_64/PKGBUILD (from rev 273356, wireshark/trunk/PKGBUILD) wireshark/repos/community-testing-x86_64/do_not_use_svn_version.patch (from rev 273356, wireshark/trunk/do_not_use_svn_version.patch) wireshark/repos/community-testing-x86_64/wireshark.install (from rev 273356, wireshark/trunk/wireshark.install) ------------------------------+ PKGBUILD | 100 +++++++++++++++++++++++++++++++++++++++++ do_not_use_svn_version.patch | 13 +++++ wireshark.install | 10 ++++ 3 files changed, 123 insertions(+) Copied: wireshark/repos/community-testing-x86_64/PKGBUILD (from rev 273356, wireshark/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2017-12-08 18:04:27 UTC (rev 273357) @@ -0,0 +1,100 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Timothy Redaelli <timothy.redae...@gmail.com> +# Contributor: Guillaume ALAUX <guilla...@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.4.3 +pkgrel=1 +arch=('x86_64') +license=('GPL2') +makedepends=('c-ares' 'geoip' 'qt5-tools' 'qt5-multimedia' 'gtk3' 'krb5' 'libpcap' 'bash' 'libssh' + 'gnutls' 'portaudio' 'lua52' 'python' 'desktop-file-utils' 'hicolor-icon-theme') +options=('!emptydirs') +url='https://www.wireshark.org/' +source=(https://www.wireshark.org/download/src/${pkgbase}-${pkgver}.tar.xz + do_not_use_svn_version.patch) +sha256sums=('189495996b68940626cb53b31c8902fa1bb5a96b61217cea42734c13925ff12e' + '3981bb46f592e319f9c679c5e215ae0af828044a3b64d49d2cf0305ecacf4691') + +prepare() { + cd ${pkgbase}-${pkgver} + + # Avoid ugly "svn rev unknown from unknown" version string + patch -p1 < "${srcdir}/do_not_use_svn_version.patch" +} + +build() { + cd ${pkgbase}-${pkgver} + + ./autogen.sh + ./configure \ + --prefix=/usr \ + --with-qt=5 \ + --with-gtk=3 \ + --with-pcap \ + --with-zlib \ + --with-lua \ + --with-portaudio \ + --with-ssl \ + --with-krb5 \ + --with-c-ares \ + --with-geoip + make all +} + +package_wireshark-cli() { + pkgdesc='a free network protocol analyzer for Unix/Linux and Windows - CLI version' + depends=('c-ares' 'geoip' 'krb5' 'libgcrypt' 'libcap' 'libpcap' 'gnutls' 'glib2' 'lua52' 'libssh' 'libxml2' 'libnghttp2') + 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 -Dm 644 config.h register.h ws_diag_control.h ws_symbol_export.h -t "${pkgdir}/usr/include/${pkgbase}" + for d in epan epan/crypt epan/dfilter epan/dissectors epan/ftypes epan/wmem wiretap wsutil; do + install -Dm 644 ${d}/*.h -t "${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') + + 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) + + cd ${pkgbase}-${pkgver} + install -Dm 755 .libs/wireshark-gtk "${pkgdir}/usr/bin/wireshark-gtk" + install -Dm 644 wireshark-gtk.desktop -t "${pkgdir}/usr/share/applications" +} + +package_wireshark-qt() { + pkgdesc='a free network protocol analyzer for Unix/Linux and Windows - Qt frontend' + depends=('desktop-file-utils' 'qt5-multimedia' 'wireshark-cli' 'wireshark-common') + + cd ${pkgbase}-${pkgver} + install -Dm 755 .libs/wireshark "${pkgdir}/usr/bin/wireshark" + install -Dm 644 wireshark.desktop -t "${pkgdir}/usr/share/applications" +} + +# vim: ts=2 sw=2 et: Copied: wireshark/repos/community-testing-x86_64/do_not_use_svn_version.patch (from rev 273356, wireshark/trunk/do_not_use_svn_version.patch) =================================================================== --- community-testing-x86_64/do_not_use_svn_version.patch (rev 0) +++ community-testing-x86_64/do_not_use_svn_version.patch 2017-12-08 18:04:27 UTC (rev 273357) @@ -0,0 +1,13 @@ +diff --git a/Makefile.am b/Makefile.am +index e2a3cc5..b6ec684 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -711,7 +711,7 @@ am__v_PERL_0 = @echo " PERL " $@; + am__v_PERL_1 = + + version.h: FORCE +- $(AM_V_PERL)$(PERL) $(srcdir)/make-version.pl $(srcdir) ++ touch $@ + + # + # Build shell scripts by doing variable substitution. Copied: wireshark/repos/community-testing-x86_64/wireshark.install (from rev 273356, wireshark/trunk/wireshark.install) =================================================================== --- community-testing-x86_64/wireshark.install (rev 0) +++ community-testing-x86_64/wireshark.install 2017-12-08 18:04:27 UTC (rev 273357) @@ -0,0 +1,10 @@ +post_install() { + post_upgrade + 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 CAP_DAC_OVERRIDE+eip' usr/bin/dumpcap +}