# -*- 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                tcpdump
version             4.99.7
revision            0

categories          net
maintainers         {mps @Schamschula} 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  0de617d5b1e6d16f8513abc00aa4706e886ef5f1 \
                    sha256  8be364e28d3b745ef1459b385cd2f4bc0e1ebad7a5d2ebdf70071d6c9b5b9a54 \
                    size    2061395

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

configure.args      --disable-universal \
                    --disable-smb \
                    --with-smi \
                    --without-sandbox-capsicum \
                    --with-system-libpcap \
                    --with-crypto=${prefix} \
                    --with-cap-ng

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

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