aboutsummaryrefslogtreecommitdiffstats
path: root/main/tcpdump/APKBUILD
blob: 138edd0a7905e5c4915e8255724a6b3f62f5e94f (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tcpdump
pkgver=4.9.1
pkgrel=0
pkgdesc="A tool for network monitoring and data acquisition"
url="http://www.tcpdump.org"
arch="all"
license="BSD"
depends=""
makedepends="libpcap-dev libressl-dev perl"
subpackages="$pkgname-doc"
source="http://www.$pkgname.org/release/$pkgname-$pkgver.tar.gz"

# secfixes:
#   4.9.0-r0:
#     - CVE-2016-7922
#     - CVE-2016-7923
#     - CVE-2016-7924
#     - CVE-2016-7925
#     - CVE-2016-7926
#     - CVE-2016-7927
#     - CVE-2016-7928
#     - CVE-2016-7929
#     - CVE-2016-7930
#     - CVE-2016-7931
#     - CVE-2016-7932
#     - CVE-2016-7933
#     - CVE-2016-7934
#     - CVE-2016-7935
#     - CVE-2016-7936
#     - CVE-2016-7937
#     - CVE-2016-7938
#     - CVE-2016-7939
#     - CVE-2016-7940
#     - CVE-2016-7973
#     - CVE-2016-7974
#     - CVE-2016-7975
#     - CVE-2016-7983
#     - CVE-2016-7984
#     - CVE-2016-7985
#     - CVE-2016-7986
#     - CVE-2016-7992
#     - CVE-2016-7993
#     - CVE-2016-8574
#     - CVE-2016-8575
#     - CVE-2017-5202
#     - CVE-2017-5203
#     - CVE-2017-5204
#     - CVE-2017-5205
#     - CVE-2017-5341
#     - CVE-2017-5342
#     - CVE-2017-5482
#     - CVE-2017-5483
#     - CVE-2017-5484
#     - CVE-2017-5485
#     - CVE-2017-5486
#   4.9.1-r0:
#     - CVE-2017-11108


builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$builddir"
	update_config_sub || return 1
}

build () {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-ipv6 \
		|| return 1
	make || return 1
}

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

sha512sums="992e80d1c2a28f817b9582958cc642665c61d4a824e255e796c7cee79905c1b5330c346cf9768aa406088fcea2b074980c495bcc7aef58dfddf292e8e9d129fc  tcpdump-4.9.1.tar.gz"