# -*- 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
# $Id$

PortSystem          1.0

name                tcpdump
version             4.7.4
revision            1
categories          net
maintainers         mww openmaintainer
license             BSD
description         dump traffic on a network
long_description \
    tcpdump is a tool for network monitoring, protocol debugging \
    and data acquisition.
homepage            http://www.tcpdump.org/
platforms           darwin
master_sites        ${homepage}release/

checksums           rmd160  7e10dfc5b3cde9ad5a50c2e52646bdb4d9d9ee3f \
                    sha256  6be520269a89036f99c0b2126713a60965953eab921002b07608ccfc0c47d9af

depends_lib         port:libpcap \
                    port:libsmi \
                    path:lib/libssl.dylib:openssl

configure.args      --disable-smb --disable-universal

# ugly: beat ./configure to use $prefix BEFORE /usr
configure.cflags-append "-I${prefix}/include -L${prefix}/lib"

variant smb description {enable possibly-buggy SMB printer} {
    configure.args-delete   --disable-smb
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     tcpdump-(\[0-9.\]+)\\.tar\\.gz