# $Id: Portfile 98015 2012-09-22 06:28:34Z jmr@macports.org $

PortSystem 1.0

name                libpcap
version             1.3.0
categories          net
maintainers         darkart.com:opendarwin.org
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 3d80cd06c89b32bee1f344bfe720624c2c35763f \
                    sha256 41cbd9ed68383afd9f1fda279cb78427d36879d9e34ee707e31a16a1afd872b9

configure.args      --enable-ipv6 --disable-universal

use_parallel_build  yes
build.target-append shared

destroot.target-append  install-shared

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

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# vi: set fenc=utf-8 filetype=tcl et sw=4 ts=4 sts=4: #
