pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/py-libpcap add pylibpcap-0.5, a Python wrapper for...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9aa02bb8ac3d
branches:  trunk
changeset: 498020:9aa02bb8ac3d
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Wed Aug 10 13:51:01 2005 +0000

description:
add pylibpcap-0.5, a Python wrapper for libpcap

diffstat:

 net/py-libpcap/DESCR            |   1 +
 net/py-libpcap/Makefile         |  22 ++++++++++++++++++++++
 net/py-libpcap/PLIST            |   5 +++++
 net/py-libpcap/buildlink3.mk    |  22 ++++++++++++++++++++++
 net/py-libpcap/distinfo         |   6 ++++++
 net/py-libpcap/patches/patch-aa |  15 +++++++++++++++
 6 files changed, 71 insertions(+), 0 deletions(-)

diffs (95 lines):

diff -r 43900e2d9798 -r 9aa02bb8ac3d net/py-libpcap/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-libpcap/DESCR      Wed Aug 10 13:51:01 2005 +0000
@@ -0,0 +1,1 @@
+Python wrapper for libpcap.
diff -r 43900e2d9798 -r 9aa02bb8ac3d net/py-libpcap/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-libpcap/Makefile   Wed Aug 10 13:51:01 2005 +0000
@@ -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@localhost
+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 -r 43900e2d9798 -r 9aa02bb8ac3d net/py-libpcap/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-libpcap/PLIST      Wed Aug 10 13:51:01 2005 +0000
@@ -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 -r 43900e2d9798 -r 9aa02bb8ac3d net/py-libpcap/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-libpcap/buildlink3.mk      Wed Aug 10 13:51:01 2005 +0000
@@ -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 -r 43900e2d9798 -r 9aa02bb8ac3d net/py-libpcap/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-libpcap/distinfo   Wed Aug 10 13:51:01 2005 +0000
@@ -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 -r 43900e2d9798 -r 9aa02bb8ac3d net/py-libpcap/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-libpcap/patches/patch-aa   Wed Aug 10 13:51:01 2005 +0000
@@ -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



Home | Main Index | Thread Index | Old Index