# $Id: PKGBUILD 124102 2014-12-19 13:43:17Z tredaelli $
# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: Sébastien Duquette <ekse.0x@gmail.com>
# Contributor: Dawid Wrobel <cromo@klej.net>
pkgname=tcpreplay
pkgver=4.1.0
pkgrel=1
pkgdesc="Gives the ability to replay previously captured traffic in a libpcap format"
url="http://tcpreplay.appneta.com"
arch=('i686' 'x86_64')
license=('GPL3')
depends=('libpcap' 'libdnet')
makedepends=('tcpdump')
optdepends=('tcpdump: decoding of packets support')
options=('!emptydirs')
source=("http://downloads.sourceforge.net/sourceforge/tcpreplay/${pkgname}-${pkgver}.tar.gz")
md5sums=('fd48d73d84ade30ece0a9abb538c82d5')

build() {
     cd "$srcdir/$pkgname-$pkgver"
     ./configure --prefix=/usr --enable-dynamic-link --with-tcpdump=/usr/sbin/tcpdump ac_cv_header_net_bpf_h=n
     make
}

package() {
     cd "$srcdir/$pkgname-$pkgver"
     make DESTDIR="$pkgdir/" install
}
