PortSystem              1.0
PortGroup               python 1.0

name                    py-pylibpcap
version                 0.6.4
categories-append       net
license                 BSD
platforms               darwin
maintainers             nomaintainer

description             Python module for the libpcap packet capture library
long_description        \
    Pylibpcap is a Python extension module that interfaces with the libpcap \
    packet capture library. Pylibpcap enables python scripts to capture \
    packets on the network.

homepage                http://pylibpcap.sourceforge.net
master_sites            sourceforge:pylibpcap

distname                pylibpcap-${version}
checksums               sha1 30b5d2e9dc8dcf6df067a216d9ecae109ff34f86 \
                        rmd160  27aea5a6a4c2317b77483c15482de68312bb3777

python.versions 27

if {${name} ne ${subport}} {
    depends_lib-append	port:libpcap port:swig-python

    post-destroot {
        set sharedir ${destroot}${prefix}/share/doc/${subport}
        xinstall -d ${sharedir}
        xinstall -d ${sharedir}/examples
    
        xinstall -m 644 -W ${worksrcpath} COPYING PKG-INFO README ${sharedir}
        xinstall -m 755 -W ${worksrcpath}/examples findalldevs.py sniff.py ${sharedir}/examples
    }
}