# Contributor: Sergei Lukin # Contributor: Ɓukasz Jendrysik # Contributor: Jeremy Thomerson # Maintainer: Natanael Copa pkgname=wireshark pkgver=2.0.16 pkgrel=1 pkgdesc="A network protocol analyzer - GTK version" url="http://www.wireshark.org" arch="all" license="GPL2+" depends="" makedepends="bison flex perl glib glib-dev libpcap-dev libcap-dev gtk+3.0-dev c-ares-dev pcre-dev gnutls-dev libgcrypt-dev openssl-dev libnl3-dev qt5-qtbase-dev bash" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-gtk $pkgname-common tshark" source="http://www.wireshark.org/download/src/$pkgname-$pkgver.tar.bz2" _builddir="$srcdir"/$pkgname-$pkgver # security fixes: # 2.0.16-r0: # - CVE-2017-15191 # - CVE-2017-15192 # - CVE-2017-15193 # 2.0.15-r0: # - CVE-2017-13765 # - CVE-2017-13767 # 2.0.14-r0: # - CVE-2017-11406 # - CVE-2017-11407 # - CVE-2017-11408 # - CVE-2017-11409 # 2.0.13-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-9354 # 2.0.12-r0: # - CVE-2017-7700 # - CVE-2017-7701 # - CVE-2017-7702 # - CVE-2017-7703 # - CVE-2017-7704 # - CVE-2017-7705 # - wnpa-sec-2017-18 # - wnpa-sec-2017-19 # - wnpa-sec-2017-20 # - wnpa-sec-2017-21 # 2.0.11-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.0.10-r0: # - CVE-2017-5596 # - CVE-2017-5597 # 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 prepare() { cd "$_builddir" for i in $source; do case "$i" in *.patch) msg "Applying $i" patch -p1 -i "$srcdir"/$i || return 1 ;; esac done } 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 \ || return 1 make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 } 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/ } md5sums="b52e27737b16034b7a216d74a4e8fc4b wireshark-2.0.14.tar.bz2" sha256sums="88d8712ebbc4bc53125071a54649c5b3b85b38845621a35ab9cc2c8b4a4f5b41 wireshark-2.0.14.tar.bz2" sha512sums="ab7d69bd94c076cdd11dece0db8b1cf53e84f9f5eac666f44ea43c9746392f0ba38d963b73589ed5fefea27e119d9cee1e12ee53013e365ab7951fb958d88e81 wireshark-2.0.14.tar.bz2" md5sums="e4d889a8ef8b3c817ac4b5b80a645eda wireshark-2.0.16.tar.bz2" sha256sums="84ffd8dbbf81cca01e11acab014f9def42cb1ba53f673b151a28e411b6f74acd wireshark-2.0.16.tar.bz2" sha512sums="54ef50daeeb727559c85e5f807039cdd43b8a0d3419da94b7e2db296db7319665baa3f21ed4cfa0976592d74ec596d62b9b609a0e6bb2837fee385ed54178539 wireshark-2.0.16.tar.bz2"