Date: Fri, 23 Nov 2001 20:40:15 -0800 (PST) From: Hye-Shik Chang <perky@fallin.lv> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/32240: New port: net/py-pcap Message-ID: <200111240440.fAO4eFd32862@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 32240 >Category: ports >Synopsis: New port: net/py-pcap >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: wish >Submitter-Id: current-users >Arrival-Date: Fri Nov 23 20:50:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Hye-Shik Chang >Release: FreeBSD 4.4 >Organization: Yonsei University >Environment: FreeBSD akaraka.yonsei.ac.kr 4.4-RC FreeBSD 4.4-RC #1: Sat Sep 1 17:47:31 KST 2001 root@akaraka.yonsei.ac.kr:/usr/src/sys/compile/RYOKO i386 >Description: Python module for the libpcap packet capture library. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # py-pcap # py-pcap/Makefile # py-pcap/distinfo # py-pcap/pkg-comment # py-pcap/pkg-descr # py-pcap/pkg-plist # echo c - py-pcap mkdir -p py-pcap > /dev/null 2>&1 echo x - py-pcap/Makefile sed 's/^X//' >py-pcap/Makefile << 'END-of-py-pcap/Makefile' X# New ports collection makefile for: py-pcap X# Date created: 24 Nov 2001 X# Whom: Hye-Shik Chang <perky@fallin.lv> X# X# $FreeBSD$ X# X XPORTNAME= pcap XPORTVERSION= 0.2 XCATEGORIES= net python XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= pylibpcap XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} XDISTNAME= pylibpcap-${PORTVERSION} XDIST_SUBDIR= python X XMAINTAINER= perky@fallin.lv X XBUILD_DEPENDS= ${SWIG_CMD}:${PORTSDIR}/devel/SWIG X XEXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} XPLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S|^${LOCALBASE}/||g} \ X EXAMPLESDIR=${EXAMPLESDIR:S|^${PREFIX}/||g} XSWIG_CMD?= ${LOCALBASE}/bin/swig XWRKSRC= ${WRKDIR}/pylibpcap XUSE_PYTHON= yes X Xdo-patch: X ${SED} -e 's|^\(PYTHON_INCLUDES=\).*|\1-I${PYTHON_INCLUDEDIR}|g' \ X -e 's|^\(SWIG=\).*|\1${SWIG_CMD}|g' \ X ${WRKSRC}/Makefile > ${WRKSRC}/Makefile.temp && \ X ${MV} -f ${WRKSRC}/Makefile.temp ${WRKSRC}/Makefile X ${SED} -e 's|pcap/pcap\.h|pcap.h|g' \ X ${WRKSRC}/pypcap.h > ${WRKSRC}/pypcap.h.temp && \ X ${MV} -f ${WRKSRC}/pypcap.h.temp ${WRKSRC}/pypcap.h X Xpost-build: X ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} X ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} X Xdo-install: X.for f in pcapcmodule.so pcap.py pcap.pyc pcap.pyo X ${INSTALL_DATA} ${WRKSRC}/$f ${PYTHON_SITELIBDIR} X.endfor X.if !defined(NOPORTDOCS) X -${MKDIR} ${EXAMPLESDIR} X ${INSTALL_SCRIPT} ${WRKSRC}/sniff.py ${EXAMPLESDIR} X.endif X X.include <bsd.port.mk> END-of-py-pcap/Makefile echo x - py-pcap/distinfo sed 's/^X//' >py-pcap/distinfo << 'END-of-py-pcap/distinfo' XMD5 (python/pylibpcap-0.2.tar.gz) = f0e9fec4cd90305674ab1d4187f30a9e END-of-py-pcap/distinfo echo x - py-pcap/pkg-comment sed 's/^X//' >py-pcap/pkg-comment << 'END-of-py-pcap/pkg-comment' XPython interface to LBL Packet Capture library (libpcap) END-of-py-pcap/pkg-comment echo x - py-pcap/pkg-descr sed 's/^X//' >py-pcap/pkg-descr << 'END-of-py-pcap/pkg-descr' XPython module for the libpcap packet capture library, Xbased on the original python libpcap module by Aaron Rhodes. X XWWW: http://sourceforge.net/projects/pylibpcap/ END-of-py-pcap/pkg-descr echo x - py-pcap/pkg-plist sed 's/^X//' >py-pcap/pkg-plist << 'END-of-py-pcap/pkg-plist' X%%PORTDOCS%%%%EXAMPLESDIR%%/sniff.py X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% X@cwd %%LOCALBASE%% X%%PYTHON_SITELIBDIR%%/pcap.py X%%PYTHON_SITELIBDIR%%/pcap.pyc X%%PYTHON_SITELIBDIR%%/pcap.pyo X%%PYTHON_SITELIBDIR%%/pcapcmodule.so END-of-py-pcap/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111240440.fAO4eFd32862>