diff options
author | Patrick Li <pat@FreeBSD.org> | 2002-04-27 02:35:36 +0000 |
---|---|---|
committer | Patrick Li <pat@FreeBSD.org> | 2002-04-27 02:35:36 +0000 |
commit | ea414e0448f0827f68029ad7bf2d963ea4728cd5 (patch) | |
tree | 1ae38ad87ab5323582e08de6fc581f089af8c50a /net/py-pcap | |
parent | fb2c8ff0dfec1950c6e132b4878ea128f8bc217e (diff) | |
download | ports-ea414e0448f0827f68029ad7bf2d963ea4728cd5.tar.gz ports-ea414e0448f0827f68029ad7bf2d963ea4728cd5.zip |
Notes
Diffstat (limited to 'net/py-pcap')
-rw-r--r-- | net/py-pcap/Makefile | 31 | ||||
-rw-r--r-- | net/py-pcap/distinfo | 2 | ||||
-rw-r--r-- | net/py-pcap/pkg-plist | 10 |
3 files changed, 8 insertions, 35 deletions
diff --git a/net/py-pcap/Makefile b/net/py-pcap/Makefile index a2c0cd0b396e..8773b74433f5 100644 --- a/net/py-pcap/Makefile +++ b/net/py-pcap/Makefile @@ -6,7 +6,7 @@ # PORTNAME= pcap -PORTVERSION= 0.2 +PORTVERSION= 0.3 CATEGORIES= net python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= pylibpcap @@ -16,34 +16,9 @@ DIST_SUBDIR= python MAINTAINER= perky@fallin.lv -BUILD_DEPENDS= ${SWIG_CMD}:${PORTSDIR}/devel/SWIG +BUILD_DEPENDS= swig:${PORTSDIR}/devel/SWIG -EXAMPLESDIR= ${PREFIX}/share/examples/py-pcap -PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S|^${LOCALBASE}/||g} -SWIG_CMD?= ${LOCALBASE}/bin/swig -WRKSRC= ${WRKDIR}/pylibpcap USE_PYTHON= yes - -post-patch: - ${SED} -e 's|^\(PYTHON_INCLUDES=\).*|\1-I${PYTHON_INCLUDEDIR}|g' \ - -e 's|^\(SWIG=\).*|\1${SWIG_CMD}|g' \ - ${WRKSRC}/Makefile > ${WRKSRC}/Makefile.temp && \ - ${MV} -f ${WRKSRC}/Makefile.temp ${WRKSRC}/Makefile - ${SED} -e 's|pcap/pcap\.h|pcap.h|g' \ - ${WRKSRC}/pypcap.h > ${WRKSRC}/pypcap.h.temp && \ - ${MV} -f ${WRKSRC}/pypcap.h.temp ${WRKSRC}/pypcap.h - -post-build: - ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} - ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} - -do-install: -.for f in pcapcmodule.so pcap.py pcap.pyc pcap.pyo - ${INSTALL_DATA} ${WRKSRC}/$f ${PYTHON_SITELIBDIR} -.endfor -.if !defined(NOPORTDOCS) - @${MKDIR} ${EXAMPLESDIR} - ${INSTALL_SCRIPT} ${WRKSRC}/sniff.py ${EXAMPLESDIR} -.endif +USE_PYDISTUTILS= yes .include <bsd.port.mk> diff --git a/net/py-pcap/distinfo b/net/py-pcap/distinfo index caeeb103a9e7..66235dca03eb 100644 --- a/net/py-pcap/distinfo +++ b/net/py-pcap/distinfo @@ -1 +1 @@ -MD5 (python/pylibpcap-0.2.tar.gz) = f0e9fec4cd90305674ab1d4187f30a9e +MD5 (python/pylibpcap-0.3.tar.gz) = d2ec5112f383dcbe9a964097194fcc7f diff --git a/net/py-pcap/pkg-plist b/net/py-pcap/pkg-plist index 42fce3725b6d..f696ee15b951 100644 --- a/net/py-pcap/pkg-plist +++ b/net/py-pcap/pkg-plist @@ -1,6 +1,4 @@ -%%PYTHON_SITELIBDIR%%/pcap.py -%%PYTHON_SITELIBDIR%%/pcap.pyc -%%PYTHON_SITELIBDIR%%/pcap.pyo -%%PYTHON_SITELIBDIR%%/pcapcmodule.so -%%PORTDOCS%%share/examples/py-pcap/sniff.py -%%PORTDOCS%%@dirrm share/examples/py-pcap +lib/%%PYTHON_VERSION%%/site-packages/pcap.py +lib/%%PYTHON_VERSION%%/site-packages/pcap.pyc +lib/%%PYTHON_VERSION%%/site-packages/pcap.pyo +lib/%%PYTHON_VERSION%%/site-packages/pcapcmodule.so |