# $Id: Portfile 51971 2009-06-07 18:37:12Z pmq@macports.org $

PortSystem          1.0

name                tcpreplay
categories          net security
version             3.4.2
platforms	    darwin
maintainers	    pmq openmaintainer

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           sha1 112540ed102878562734ac6bdd14ecb01c8b608d \
		    rmd160 8e3cfde712d095db47fc2b44f89d03dae7596a85

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

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