# $Id: Portfile 69061 2010-06-22 16:15:09Z ricci@macports.org $

PortSystem 1.0

name                libpcap
version             1.1.1
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           md5     1bca27d206970badae248cfa471bbb47 \
                    sha1    18581af5e78a40b7b2c9a6cd8ce40e7cb1cd9c63 \
                    rmd160  760159c594cc995c9e05c0cd8637a02a3b2725e2

configure.args      --enable-ipv6

patchfiles          patch-scanner.l.diff

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: #
