# -*- 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: Portfile 116474 2014-01-26 12:48:06Z cal@macports.org $

PortSystem          1.0

name                libpcap
version             1.5.3
categories          net
maintainers         nomaintainer
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  612b7f8000557d992eb652ebb5f881f430402d2d \
                    sha256  9ae92159c1060f15e6a90f2c4ad227268b6aaa382c316fa49a31c496b9979e93

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

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
