aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tcpreplay/APKBUILD
blob: 5955e97e580d656109be29a157bc5d48f254a102 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=tcpreplay
pkgver=4.0.2
pkgrel=0
pkgdesc="Replay captured network traffic"
url="http://tcpreplay.synfin.net/trac/"
arch="all"
license="GPL3"
depends=""
depends_dev=""
makedepends="libdnet-dev libpcap-dev tcpdump"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	musl-socklen_t.patch
	"
_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-dynamic-link \
		--enable-local-libopts \
		--disable-libopts-install \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="b8838e2d5142da95414e40793e8d912f  tcpreplay-4.0.2.tar.gz
c83ee833bf47b4ec5ec56e4d994d96a9  musl-socklen_t.patch"
sha256sums="afb14a0b401b562ed447774edbc44522dd0392a1deec8a0f8a03d3bda3b6bf2d  tcpreplay-4.0.2.tar.gz
6afb4d55418f5a55509b66f7cc26dba2aad9b03e147d9d97eafaf822cb77c283  musl-socklen_t.patch"
sha512sums="b70f5caf2ce653ee05c4c730d348b0acea5b98de91f89b9b7af3473714618e6520a3457cf60ce033fc5df2ef2ca8fe314e9ee066947ffe73ca75805000a56eaf  tcpreplay-4.0.2.tar.gz
b6adb38a0d765ac531839ef189165ef50bae9c2d6f056c6108fe7618cf948388e0f97331a77d304c838021dddbb520bdc5c7384b6da01f85d8c0a45f37d85c2d  musl-socklen_t.patch"