# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name             tcpflow
version          0.21
revision         2
categories       net security
maintainers      simon openmaintainer
description      TCP flow recorder
long_description \
    tcpflow is a program that captures data transmitted as part of TCP \
    connections (flows), and stores the data in a way that is convenient \
    for protocol analysis or debugging. A program like tcpdump(4) shows \
    a summary of packets seen on the wire, but usually doesn't store the \
    data that's actually being transmitted.  In contrast, tcpflow \
    reconstructs the actual data streams and stores each flow in a \
    separate file for later analysis.  tcpflow understands TCP sequence \
    numbers and will correctly reconstruct data streams regardless of \
    retransmissions or out-of-order delivery.
homepage         http://www.circlemud.org/~jelson/software/tcpflow/
platforms        darwin freebsd
master_sites     http://www.circlemud.org/pub/jelson/tcpflow/
checksums        md5 45a5aef6f043312315b7f342afc4a9c5
depends_lib      port:libpcap

patchfiles		 patch-src_util.c.diff

configure.args   --mandir=${prefix}/share/man

platform darwin {
    depends_lib-append port:libtool
    pre-configure {
        # libtool 1.x vs 2.x
        if {[file exists ${prefix}/share/libtool/config.guess]} {
            copy -force ${prefix}/share/libtool/config.guess ${prefix}/share/libtool/config.sub ${worksrcpath}
        } else {
            copy -force ${prefix}/share/libtool/config/config.guess ${prefix}/share/libtool/config/config.sub ${worksrcpath}
        }
    }
}

livecheck.type    regex
livecheck.regex   "${name} is v(\\d+(?:\\.\\d+)*)"
