unbreak; found by msf@. Tested and ok msf@ alek@.
bump PKGNAME.
This commit is contained in:
parent
f06a2feb08
commit
17fd210e52
@ -1,11 +1,11 @@
|
|||||||
# $OpenBSD: Makefile,v 1.13 2004/12/16 00:31:25 alek Exp $
|
# $OpenBSD: Makefile,v 1.14 2005/05/17 07:39:20 xsa Exp $
|
||||||
|
|
||||||
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
|
SHARED_ONLY= Yes
|
||||||
|
|
||||||
COMMENT= "libpcap bindings for Python"
|
COMMENT= "libpcap bindings for Python"
|
||||||
|
|
||||||
DISTNAME= pylibpcap-0.3.1
|
DISTNAME= pylibpcap-0.3.1
|
||||||
PKGNAME= ${DISTNAME:S/py/py-/}
|
PKGNAME= ${DISTNAME:S/py/py-/}p0
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
|
|
||||||
HOMEPAGE= http://pylibpcap.sourceforge.net/
|
HOMEPAGE= http://pylibpcap.sourceforge.net/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
$OpenBSD: patch-pcap_i,v 1.1 2004/02/18 08:31:51 xsa Exp $
|
$OpenBSD: patch-pcap_i,v 1.2 2005/05/17 07:39:20 xsa Exp $
|
||||||
--- pcap.i.orig 2002-04-25 08:43:15.000000000 +0200
|
--- pcap.i.orig Thu Apr 25 08:43:15 2002
|
||||||
+++ pcap.i 2004-02-18 00:58:57.000000000 +0100
|
+++ pcap.i Wed May 11 13:50:15 2005
|
||||||
@@ -30,12 +30,12 @@ MERCHANTABILITY or FITNESS FOR A PARTICU
|
@@ -30,12 +30,12 @@ MERCHANTABILITY or FITNESS FOR A PARTICU
|
||||||
|
|
||||||
/* let functions return raw python objects */
|
/* let functions return raw python objects */
|
||||||
@ -16,3 +16,12 @@ $OpenBSD: patch-pcap_i,v 1.1 2004/02/18 08:31:51 xsa Exp $
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -60,7 +60,7 @@ typedef struct {
|
||||||
|
pcap_t *pcap;
|
||||||
|
pcap_dumper_t *pcap_dumper;
|
||||||
|
PyObject *callback;
|
||||||
|
- %addmethods {
|
||||||
|
+ %extend {
|
||||||
|
/*
|
||||||
|
pcapObject(char *device, int snaplen, int promisc, int to_ms);
|
||||||
|
*/
|
||||||
|
@ -1,6 +1,15 @@
|
|||||||
$OpenBSD: patch-setup_py,v 1.1 2004/02/18 08:31:51 xsa Exp $
|
$OpenBSD: patch-setup_py,v 1.2 2005/05/17 07:39:20 xsa Exp $
|
||||||
--- setup.py.orig 2002-04-25 06:32:30.000000000 +0200
|
--- setup.py.orig Thu Apr 25 06:32:30 2002
|
||||||
+++ setup.py 2004-02-18 00:51:14.000000000 +0100
|
+++ setup.py Wed May 11 14:13:57 2005
|
||||||
|
@@ -56,7 +56,7 @@ class pcap_build_ext(build_ext):
|
||||||
|
return new_sources
|
||||||
|
|
||||||
|
swig = self.find_swig()
|
||||||
|
- swig_cmd = [swig, "-python", "-dnone", "-shadow", "-ISWIG"]
|
||||||
|
+ swig_cmd = [swig, "-python", "-shadow", "-ISWIG"]
|
||||||
|
if self.swig_cpp:
|
||||||
|
swig_cmd.append("-c++")
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ class pcap_build_ext(build_ext):
|
@@ -74,7 +74,7 @@ class pcap_build_ext(build_ext):
|
||||||
setup (# Distribution meta-data
|
setup (# Distribution meta-data
|
||||||
name = "pylibpcap",
|
name = "pylibpcap",
|
||||||
@ -10,3 +19,12 @@ $OpenBSD: patch-setup_py,v 1.1 2004/02/18 08:31:51 xsa Exp $
|
|||||||
description = 'pylibpcap is a python module for the libpcap packet capture library.',
|
description = 'pylibpcap is a python module for the libpcap packet capture library.',
|
||||||
long_description = 'pylibpcap is a python module for the libpcap packet capture library.',
|
long_description = 'pylibpcap is a python module for the libpcap packet capture library.',
|
||||||
url = "http://pylibpcap.sourceforge.net/",
|
url = "http://pylibpcap.sourceforge.net/",
|
||||||
|
@@ -86,7 +86,7 @@ setup (# Distribution meta-data
|
||||||
|
# platforms = "",
|
||||||
|
py_modules = [ "pcap" ],
|
||||||
|
ext_modules = [ Extension(
|
||||||
|
- "pcapcmodule",
|
||||||
|
+ "_pcap",
|
||||||
|
["pcap.i","pcap_interface.c","exception.c","error.c"],
|
||||||
|
include_dirs=["/usr/include/pcap"],
|
||||||
|
extra_objects=[],
|
||||||
|
2
net/py-libpcap/pkg/PFRAG.shared
Normal file
2
net/py-libpcap/pkg/PFRAG.shared
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
@comment $OpenBSD: PFRAG.shared,v 1.1 2005/05/17 07:39:20 xsa Exp $
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/_pcap.so
|
@ -1,6 +1,6 @@
|
|||||||
@comment $OpenBSD: PLIST,v 1.3 2004/09/15 18:17:45 espie Exp $
|
@comment $OpenBSD: PLIST,v 1.4 2005/05/17 07:39:20 xsa Exp $
|
||||||
|
%%SHARED%%
|
||||||
lib/python${MODPY_VERSION}/site-packages/pcap.py
|
lib/python${MODPY_VERSION}/site-packages/pcap.py
|
||||||
lib/python${MODPY_VERSION}/site-packages/pcap.pyc
|
lib/python${MODPY_VERSION}/site-packages/pcap.pyc
|
||||||
lib/python${MODPY_VERSION}/site-packages/pcapcmodule.so
|
|
||||||
share/examples/py-libpcap/
|
share/examples/py-libpcap/
|
||||||
share/examples/py-libpcap/sniff.py
|
share/examples/py-libpcap/sniff.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user