summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2005-08-10 13:51:01 +0000
committerdrochner <drochner@pkgsrc.org>2005-08-10 13:51:01 +0000
commit77e2f121d21230cde756ce2af148024fdd4958b9 (patch)
treee375e408199ac0f47e67e4601458d6d2a76d403d /net
parent0313d10b32caeebf18e4b3b0af3a06e8ed49cda5 (diff)
downloadpkgsrc-77e2f121d21230cde756ce2af148024fdd4958b9.tar.gz
add pylibpcap-0.5, a Python wrapper for libpcap
Diffstat (limited to 'net')
-rw-r--r--net/py-libpcap/DESCR1
-rw-r--r--net/py-libpcap/Makefile22
-rw-r--r--net/py-libpcap/PLIST5
-rw-r--r--net/py-libpcap/buildlink3.mk22
-rw-r--r--net/py-libpcap/distinfo6
-rw-r--r--net/py-libpcap/patches/patch-aa15
6 files changed, 71 insertions, 0 deletions
diff --git a/net/py-libpcap/DESCR b/net/py-libpcap/DESCR
new file mode 100644
index 00000000000..6fe2c9fc9ff
--- /dev/null
+++ b/net/py-libpcap/DESCR
@@ -0,0 +1 @@
+Python wrapper for libpcap.
diff --git a/net/py-libpcap/Makefile b/net/py-libpcap/Makefile
new file mode 100644
index 00000000000..3e55b3e618c
--- /dev/null
+++ b/net/py-libpcap/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/08/10 13:51:01 drochner Exp $
+#
+
+DISTNAME= pylibpcap-0.5
+PKGNAME= ${PYPKGPREFIX}-libpcap-0.5
+CATEGORIES= net
+MASTER_SITES= http://heanet.dl.sourceforge.net/sourceforge/pylibpcap/
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://pylibpcap.sourceforge.net/
+COMMENT= Python wrapper for libpcap
+
+PYDISTUTILSPKG= yes
+BUILDLINK_DEPENDS.libpcap+= libpcap>=0.9.3nb1
+
+pre-build:
+ (cd ${WRKSRC} && ${PYTHONBIN} mk-constants.py)
+
+.include "../../lang/python/extension.mk"
+#.include "../../devel/swig13/buildlink3.mk"
+.include "../../net/libpcap/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/py-libpcap/PLIST b/net/py-libpcap/PLIST
new file mode 100644
index 00000000000..e784e7a718f
--- /dev/null
+++ b/net/py-libpcap/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/08/10 13:51:01 drochner Exp $
+${PYSITELIB}/_pcapmodule.so
+${PYSITELIB}/pcap.py
+${PYSITELIB}/pcap.pyc
+${PYSITELIB}/pcap.pyo
diff --git a/net/py-libpcap/buildlink3.mk b/net/py-libpcap/buildlink3.mk
new file mode 100644
index 00000000000..dd51fbf4f6e
--- /dev/null
+++ b/net/py-libpcap/buildlink3.mk
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2005/08/10 13:51:01 drochner Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+PYLIBPCAP_BUILDLINK3_MK:= ${PYLIBPCAP_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= pylibpcap
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npylibpcap}
+BUILDLINK_PACKAGES+= pylibpcap
+
+.if !empty(PYLIBPCAP_BUILDLINK3_MK:M+)
+
+.include "../../lang/python/pyversion.mk"
+
+BUILDLINK_DEPENDS.pylibpcap+= ${PYPKGPREFIX}-libpcap>=0.5.0
+BUILDLINK_PKGSRCDIR.pylibpcap?= ../../net/py-libpcap
+
+.endif # PYLIBPCAP_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/net/py-libpcap/distinfo b/net/py-libpcap/distinfo
new file mode 100644
index 00000000000..8e21a308eda
--- /dev/null
+++ b/net/py-libpcap/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/08/10 13:51:01 drochner Exp $
+
+SHA1 (pylibpcap-0.5.tar.gz) = 9796d79fa723b3304c0d13d4998655388ac41078
+RMD160 (pylibpcap-0.5.tar.gz) = 4edfbc7bb5aed38658a83ed09f93c095ce4b8ee6
+Size (pylibpcap-0.5.tar.gz) = 22784 bytes
+SHA1 (patch-aa) = 20fb9468c0c4ba23ffe5918da78fa55e0a71a148
diff --git a/net/py-libpcap/patches/patch-aa b/net/py-libpcap/patches/patch-aa
new file mode 100644
index 00000000000..df934e2e287
--- /dev/null
+++ b/net/py-libpcap/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/08/10 13:51:01 drochner Exp $
+
+--- setup.py.orig 2005-08-10 12:30:07.000000000 +0200
++++ setup.py
+@@ -14,8 +14,8 @@ config_defines = [ ]
+
+ # uncomment this line and comment out the next one if you want to build
+ # pcap.c from the SWIG interface
+-sourcefiles = ["mk-constants.py", "pcap.i"]
+-# sourcefiles = ["pcap.c"]
++#sourcefiles = ["mk-constants.py", "pcap.i"]
++sourcefiles = ["pcap.c"]
+
+ # if you are building against a non-installed version of libpcap,
+ # specify its directory here, otherwise set this to None