aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tcpreplay/APKBUILD
blob: 2d69f5d8dac4d834a90c301fe5cac458863f8b18 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=tcpreplay
pkgver=4.0.5
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() {
	default_prepare || return 1
	update_config_guess || return 1
}

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
}

md5sums="1a6f108a62bf526eeffa2998a6f311af  tcpreplay-4.0.5.tar.gz
c83ee833bf47b4ec5ec56e4d994d96a9  musl-socklen_t.patch"
sha256sums="63798c8adc9e5be79467e23593838ce0e617b25938cfce3116feda2630344d80  tcpreplay-4.0.5.tar.gz
6afb4d55418f5a55509b66f7cc26dba2aad9b03e147d9d97eafaf822cb77c283  musl-socklen_t.patch"
sha512sums="bf0e8e64d9431bbf8379d2578edf0a53e6803dfc06d973c388aa885bcc4f029499dad02aed0ee17b78b5eef178b450b6c0b851b9a52a1ac27dc0e1cb2b83a88d  tcpreplay-4.0.5.tar.gz
b6adb38a0d765ac531839ef189165ef50bae9c2d6f056c6108fe7618cf948388e0f97331a77d304c838021dddbb520bdc5c7384b6da01f85d8c0a45f37d85c2d  musl-socklen_t.patch"