- update to 0.3.1
- remove MAINTAINER per his request (via ish@) ok sturm@.
This commit is contained in:
parent
302ba4d8e0
commit
326ff73470
@ -1,17 +1,14 @@
|
||||
# $OpenBSD: Makefile,v 1.10 2004/01/09 10:18:01 sturm Exp $
|
||||
# $OpenBSD: Makefile,v 1.11 2004/02/18 08:31:50 xsa Exp $
|
||||
|
||||
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
|
||||
|
||||
COMMENT= "libpcap bindings for Python"
|
||||
|
||||
V= 0.2
|
||||
DISTNAME= pylibpcap-${V}
|
||||
PKGNAME= py-libpcap-${V}
|
||||
DISTNAME= pylibpcap-0.3.1
|
||||
PKGNAME= ${DISTNAME:S/py/py-/}
|
||||
CATEGORIES= net
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pylibpcap/}
|
||||
|
||||
HOMEPAGE= http://sourceforge.net/projects/pylibpcap/
|
||||
|
||||
MAINTAINER= Maurice Nonnekes <maurice@amaze.nl>
|
||||
HOMEPAGE= http://pylibpcap.sourceforge.net/
|
||||
|
||||
# BSD
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
@ -19,16 +16,18 @@ PERMIT_DISTFILES_FTP= Yes
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
|
||||
PYTHON_VER= 2.1
|
||||
SUBST_VARS= PYTHON_VER
|
||||
MAKE_ENV= PYTHON_VER=${PYTHON_VER}
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pylibpcap/}
|
||||
|
||||
BUILD_DEPENDS+= :swig-*:devel/swig \
|
||||
${RUN_DEPENDS}
|
||||
RUN_DEPENDS+= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
||||
MODULES= python
|
||||
|
||||
WRKDIST= ${WRKDIR}/pylibpcap
|
||||
BUILD_DEPENDS= :swig-*:devel/swig
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/py-libpcap
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/sniff.py ${EXAMPLESDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (pylibpcap-0.2.tar.gz) = f0e9fec4cd90305674ab1d4187f30a9e
|
||||
RMD160 (pylibpcap-0.2.tar.gz) = eacbfdccc29f6f8ad626af4bad103995237ef93b
|
||||
SHA1 (pylibpcap-0.2.tar.gz) = 655dfcbc7376ae8d661cf874d596c1acb78c02ae
|
||||
MD5 (pylibpcap-0.3.1.tar.gz) = ba64a4c831d5e2d316f3d413d1b774de
|
||||
RMD160 (pylibpcap-0.3.1.tar.gz) = 03f7bb455102928875c9682e36dc15f224bcb0f5
|
||||
SHA1 (pylibpcap-0.3.1.tar.gz) = 3be322f3e58548775b38c407eb5b5942b41c5d5e
|
||||
|
@ -1,37 +0,0 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2001/09/20 11:38:24 shell Exp $
|
||||
--- Makefile.orig Sat Nov 4 03:04:07 2000
|
||||
+++ Makefile Tue Sep 18 17:57:47 2001
|
||||
@@ -1,23 +1,24 @@
|
||||
-
|
||||
-SWIG=/usr/local/bin/swig
|
||||
-C=gcc -g
|
||||
-PYTHON_INCLUDES=-I/usr/include/python1.5
|
||||
-PCAP_INCLUDES=-I/usr/include/pcap
|
||||
+SWIG=$(LOCALBASE)/bin/swig
|
||||
+PYTHON_INCLUDES=-I$(LOCALBASE)/include/python$(PYTHON_VER)
|
||||
|
||||
OBJS= pcap.o exception.o error.o
|
||||
|
||||
all: pcapcmodule.so
|
||||
|
||||
pcapcmodule.so: pcap_wrap.o $(OBJS)
|
||||
- $(CC) -shared pcap_wrap.o $(OBJS) -L../libpcap-0.4 -lpcap -o $@
|
||||
-# $(CC) -shared pcap_wrap.o $(OBJS) -lpcap -o $@
|
||||
+ $(CC) -shared pcap_wrap.o $(OBJS) -lpcap -o $@
|
||||
+ @echo "import pcap" | python$(PYTHON_VER)
|
||||
|
||||
.c.o:
|
||||
- $(CC) $(CFLAGS) $(PYTHON_INCLUDES) $(PCAP_INCLUDES) -c $<
|
||||
+ $(CC) $(CFLAGS) $(PYTHON_INCLUDES) -c $<
|
||||
|
||||
pcap_wrap.c: pcap.i
|
||||
$(SWIG) -python -shadow pcap.i
|
||||
|
||||
+install:
|
||||
+ mkdir -p $(DESTDIR)/$(LOCALBASE)/lib/python$(PYTHON_VER)/site-packages
|
||||
+ install -m 644 -o root -g bin pcap.py pcap.pyc pcapcmodule.so \
|
||||
+ $(DESTDIR)/$(LOCALBASE)/lib/python$(PYTHON_VER)/site-packages/
|
||||
+
|
||||
clean:
|
||||
rm -f *.o *.pyc pcap_wrap.* pcapcmodule.so core
|
||||
-
|
18
net/py-libpcap/patches/patch-pcap_i
Normal file
18
net/py-libpcap/patches/patch-pcap_i
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-pcap_i,v 1.1 2004/02/18 08:31:51 xsa Exp $
|
||||
--- pcap.i.orig 2002-04-25 08:43:15.000000000 +0200
|
||||
+++ pcap.i 2004-02-18 00:58:57.000000000 +0100
|
||||
@@ -30,12 +30,12 @@ MERCHANTABILITY or FITNESS FOR A PARTICU
|
||||
|
||||
/* let functions return raw python objects */
|
||||
%typemap(python, out) PyObject * {
|
||||
- $target = $source;
|
||||
+ $result = $1;
|
||||
}
|
||||
|
||||
/* let functions take raw python objects */
|
||||
%typemap(python, in) PyObject * {
|
||||
- $target = $source;
|
||||
+ $result = $1;
|
||||
}
|
||||
|
||||
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-pypcap_h,v 1.1.1.1 2001/09/20 11:38:24 shell Exp $
|
||||
--- pypcap.h.orig Tue Sep 18 17:07:25 2001
|
||||
+++ pypcap.h Tue Sep 18 17:07:36 2001
|
||||
@@ -12,7 +12,7 @@
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
-#include <pcap/pcap.h>
|
||||
+#include <pcap.h>
|
||||
|
||||
/* the pcap class */
|
||||
typedef struct {
|
12
net/py-libpcap/patches/patch-setup_py
Normal file
12
net/py-libpcap/patches/patch-setup_py
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-setup_py,v 1.1 2004/02/18 08:31:51 xsa Exp $
|
||||
--- setup.py.orig 2002-04-25 06:32:30.000000000 +0200
|
||||
+++ setup.py 2004-02-18 00:51:14.000000000 +0100
|
||||
@@ -74,7 +74,7 @@ class pcap_build_ext(build_ext):
|
||||
setup (# Distribution meta-data
|
||||
name = "pylibpcap",
|
||||
version = "0.3.1",
|
||||
- licence = "BSD",
|
||||
+ license = "BSD",
|
||||
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/",
|
@ -1,4 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/09/20 11:38:24 shell Exp $
|
||||
lib/python${PYTHON_VER}/site-packages/pcap.py
|
||||
lib/python${PYTHON_VER}/site-packages/pcap.pyc
|
||||
lib/python${PYTHON_VER}/site-packages/pcapcmodule.so
|
||||
@comment $OpenBSD: PLIST,v 1.2 2004/02/18 08:31:51 xsa Exp $
|
||||
lib/python${MODPY_VERSION}/site-packages/pcap.py
|
||||
lib/python${MODPY_VERSION}/site-packages/pcap.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pcapcmodule.so
|
||||
share/examples/py-libpcap/sniff.py
|
||||
@dirrm share/examples/py-libpcap
|
||||
|
Loading…
Reference in New Issue
Block a user