# -*- 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                libpcap
version             1.8.0
categories          net
maintainers         mps 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  4cfef07ac9f008b329c00bf0ebbe547f6738f2eb \
                    sha256  f47b51533f9f060afb304010ea5cbf51d032707333bca70c36351d255754659c

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

depends_build       port:flex

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

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