Ticket #14398: py-pylibpcap-0.6.2.diff
File py-pylibpcap-0.6.2.diff, 2.0 KB (added by pmq@…, 17 years ago) |
---|
-
Portfile
1 1 # $Id$ 2 2 3 3 PortSystem 1.0 4 # FIXME use Python-2.5? 4 5 PortGroup python24 1.0 5 6 6 7 name py-pylibpcap 7 version 0.5.1 8 revision 2 8 version 0.6.2 9 9 categories python net 10 10 platforms darwin 11 maintainers chris.owen@consault.com pmq11 maintainers pmq openmaintainer 12 12 13 13 description Python module for the libpcap packet capture library 14 14 long_description \ 15 15 Pylibpcap is a Python extension module that interfaces with the libpcap \ 16 packet capture library. 16 packet capture library. Pylibpcap enables python scripts to capture \ 17 17 packets on the network. 18 18 19 19 homepage http://pylibpcap.sourceforge.net 20 20 master_sites sourceforge:pylibpcap 21 21 22 22 distname pylibpcap-${version} 23 checksums sha1 c8e85258b3b3f79d629531856cfb3242c07f5796\24 rmd160 f1e2309fbaf0878e6b4fb87b626686377c6c105a23 checksums sha1 f47d6e5d72219e2162f1b16e59f3c45e496652d9 \ 24 rmd160 dbda6fec0786630c3af65d540b57507f888d1d78 25 25 26 26 depends_lib port:libpcap port:swig 27 27 28 patchfiles patch-setup.py.diff 28 post-destroot { 29 set sharedir ${destroot}${prefix}/share/doc/${name}-${version} 30 xinstall -d ${sharedir} 31 xinstall -d ${sharedir}/examples 29 32 30 pre-build { 31 system "${prefix}/bin/python mk-constants.py"33 xinstall -m 644 -W ${worksrcpath} COPYING PKG-INFO README ${sharedir} 34 xinstall -m 755 -W ${worksrcpath}/examples findalldevs.py sniff.py ${sharedir}/examples 32 35 } 33 34 post-destroot {35 xinstall -m 644 -W ${worksrcpath} COPYING PKG-INFO README \36 ${destroot}${prefix}/share/doc/${name}37 xinstall -m 644 -W ${worksrcpath}/examples findalldevs.py sniff.py \38 ${destroot}${prefix}/share/doc/${name}/examples39 }