# Contributor: Fabian Affolter # Maintainer: Fabian Affolter 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() { 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 } 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"