From 33ec7d137a491baf325d3b322e89042b31c7b72f Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Wed, 30 Jan 2002 03:32:10 +0000 Subject: add py-libnet 1.0 Python module for the libnet packet construction library --- net/py-libnet/Makefile | 36 ++++++++++++++++++++++++++++++++++++ net/py-libnet/distinfo | 1 + net/py-libnet/files/patch-Makefile | 16 ++++++++++++++++ net/py-libnet/pkg-comment | 1 + net/py-libnet/pkg-descr | 3 +++ net/py-libnet/pkg-plist | 2 ++ 6 files changed, 59 insertions(+) create mode 100644 net/py-libnet/Makefile create mode 100644 net/py-libnet/distinfo create mode 100644 net/py-libnet/files/patch-Makefile create mode 100644 net/py-libnet/pkg-comment create mode 100644 net/py-libnet/pkg-descr create mode 100644 net/py-libnet/pkg-plist (limited to 'net/py-libnet') diff --git a/net/py-libnet/Makefile b/net/py-libnet/Makefile new file mode 100644 index 000000000000..30e60095640e --- /dev/null +++ b/net/py-libnet/Makefile @@ -0,0 +1,36 @@ +# ex:ts=8 +# Ports collection makefile for: py-libnet +# Date created: Jan 30, 2002 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= libnet +PORTVERSION= 1.0 +CATEGORIES= net python +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= pylibnet +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pylibnet-${PORTVERSION} + +MAINTAINER= ports@FreeBSD.org + +BUILD_DEPENDS= swig:${PORTSDIR}/devel/SWIG \ + ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet + +USE_PYTHON= yes +USE_GMAKE= yes +WRKSRC= ${WRKDIR}/${DISTNAME}/src + +post-patch: + @${PERL} -pi -e "s,^CC,#CC,g ; \ + s,%%PYTHON_INCLUDEDIR%%,${PYTHON_INCLUDEDIR},g ; \ + s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/Makefile + +do-install: +.for file in libnet.py libnetcmodule.so + ${INSTALL_DATA} ${WRKSRC}/${file} ${PYTHON_SITELIBDIR} +.endfor + +.include diff --git a/net/py-libnet/distinfo b/net/py-libnet/distinfo new file mode 100644 index 000000000000..fe31fdc86cc6 --- /dev/null +++ b/net/py-libnet/distinfo @@ -0,0 +1 @@ +MD5 (pylibnet-1.0.tar.gz) = 1c1556a7a9fa5c72edd118c492bac135 diff --git a/net/py-libnet/files/patch-Makefile b/net/py-libnet/files/patch-Makefile new file mode 100644 index 000000000000..bafbce66fe37 --- /dev/null +++ b/net/py-libnet/files/patch-Makefile @@ -0,0 +1,16 @@ +--- Makefile.orig Wed Jan 30 11:16:34 2002 ++++ Makefile Wed Jan 30 11:20:32 2002 +@@ -1,10 +1,10 @@ + + SWIG=/usr/local/bin/swig + CC=gcc -g +-PYTHON_INCLUDES=-I/usr/include/python1.5 +-LIBNET_INCLUDES=-I/usr/include/libnet ++PYTHON_INCLUDES=-I%%PYTHON_INCLUDEDIR%% ++LIBNET_INCLUDES=-I%%LOCALBASE%%/include + CFLAGS=`libnet-config --defines` +-LIBNET_LIB=/usr/lib/libnet.a ++LIBNET_LIB=%%LOCALBASE%%/lib/libnet.a + + OBJS= libnet.o exception.o error.o interface.o + diff --git a/net/py-libnet/pkg-comment b/net/py-libnet/pkg-comment new file mode 100644 index 000000000000..7cc2eee43878 --- /dev/null +++ b/net/py-libnet/pkg-comment @@ -0,0 +1 @@ +Python module for the libnet packet construction library diff --git a/net/py-libnet/pkg-descr b/net/py-libnet/pkg-descr new file mode 100644 index 000000000000..8bf2a18feaba --- /dev/null +++ b/net/py-libnet/pkg-descr @@ -0,0 +1,3 @@ +Python module for the libnet packet construction library + +WWW: http://pylibnet.sourceforge.net/ diff --git a/net/py-libnet/pkg-plist b/net/py-libnet/pkg-plist new file mode 100644 index 000000000000..742fbe635180 --- /dev/null +++ b/net/py-libnet/pkg-plist @@ -0,0 +1,2 @@ +lib/%%PYTHON_VERSION%%/site-packages/libnet.py +lib/%%PYTHON_VERSION%%/site-packages/libnetcmodule.so -- cgit v1.2.3