# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem    1.0

name          lft
version       3.91
categories    net security
maintainers   victor
description   Layer Four Traceroute - advanced traceroute tool
long_description LFT, short for Layer Four Traceroute, is a \
    sort of 'traceroute' that often works much \
    faster (than the commonly-used Van Jacobson \
    method) and goes through many configurations \
    of firewalls. More importantly, LFT \
    implements numerous other features including \
    firewall detection and identification, load \
    balancer detection, AS number lookups, \
    loose source routing, netblock name lookups,\
    et al.  Also includes whob, a prefix whois client.
license       Copyleft
homepage      http://pwhois.org/lft/
master_sites  http://pwhois.org/get/

checksums     rmd160 a62b93e141f7236de66165e0eb0a4f84f10bcbca \
              sha256 aad13e671adcfc471ab99417161964882d147893a54664f3f465ec5c8398e6af \
              size   377135

depends_lib   port:libpcap

patchfiles-append   lft_types.h.patch

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

destroot.destdir  prefix=${destroot}${prefix}

variant universal description {Build universal binary} {
    configure.args-append \
            --enable-universal
}

variant gtod description {Use gettimeofday() instead of PCAP arrival time for latency metrics} {
    configure.args-append \
            --enable-gtod
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
