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

     
    11# $Id$
    22
    33PortSystem              1.0
     4# FIXME use Python-2.5?
    45PortGroup               python24 1.0
    56
    67name                    py-pylibpcap
    7 version                 0.5.1
    8 revision                2
     8version                 0.6.2
    99categories              python net
    1010platforms               darwin
    11 maintainers             chris.owen@consault.com pmq
     11maintainers             pmq openmaintainer
    1212
    1313description             Python module for the libpcap packet capture library
    1414long_description        \
    1515    Pylibpcap is a Python extension module that interfaces with the libpcap \
    16     packet capture library.  Pylibpcap enables python scripts to capture \
     16    packet capture library. Pylibpcap enables python scripts to capture \
    1717    packets on the network.
    1818
    1919homepage                http://pylibpcap.sourceforge.net
    2020master_sites            sourceforge:pylibpcap
    2121
    2222distname                pylibpcap-${version}
    23 checksums               sha1 c8e85258b3b3f79d629531856cfb3242c07f5796 \
    24                         rmd160 f1e2309fbaf0878e6b4fb87b626686377c6c105a
     23checksums               sha1 f47d6e5d72219e2162f1b16e59f3c45e496652d9 \
     24                        rmd160 dbda6fec0786630c3af65d540b57507f888d1d78
    2525
    2626depends_lib             port:libpcap port:swig
    2727
    28 patchfiles              patch-setup.py.diff
     28post-destroot {
     29    set sharedir ${destroot}${prefix}/share/doc/${name}-${version}
     30    xinstall -d ${sharedir}
     31    xinstall -d ${sharedir}/examples
    2932
    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
    3235}
    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}/examples
    39 }