# Contributor: Sergei Lukin # Contributor: Ɓukasz Jendrysik # Contributor: Jeremy Thomerson # Maintainer: Natanael Copa pkgname=wireshark pkgver=2.4.4 pkgrel=0 pkgdesc="A network protocol analyzer - GTK version" url="http://www.wireshark.org" arch="all" license="GPL-2.0-or-later" depends="" makedepends="bison flex perl-dev glib glib-dev libpcap-dev libcap-dev gtk+3.0-dev c-ares-dev pcre-dev gnutls-dev libgcrypt-dev libressl-dev libnl3-dev qt5-qtbase-dev qt5-qttools-dev lua5.2-dev bash portaudio-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-gtk $pkgname-common tshark" source="http://www.wireshark.org/download/src/$pkgname-$pkgver.tar.xz fix-udpdump.patch " builddir="$srcdir"/$pkgname-$pkgver # secfixes: # 2.4.4-r0: # - CVE-2018-5334 # - CVE-2018-5335 # - CVE-2018-5336 # 2.4.3-r0: # - CVE-2017-17083 # - CVE-2017-17084 # - CVE-2017-17085 # 2.4.2-r0: # - CVE-2017-15191 # - CVE-2017-15192 # - CVE-2017-15193 # 2.4.1-r0: # - CVE-2017-13765 # - CVE-2017-13766 # - CVE-2017-13767 # 2.2.10-r0: # - CVE-2017-15191 # - CVE-2017-15192 # - CVE-2017-15193 # 2.2.9-r0: # - CVE-2017-13765 # - CVE-2017-13766 # - CVE-2017-13767 # 2.2.8-r0: # - CVE-2017-11406 # - CVE-2017-11407 # - CVE-2017-11408 # 2.2.7-r0: # - CVE-2017-9343 # - CVE-2017-9344 # - CVE-2017-9345 # - CVE-2017-9346 # - CVE-2017-9347 # - CVE-2017-9348 # - CVE-2017-9349 # - CVE-2017-9350 # - CVE-2017-9351 # - CVE-2017-9352 # - CVE-2017-9353 # - CVE-2017-9354 # 2.2.6-r0: # - CVE-2017-7700 # - CVE-2017-7701 # - CVE-2017-7702 # - CVE-2017-7703 # - CVE-2017-7704 # - CVE-2017-7705 # 2.2.5-r0: # - CVE-2017-6467 # - CVE-2017-6468 # - CVE-2017-6469 # - CVE-2017-6470 # - CVE-2017-6471 # - CVE-2017-6472 # - CVE-2017-6473 # - CVE-2017-6474 # 2.2.4-r1: # - CVE-2017-6014 # 2.0.5-r0: # - CVE-2016-6505 # - CVE-2016-6506 # - CVE-2016-6508 # - CVE-2016-6509 # - CVE-2016-6510 # - CVE-2016-6511 # - CVE-2016-6512 # - CVE-2016-6513 build() { cd "$builddir" # configure script searches for uic and uic-qt4 but not uic-qt5 # we set path so it finds 'uic' export PATH="$PATH:/usr/lib/qt5/bin" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-ssl \ --with-gnutls \ --with-qt=5 \ --with-gtk=3 \ --with-lua make } check() { cd "$builddir" make check } package() { cd "$builddir" make -j1 DESTDIR="$pkgdir" install } common() { local i pkgdesc="network protoccol analyzer - common files" mkdir -p "$subpkgdir"/usr/lib "$subpkgdir"/usr/share \ "$subpkgdir"/usr/bin mv "$pkgdir"/usr/share/wireshark "$subpkgdir"/usr/share/ mv "$pkgdir"/usr/lib/* "$subpkgdir"/usr/lib/ # move all bins except wireshark for i in "$pkgdir"/usr/bin/*; do case "$i" in */tshark|*/wireshark|*-gtk) continue;; esac mv "$i" "$subpkgdir"/usr/bin/ done } tshark() { pkgdesc="network protoccol analyzer - console version" install -d "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/tshark "$subpkgdir"/usr/bin/tshark } gtk() { pkgdesc="wireshark - GTK GUI" install -d "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/wireshark-gtk "$subpkgdir"/usr/bin/ } sha512sums="b6625f860a10e10babd686820680a5e169594f171e7e176fc96325255ec096481da2e8a0fdff10b42cead82011740714a4331003dda0d48bf3b419da37834bdc wireshark-2.4.4.tar.xz 951677dd125b1e36b351cc87a98e8b8d0391d184c7695594dd4270334d86ada1dff5f14cd960da9c5d5d26fc801c42f0219b2db6269f3c526c841c7940d2f369 fix-udpdump.patch"