aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tcpreplay/APKBUILD
blob: 0ffd0dd773459767862300eea41d00d31749e7ab (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.4
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="e290239bd5ba2451880b96ff64a43a7d  tcpreplay-4.0.4.tar.gz
c83ee833bf47b4ec5ec56e4d994d96a9  musl-socklen_t.patch"
sha256sums="a9e6493fe33e9d17185e5cdd49d46ad5560832fdd86eeea6dcc04ec63df10256  tcpreplay-4.0.4.tar.gz
6afb4d55418f5a55509b66f7cc26dba2aad9b03e147d9d97eafaf822cb77c283  musl-socklen_t.patch"
sha512sums="a9e87817079a73d677dd9c51a7eb850ae833c627f08914e45b71736a4536c307d92fe1451bf10e8babe3a8f8283f4f99987c1f37f93be110b12fd326337a0ecf  tcpreplay-4.0.4.tar.gz
b6adb38a0d765ac531839ef189165ef50bae9c2d6f056c6108fe7618cf948388e0f97331a77d304c838021dddbb520bdc5c7384b6da01f85d8c0a45f37d85c2d  musl-socklen_t.patch"