diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-01-30 03:32:10 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-01-30 03:32:10 +0000 |
commit | 33ec7d137a491baf325d3b322e89042b31c7b72f (patch) | |
tree | 68acb4e772c6c7bb95b5cca34d9132b68f46779c /net | |
parent | Update to 0.4.1 (diff) |
add py-libnet 1.0
Python module for the libnet packet construction library
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/py-libnet/Makefile | 36 | ||||
-rw-r--r-- | net/py-libnet/distinfo | 1 | ||||
-rw-r--r-- | net/py-libnet/files/patch-Makefile | 16 | ||||
-rw-r--r-- | net/py-libnet/pkg-comment | 1 | ||||
-rw-r--r-- | net/py-libnet/pkg-descr | 3 | ||||
-rw-r--r-- | net/py-libnet/pkg-plist | 2 |
7 files changed, 60 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index 2a5a9bdc2e90..066bd698f0dd 100644 --- a/net/Makefile +++ b/net/Makefile @@ -364,6 +364,7 @@ SUBDIR += pvm++ SUBDIR += py-ipy SUBDIR += py-jabber + SUBDIR += py-libnet SUBDIR += py-pcap SUBDIR += py-smb SUBDIR += py-soap 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 <bsd.port.mk> 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 |