import Pcapy, thanks to fgsch@ for helping.

Pcapy is a Python extension module that enables software written in Python
to access the routines from the pcap packet capture library.

Pcapy is most useful when used together with a packet handling package such
as Impacket, a collection of Python classes for contructing and dissecting
network packets.
This commit is contained in:
sthen 2009-04-03 15:45:41 +00:00
parent 94f09986bc
commit 689f35a015
5 changed files with 61 additions and 0 deletions

31
net/py-pcapy/Makefile Normal file
View File

@ -0,0 +1,31 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/04/03 15:45:41 sthen Exp $
COMMENT = libpcap module for Python
MODPY_EGG_VERSION = 0.10.5
DISTNAME = pcapy-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = net devel
HOMEPAGE = http://oss.coresecurity.com/projects/pcapy.html
# Apache
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = pcap
MASTER_SITES = http://oss.coresecurity.com/repo/
MODULES = lang/python
NO_REGRESS = Yes
# fix msdos line-endings
pre-patch:
cd ${WRKSRC}; perl -i -pe 's/\r$$//' `find . -type f`
.include <bsd.port.mk>

5
net/py-pcapy/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (pcapy-0.10.5.tar.gz) = Hc/2r0lPPWdj9FeqhqoIUw==
RMD160 (pcapy-0.10.5.tar.gz) = /vQk9LkSunPpXhkjVaCtLlJ0kv8=
SHA1 (pcapy-0.10.5.tar.gz) = 5+gDtCPywuNAHuYWzd/WqyN/yNg=
SHA256 (pcapy-0.10.5.tar.gz) = gKdj2RgUg24M0eV7Y1GdxgITtCujxIbUeUyrrjD9elc=
SIZE (pcapy-0.10.5.tar.gz) = 18884

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-pcap_pkthdr_cc,v 1.1.1.1 2009/04/03 15:45:41 sthen Exp $
--- pcap_pkthdr.cc.orig Fri Apr 3 11:52:32 2009
+++ pcap_pkthdr.cc Fri Apr 3 11:52:36 2009
@@ -24,7 +24,7 @@
// internal pcapobject
typedef struct {
PyObject_HEAD
- struct timeval ts;
+ struct bpf_timeval ts;
bpf_u_int32 caplen;
bpf_u_int32 len;
} pkthdr;

6
net/py-pcapy/pkg/DESCR Normal file
View File

@ -0,0 +1,6 @@
Pcapy is a Python extension module that enables software written in Python
to access the routines from the pcap packet capture library.
Pcapy is most useful when used together with a packet handling package such
as Impacket, a collection of Python classes for contructing and dissecting
network packets.

7
net/py-pcapy/pkg/PLIST Normal file
View File

@ -0,0 +1,7 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/04/03 15:45:41 sthen Exp $
lib/python${MODPY_VERSION}/site-packages/pcapy-0.10.5-py${MODPY_VERSION}.egg-info
lib/python${MODPY_VERSION}/site-packages/pcapy.so
share/doc/pcapy/
share/doc/pcapy/LICENSE
share/doc/pcapy/README
share/doc/pcapy/pcapy.html