diff options
author | drochner <drochner@pkgsrc.org> | 2005-08-10 13:52:52 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2005-08-10 13:52:52 +0000 |
commit | c533014cf9bd488f73e4cdd340aac4ca465fcf90 (patch) | |
tree | f6115d620ec970c97a82898c0edc80411fc5ed86 | |
parent | 77e2f121d21230cde756ce2af148024fdd4958b9 (diff) | |
download | pkgsrc-c533014cf9bd488f73e4cdd340aac4ca465fcf90.tar.gz |
add pkg for the Python binding of libdnet (part of the libdnet
distribution)
-rw-r--r-- | net/py-libdnet/DESCR | 8 | ||||
-rw-r--r-- | net/py-libdnet/Makefile | 19 | ||||
-rw-r--r-- | net/py-libdnet/PLIST | 2 | ||||
-rw-r--r-- | net/py-libdnet/buildlink3.mk | 21 | ||||
-rw-r--r-- | net/py-libdnet/distinfo | 6 | ||||
-rw-r--r-- | net/py-libdnet/patches/patch-aa | 13 |
6 files changed, 69 insertions, 0 deletions
diff --git a/net/py-libdnet/DESCR b/net/py-libdnet/DESCR new file mode 100644 index 00000000000..f455fc428ae --- /dev/null +++ b/net/py-libdnet/DESCR @@ -0,0 +1,8 @@ +libdnet provides a simplified, portable interface to several low-level +networking routines, including + + * network address manipulation + * kernel arp(4) cache and route(4) table lookup and manipulation + * network firewalling (IP filter, ipfw, ipchains, pf, ...) + * network interface lookup and manipulation + * raw IP packet and Ethernet frame transmission diff --git a/net/py-libdnet/Makefile b/net/py-libdnet/Makefile new file mode 100644 index 00000000000..3dc34900294 --- /dev/null +++ b/net/py-libdnet/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/08/10 13:52:52 drochner Exp $ +# + +DISTNAME= libdnet-1.10 +PKGNAME= ${PYPKGPREFIX}-libdnet-1.10 +CATEGORIES= devel net +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libdnet/} + +MAINTAINER= tech-pkg@NetBSD.org +HOMEPAGE= http://libdnet.sourceforge.net/ +COMMENT= Python wrapper for libdnet + +GNU_CONFIGURE= yes +PYDISTUTILSPKG= yes +PYSETUPSUBDIR= python + +.include "../../lang/python/extension.mk" +.include "../../net/libdnet/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/py-libdnet/PLIST b/net/py-libdnet/PLIST new file mode 100644 index 00000000000..78cf7a7eaa8 --- /dev/null +++ b/net/py-libdnet/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/08/10 13:52:52 drochner Exp $ +${PYSITELIB}/dnet.so diff --git a/net/py-libdnet/buildlink3.mk b/net/py-libdnet/buildlink3.mk new file mode 100644 index 00000000000..54082787491 --- /dev/null +++ b/net/py-libdnet/buildlink3.mk @@ -0,0 +1,21 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2005/08/10 13:52:52 drochner Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +PYLIBDNET_BUILDLINK3_MK:= ${PYLIBDNET_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= pylibdnet +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npylibdnet} +BUILDLINK_PACKAGES+= pylibdnet + +.if !empty(PYLIBDNET_BUILDLINK3_MK:M+) + +.include "../../lang/python/pyversion.mk" + +BUILDLINK_DEPENDS.pylibdnet+= ${PYPKGPREFIX}-libdnet>=1.7 +BUILDLINK_PKGSRCDIR.pylibdnet?= ../../net/py-libdnet +.endif # PYLIBDNET_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/net/py-libdnet/distinfo b/net/py-libdnet/distinfo new file mode 100644 index 00000000000..76b081a8ef7 --- /dev/null +++ b/net/py-libdnet/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/08/10 13:52:52 drochner Exp $ + +SHA1 (libdnet-1.10.tar.gz) = 1dd9594adb5a3af121960abd6960bcedfc815f37 +RMD160 (libdnet-1.10.tar.gz) = 167cf841b3fdd061ec8d6a56d53c341678ee5a9e +Size (libdnet-1.10.tar.gz) = 419752 bytes +SHA1 (patch-aa) = 34258a63fc9f3866920b7529e8d8b4ea94d36445 diff --git a/net/py-libdnet/patches/patch-aa b/net/py-libdnet/patches/patch-aa new file mode 100644 index 00000000000..4925de5ef24 --- /dev/null +++ b/net/py-libdnet/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/08/10 13:52:52 drochner Exp $ + +--- python/setup.py.in.orig 2005-08-10 13:33:42.000000000 +0200 ++++ python/setup.py.in +@@ -6,7 +6,7 @@ from distutils.core import setup, Extens + dnet_srcs = [ './dnet.c' ] + dnet_incdirs = [ '../include' ] + dnet_libdirs = [] +-dnet_libs = [] ++dnet_libs = [ 'dnet' ] + dnet_extargs = [] + dnet_extobj = [] + |