diff --git a/net/py-pcapy-ng/Makefile b/net/py-pcapy-ng/Makefile new file mode 100644 index 000000000000..9c026ea86974 --- /dev/null +++ b/net/py-pcapy-ng/Makefile @@ -0,0 +1,32 @@ +# Created by: Michael Muenz + +PORTNAME= pcapy-ng +PORTVERSION= 1.0.4 +CATEGORIES= net python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= m.muenz@gmail.com +COMMENT= Python pcap extension + +LICENSE= APACHE11 +LICENSE_FILE= ${WRKSRC}/LICENSE + +CONFLICTS_INSTALL= pcapy + +USES= python:3.6+ dos2unix +USE_PYTHON= autoplist distutils + +DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} +PORTDOCS= README pcapy.html + +OPTIONS_DEFINE= DOCS + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pcapy*.so + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + +.include diff --git a/net/py-pcapy-ng/distinfo b/net/py-pcapy-ng/distinfo new file mode 100644 index 000000000000..c4bbecec0304 --- /dev/null +++ b/net/py-pcapy-ng/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1640604068 +SHA256 (pcapy-ng-1.0.4.tar.gz) = b272a90c8488e765a33128e903e2ade41c9b65f7b95ee3aa9a8ddc69efd9dc53 +SIZE (pcapy-ng-1.0.4.tar.gz) = 38617 diff --git a/net/py-pcapy-ng/pkg-descr b/net/py-pcapy-ng/pkg-descr new file mode 100644 index 000000000000..086efd251d0b --- /dev/null +++ b/net/py-pcapy-ng/pkg-descr @@ -0,0 +1,9 @@ +Pcapy is a Python extension module that interfaces with the libpcap packet +capture library. Pcapy enables Python scripts to capture packets on the network. + +Pcapy is highly effective when used in conjunction with a packet-handling +package such as Impacket, which is a collection of Python classes for +constructing and dissecting network packets. + +WWW: https://github.com/CoreSecurity/pcapy +WWW: http://www.coresecurity.com/corelabs-research/open-source-tools/pcapy