summaryrefslogtreecommitdiff
path: root/user/tcpdump/APKBUILD
blob: f39d5c9d5c73bb9e40bb285cb14e4fd5c777d726 (plain) (blame)
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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=tcpdump
pkgver=4.9.3
pkgrel=0
pkgdesc="A tool for network monitoring and data acquisition"
url="http://www.tcpdump.org"
arch="all"
license="BSD-3-Clause"
depends=""
makedepends="libpcap-dev openssl-dev perl"
subpackages="$pkgname-doc"
source="http://www.tcpdump.org/release/$pkgname-$pkgver.tar.gz
	CVE-2018-19519.patch
	"

# secfixes:
#   4.9.2-r1:
#     - CVE-2018-19519
#   4.9.2-r2:
#     - CVE-2017-16808
#   4.9.3-r0:
#     - CVE-2018-10103
#     - CVE-2018-10105
#     - CVE-2018-14461
#     - CVE-2018-14462
#     - CVE-2018-14463
#     - CVE-2018-14464
#     - CVE-2018-14465
#     - CVE-2018-14466
#     - CVE-2018-14467
#     - CVE-2018-14468
#     - CVE-2018-14469
#     - CVE-2018-14470
#     - CVE-2018-14879
#     - CVE-2018-14880
#     - CVE-2018-14881
#     - CVE-2018-14882
#     - CVE-2018-16227
#     - CVE-2018-16228
#     - CVE-2018-16229
#     - CVE-2018-16230
#     - CVE-2018-16300
#     - CVE-2018-16301
#     - CVE-2018-16451
#     - CVE-2018-16452
#     - CVE-2019-15166
#     - CVE-2019-15167

build () {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/sbin/tcpdump.4*
}

sha512sums="3aec673f78b996a4df884b1240e5d0a26a2ca81ee7aca8a2e6d50255bb53476e008a5ced4409e278a956710d8a4d31d85bbb800c9f1aab92b0b1046b59292a22  tcpdump-4.9.3.tar.gz
eb4232e434064ec59b07840aa394cfcc05c89e817f2d4ebeb4da1dbb1c910fe1805857356d6304ebdb16e32aa6476ce90f164aabc60501b493fd5601b380af7e  CVE-2018-19519.patch"