source: trunk/dports/python/py-pcapy/Portfile @ 17121

Last change on this file since 17121 was 17121, checked in by blb, 14 years ago

Port: py-pcapy
Version: 0.10.4

Update port python/py-pcapy
Version bump to 0.10.4; patch setup.py to make sure it links against DP's
libpcap

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1# $Id: Portfile,v 1.5 2006/03/21 21:34:40 blb Exp $
2
3PortSystem                      1.0
4PortGroup                       python24 1.0
5name                            py-pcapy
6version                         0.10.4
7categories-append       net
8maintainers                     darwinports@opendarwin.org
9description                     python interface to libpcap
10long_description \
11        Pcapy is a Python extension module that interfaces with the libpcap \
12        packet capture library.  Pcapy enables python scripts to capture \
13        packets on the network.
14
15platforms                       darwin
16
17homepage                        http://oss.coresecurity.com/projects/pcapy.html
18master_sites            http://oss.coresecurity.com/repo/
19distname                        pcapy-${version}
20
21checksums                       md5 6b3f5823cdc4f878968eea722d9bb557
22
23depends_lib-append      port:libpcap
24
25patchfiles                      patch-setup.py
26post-patch {
27        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
28}
29
30build.env                       CPPFLAGS="-I${prefix}/include" LDFLAGS="-I${prefix}/lib"
31
32post-destroot {
33        xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name}
34        eval file rename [glob ${destroot}/${prefix}/share/doc/pcapy/*] \
35                ${destroot}/${prefix}/share/doc/${name}
36        xinstall -m 644 -W ${worksrcpath} ChangeLog PKG-INFO \
37                ${destroot}/${prefix}/share/doc/${name}
38}
39
Note: See TracBrowser for help on using the repository browser.