summaryrefslogtreecommitdiff
path: root/user/tcpdump/APKBUILD
blob: 81b99632b50176946e35aaacb9b152f8a4484760 (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
72
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=tcpdump
pkgver=4.99.1
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
	rm-vendor-specific-tests.patch"

# secfixes:
#   4.99.1-r0:
#     - CVE-2020-8037
#   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="53d31355e1a6ef5a65bb3bf72454169fc80adf973a327a5768840e6ccf0550fbeb3c8a41f959635076d871df0619680321910a3a97879607f481cdaa8b7ceda7  tcpdump-4.99.1.tar.gz
83e731c2c253e69a9fb5d2d42abbe8cc6439d3d9dadd2e412ed0e2a83d820228a1f4018fa1627568c723d376562a85bd099dd2738fd79dcc63abcfc8306fece3  rm-vendor-specific-tests.patch"