Opened 14 years ago

Closed 9 years ago

Last modified 9 years ago

#28132 closed submission (fixed)

NEW: py-pypcap - python binding to libpcap

Reported by: andrew.reusch@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: petrrr, petrrr
Port: py-pypcap

Description

It's a simple python binding to libpcap. It uses pyrex to help create the bindings. It only depends on libpcap. There were a couple small changes to the customized setup.py script to get it to compile with the libpcap installed in ports.

http://code.google.com/p/pypcap/

Attachments (3)

patch-setup.py.diff (902 bytes) - added by andrew.reusch@… 14 years ago.
Portfile (1.1 KB) - added by andrew.reusch@… 14 years ago.
patch-pcap.c.diff (99.6 KB) - added by andrew.reusch@… 14 years ago.

Download all attachments as: .zip

Change History (12)

Changed 14 years ago by andrew.reusch@…

Attachment: patch-setup.py.diff added

comment:1 in reply to:  description Changed 14 years ago by andrew.reusch@…

I've only tested it with python2.6. I can test with other versions if desired.

comment:2 Changed 14 years ago by mf2k (Frank Schima)

Port: py26-pypcap added
Version: 1.9.2

Changed 14 years ago by andrew.reusch@…

Attachment: Portfile added

Changed 14 years ago by andrew.reusch@…

Attachment: patch-pcap.c.diff added

comment:3 Changed 14 years ago by andrew.reusch@…

There was problem with the pcap.next() causing a type error when it raised the StopIterator exception. This seems to be a problem with version of pyrex used to generate pcap.c. I've regenerated pcap.c using pyrexc-2.6 from the port repository and it no longer throws a type error. I've updated the portfile and uploaded a patch for pcap.c.

Would it be better to have the port exec the pyrex command when it is installed?

comment:4 Changed 13 years ago by jmroot (Joshua Root)

Sorry, it seems this fell through the cracks. Yes, it would be better to run pyrex than to have a 100 kB patch.

(You can ping the macports-dev list if a ticket seems to have been forgotten BTW.)

comment:5 Changed 11 years ago by petrrr

Cc: Peter.Danecek@… added

Cc Me!

comment:6 Changed 10 years ago by petrrr

This is now really old, is there still interest in this. If yes, this should use the unified portgroup now.

comment:7 Changed 10 years ago by petrrr

Port: py-pypcap added; py26-pypcap removed
Summary: Portfile for pypcap - python binding to libpcappy-pcap: new port - python binding to libpcap

comment:8 Changed 10 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:9 Changed 9 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Summary: py-pcap: new port - python binding to libpcapNEW: py-pypcap - python binding to libpcap
Last edited 9 years ago by jmroot (Joshua Root) (previous) (diff)
Note: See TracTickets for help on using tickets.