Opened 18 years ago

Closed 18 years ago

Last modified 8 years ago

#5944 closed defect (fixed)

NEW: pylibpcap-0.5.1

Reported by: chris.owen@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: yeled@…
Port: pylibpcap

Description (last modified by ryandesign (Ryan Carsten Schmidt))

pylibpcap-0.5.1

The portfile follows:

# $Id: $
PortSystem              1.0
PortGroup               python24 1.0

name                    pylibpcap
version                 0.5.1
categories              python net
maintainers             chris.owen@consault.com
description             A 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            http://puzzle.dl.sourceforge.net/sourceforge/pylibpcap/ sourceforge
checksums md5           85adbefd87be3a3a32bed899974fe3dc
checksums sha1          c8e85258b3b3f79d629531856cfb3242c07f5796
checksums rmd160        f1e2309fbaf0878e6b4fb87b626686377c6c105a

depends_lib-append      port:libpcap port:swig

post-destroot {
        xinstall -m 644 -W ${worksrcpath} COPYING PKG-INFO README \
                ${destroot}${prefix}/share/doc/${name}
        xinstall -m 644 -W ${worksrcpath}/examples findalldevs.py sniff.py \
                ${destroot}${prefix}/share/doc/${name}/examples
}

Description: pylibpcap is a python extension module for interfacing with the libpcap packet capture library.

Homepage: http://pylibpcap.sf.net

Comments: Thanks to everyone who helped me along.

Christopher Owen
e: chris.owen@…
c: 604.306.0704

Attachments (1)

py-libpcap.patch (927 bytes) - added by chris.owen@… 18 years ago.
Here's a patch

Download all attachments as: .zip

Change History (8)

comment:1 Changed 18 years ago by yeled@…

Resolution: fixed
Status: newclosed

thanks.

I have committed it with 2 small changes. adding a hyphen to match our other py ports, and using the handy sourceforge notation.

comment:2 Changed 18 years ago by chris.owen@…

Cc: yeled@… added
op_sys: Mac OS X 10.0Mac OS X 10.4
Resolution: fixed
severity: normaltrivial
Status: closedreopened

When I broke the long_description into multiple lines, I broke the Portfile.

Here is a working Portfile:

# $Id: Portfile,v 1.1 2005/12/05 11:58:21 yeled Exp $
PortSystem              1.0
PortGroup               python24 1.0

name                    py-libpcap
version                 0.5.1
distname                                pylibpcap-${version}
categories              python net
maintainers             chris.owen@consault.com
description             A 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
checksums md5           85adbefd87be3a3a32bed899974fe3dc
checksums sha1          c8e85258b3b3f79d629531856cfb3242c07f5796
checksums rmd160        f1e2309fbaf0878e6b4fb87b626686377c6c105a

depends_lib-append      port:libpcap port:swig

post-destroot {
        xinstall -m 644 -W ${worksrcpath} COPYING PKG-INFO README \
                ${destroot}${prefix}/share/doc/${name}
        xinstall -m 644 -W ${worksrcpath}/examples findalldevs.py sniff.py \
                ${destroot}${prefix}/share/doc/${name}/examples
}

Furthermore,

I believe the appropriate name of the module may be py-pylibpcap.

Christopher Owen
e: chris.owen@…
c: 604.306.0704

Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 18 years ago by chris.owen@…

A patch:

diff -Naur py-libpcap/Portfile py-pylibpcap/Portfile
--- py-libpcap/Portfile 2005-12-05 03:58:21.000000000 -0800
+++ py-pylibpcap/Portfile       2005-12-05 05:15:13.000000000 -0800
@@ -8,10 +8,7 @@
 categories              python net
 maintainers             chris.owen@consault.com
 description             A 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.
+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
 checksums md5           85adbefd87be3a3a32bed899974fe3dc
Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 18 years ago by chris.owen@…

Attachment: py-libpcap.patch added

Here's a patch

comment:4 Changed 18 years ago by chris.owen@…

attachments.isobsolete: 01

(From update of attachment 4961) This is unnecessary.

comment:5 Changed 18 years ago by chris.owen@…

The port works smashingly, however, I believe it should be renamed to py-pylibpcap.

Also, the PortIndex will need regeneration.

Christopher Owen
e: chris.owen@…
c: 604.306.0704

Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 18 years ago by jmpp@…

Resolution: fixed
Status: reopenedclosed

Name change committed, closing bug. Thanks for this work Chris... now where's that updated ReadMe.rtf file you promised me?? ;-)

-jmpp

comment:7 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: pylibpcap added
Note: See TracTickets for help on using tickets.