blob: 59b6684744d57f907e9c1a8e1827a16d74f78f75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Jeremy Thomerson <jeremy@thomersonfamily.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=wireshark
pkgver=2.2.4
pkgrel=0
pkgdesc="A network protocol analyzer - GTK version"
url="http://www.wireshark.org"
arch="all"
license="GPL2+"
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 bash"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-gtk $pkgname-common tshark"
source="http://www.wireshark.org/download/src/$pkgname-$pkgver.tar.bz2
fix-androiddump.patch"
_builddir="$srcdir"/$pkgname-$pkgver
# security fixes:
# 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="6d0878ba931ea379f6e675d4cba6536b wireshark-2.2.4.tar.bz2
38a681230ccab441e64d1fc6f52858c4 fix-androiddump.patch"
sha256sums="42a7fb35eed5a32478153e24601a284bb50148b7ba919c3e8452652f4c2a3911 wireshark-2.2.4.tar.bz2
21aaa55e6b4bb9144146e8e3284512d2c5ee5deee8921b66a513b819b57d8b01 fix-androiddump.patch"
sha512sums="f3ff6979fdd1c7cf6abe386ec476fee12045ae6df3c8162568d521532045d5eb6ad689262c38b1766c75c9fc1068f480fcd64f0aa077b3a0ceea7c16dbdabc65 wireshark-2.2.4.tar.bz2
d462e3289c1350a9f712a21d2d1973977e5dd7989f7beff4b71498551174458f572a23f267c83552f088466cb9d2721df2b2eb807514db6ad1e0877dbc87fc6d fix-androiddump.patch"
|