blob: b48c8f20d7afbeb943c74c012cc622cac07f50f9 (
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
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=tcpreplay
pkgver=4.3.2
pkgrel=0
pkgdesc="Replay captured network traffic"
url="http://tcpreplay.synfin.net/trac/"
arch="all"
license="GPL-3.0-or-later"
depends=""
depends_dev=""
makedepends="libdnet-dev libpcap-dev tcpdump"
install=""
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/tcpreplay/$pkgname-$pkgver.tar.gz
skip-tests-require-root.patch"
builddir="$srcdir"/$pkgname-$pkgver
# secfixes:
# 4.3.2-r0:
# - CVE-2019-8381
# - CVE-2019-8376
# - CVE-2019-8377
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-dynamic-link \
--enable-local-libopts \
--disable-libopts-install
make
}
check() {
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="211158d39ec48cefe11f0681f38eb1ab6a8302c5ef0e97dbff7d3230defe63e34d8d5755c21f1fe3fc061c4a0caf48ea0b86ae7d444ca68529a96386ea97b8fe tcpreplay-4.3.2.tar.gz
b6491f1539d14721ab6cde567918fea857a3e230dad1b03dee872bc2c4cb8c8d86aa51d3ed08da322a5af3f6a508fab991d10d58c14e3c7ddd8aff971fe91abb skip-tests-require-root.patch"
|