# $Id$

PortSystem          1.0

name                tcpreplay
categories          net security
license             BSD ISC
version             3.4.4
revision            1
platforms           darwin
maintainers         wohner.eu:normen

description         Replay pcap files at arbitrary speeds onto the network
long_description    \
    Tcpreplay is a suite of BSD licensed tools written by Aaron Turner for \
    *NIX operating systems which gives you the ability to use previously \
    captured traffic in libpcap format to test a variety of network devices. \
    It allows you to classify traffic as client or server, rewrite Layer 2, 3 \
    and 4 headers and finally replay the traffic back onto the network and \
    through other devices such as switches, routers, firewalls, NIDS and \
    IPS's. Tcpreplay supports both single and dual NIC modes for testing both \
    sniffing and inline devices.

homepage            http://tcpreplay.synfin.net
master_sites        sourceforge
checksums           md5 22725feb9b2590809f9350308ec65180 \
                    sha1 9e4cca81cfbfb919f8759e1a27ce1b3b963ff3b8 \
                    rmd160 672812755ff39b284044b08cba32c574ab2b7e70

# TODO use libpcapnav
# libdnet is required for fragroute support
depends_lib         port:libpcap port:tcpdump port:libdnet

patchfiles          strl.patch

configure.args      --with-libpcap=${prefix} \
                    --with-tcpdump=${prefix}/sbin/tcpdump