# -*- 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                libpcap
version             1.10.5
revision            0
categories          net
maintainers         {mps @Schamschula} openmaintainer
license             BSD
description         Packet Capture library
long_description    The Packet Capture library provides a high level \
                    interface to packet capture systems.  All packets \
                    on the network, even those destined for other hosts, \
                    are accessible through this mechanism.
homepage            http://www.tcpdump.org/
platforms           darwin
master_sites        ${homepage}release/

checksums           rmd160  2ecd8515c2f0c73417abdf99592fe64bfd274750 \
                    sha256  37ced90a19a302a7f32e458224a00c365c117905c2cd35ac544b6880a81488f0 \
                    size    974772

configure.args      --disable-bluetooth \
                    --disable-universal \
                    --disable-dbus \
                    --enable-ipv6

depends_build       port:bison \
                    port:flex

variant remote description {Enable remote packet capture} {
    configure.args-append   --enable-remote
}

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        CHANGES \
        CREDITS \
        LICENSE \
        README.md \
        TODO \
        ${docdir}
}

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
