# $Id: Portfile 60005 2009-10-29 01:30:17Z jmr@macports.org $

PortSystem              1.0
PortGroup               python24 1.0

name                    py-pylibpcap
version                 0.6.2
categories              python net
platforms		darwin
maintainers             pmq openmaintainer

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 f47d6e5d72219e2162f1b16e59f3c45e496652d9 \
			rmd160 dbda6fec0786630c3af65d540b57507f888d1d78

depends_lib-append	port:libpcap port:swig-python

post-destroot {
    set sharedir ${destroot}${prefix}/share/doc/${name}-${version}
    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
}
