# $Id: Portfile,v 1.5 2006/03/21 21:34:40 blb Exp $ PortSystem 1.0 PortGroup python24 1.0 name py-pcapy version 0.10.4 categories-append net maintainers darwinports@opendarwin.org description python interface to libpcap long_description \ Pcapy is a Python extension module that interfaces with the libpcap \ packet capture library. Pcapy enables python scripts to capture \ packets on the network. platforms darwin homepage http://oss.coresecurity.com/projects/pcapy.html master_sites http://oss.coresecurity.com/repo/ distname pcapy-${version} checksums md5 6b3f5823cdc4f878968eea722d9bb557 depends_lib-append port:libpcap patchfiles patch-setup.py post-patch { reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py } build.env CPPFLAGS="-I${prefix}/include" LDFLAGS="-I${prefix}/lib" post-destroot { xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name} eval file rename [glob ${destroot}/${prefix}/share/doc/pcapy/*] \ ${destroot}/${prefix}/share/doc/${name} xinstall -m 644 -W ${worksrcpath} ChangeLog PKG-INFO \ ${destroot}/${prefix}/share/doc/${name} }