1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

net/pcapy-ng: Add new port

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

PR:		260732
This commit is contained in:
Michael Muenz 2022-03-30 14:33:10 +02:00 committed by Mikael Urankar
parent d4bdaf8bef
commit 0f9142697a
4 changed files with 45 additions and 0 deletions

View File

@ -1073,6 +1073,7 @@
SUBDIR += py-paho-mqtt
SUBDIR += py-pamqp
SUBDIR += py-pcapy
SUBDIR += py-pcapy-ng
SUBDIR += py-port-for
SUBDIR += py-portend
SUBDIR += py-pyenet

32
net/py-pcapy-ng/Makefile Normal file
View File

@ -0,0 +1,32 @@
# Created by: Michael Muenz <m.muenz@gmail.com>
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
USES= python:3.7+
USE_PYTHON= autoplist distutils
CONFLICTS_INSTALL= pcapy
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 <bsd.port.mk>

3
net/py-pcapy-ng/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1640604068
SHA256 (pcapy-ng-1.0.4.tar.gz) = b272a90c8488e765a33128e903e2ade41c9b65f7b95ee3aa9a8ddc69efd9dc53
SIZE (pcapy-ng-1.0.4.tar.gz) = 38617

View File

@ -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