View | Details | Raw Unified | Return to bug 230110 | Differences between
and this patch

Collapse All | Expand All

(-)scapy/Makefile (-24 / +31 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=		scapy
4
PORTNAME=		scapy
5
PORTVERSION=		2.3.3
5
PORTVERSION=		2.4.0
6
DISTVERSIONPREFIX=	v
6
DISTVERSIONPREFIX=	v
7
CATEGORIES=		net
7
CATEGORIES=		net
8
8
Lines 10-56 Link Here
10
COMMENT=	Powerful interactive packet manipulation program in python
10
COMMENT=	Powerful interactive packet manipulation program in python
11
11
12
LICENSE=	GPLv2
12
LICENSE=	GPLv2
13
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
15
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}libdnet>0:net/py-libdnet@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}pcap>0:net/py-pcap@${PY_FLAVOR}
17
18
USES=		python:2.7
19
USE_PYTHON=	autoplist distutils noflavors
14
USE_GITHUB=	yes
20
USE_GITHUB=	yes
15
GH_ACCOUNT=	secdev
21
GH_ACCOUNT=	secdev
16
22
17
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/dnet.so:net/py-libdnet@${PY_FLAVOR} \
18
		${PYTHON_SITELIBDIR}/pcap.py:net/py-pcap@${PY_FLAVOR}
19
20
USES=		python:2.7
21
USE_PYTHON=	autoplist distutils
22
NO_ARCH=	yes
23
NO_ARCH=	yes
23
24
24
OPTIONS_DEFINE=	PYX PYCRYPTO PYGNUPLOT GRAPH P0F_BASE QUESO_BASE NMAP MANUF MATPLOT
25
OPTIONS_DEFINE=	GRAPH IPYTHON P0F_BASE MANUF MATPLOT NMAP PYCRYPTO PYGNUPLOT PYX QUESO_BASE SOX
25
PYX_DESC=	PostScript and PDF graphs drawing
26
GRAPH_DESC=		graph generation and visualization
26
PYCRYPTO_DESC=	Use py-crypto for WEP decoding
27
IPYTHON_DESC=		Use IPython (enhanced interactive shell)
27
PYGNUPLOT_DESC=	Use py-gnuplot wrapper to plot graphs
28
MANUF_DESC=		Use MANUF MAC database supplied by wireshark
28
GRAPH_DESC=	graph generation and visualization
29
MATPLOT_DESC=		Install python matplotlibs
29
P0F_BASE_DESC=	p0f OS signatures database
30
NMAP_DESC=		nmap OS signatures database
31
P0F_BASE_DESC=		p0f OS signatures database
32
PYCRYPTO_DESC=		Use py-crypto for WEP decoding
33
PYGNUPLOT_DESC=		Use py-gnuplot wrapper to plot graphs
34
PYX_DESC=		PostScript and PDF graphs drawing
30
QUESO_BASE_DESC=	queso OS signatures database
35
QUESO_BASE_DESC=	queso OS signatures database
31
NMAP_DESC=	nmap OS signatures database
36
SOX_DESC=		Support for VoIP
32
MANUF_DESC=	wireshark's MANUF MAC database
33
MATPLOT_DESC=	Install python matplotlibs
34
SOX_DESC=	Support for VoIP
35
37
36
PYX_RUN_DEPENDS=	${PYTHON_SITELIBDIR}/pyx/__init__.py:graphics/py-PyX12@${PY_FLAVOR}
37
PYCRYPTO_RUN_DEPENDS=	${PYTHON_SITELIBDIR}/Crypto/__init__.py:security/py-pycrypto@${PY_FLAVOR}
38
PYGNUPLOT_RUN_DEPENDS=	${PYTHON_SITELIBDIR}/Gnuplot/__init__.py:math/py-gnuplot@${PY_FLAVOR}
39
GRAPH_RUN_DEPENDS=	${LOCALBASE}/bin/MagickCore-config:graphics/ImageMagick \
38
GRAPH_RUN_DEPENDS=	${LOCALBASE}/bin/MagickCore-config:graphics/ImageMagick \
40
			${LOCALBASE}/bin/dot:graphics/graphviz
39
			${LOCALBASE}/bin/dot:graphics/graphviz
40
IPYTHON_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ipython>0:devel/ipython@${PY_FLAVOR}
41
NMAP_RUN_DEPENDS=	${LOCALBASE}/share/nmap/nmap-os-db:security/nmap
42
MANUF_RUN_DEPENDS=	${LOCALBASE}/share/wireshark/manuf:net/wireshark
43
MATPLOT_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR}
41
P0F_BASE_RUN_DEPENDS=	${LOCALBASE}/etc/p0f.fp:net-mgmt/p0f
44
P0F_BASE_RUN_DEPENDS=	${LOCALBASE}/etc/p0f.fp:net-mgmt/p0f
45
PYCRYPTO_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cryptography>=1.7:security/py-cryptography@${PY_FLAVOR}
46
PYGNUPLOT_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gnuplot>0:math/py-gnuplot@${PY_FLAVOR}
47
PYX_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}PyX12>=0.12.1:graphics/py-PyX12@${PY_FLAVOR} \
48
			${LOCALBASE}/bin/pdftex:print/tex-basic-engines
42
QUESO_BASE_RUN_DEPENDS=	${LOCALBASE}/etc/queso.conf.sample:net/queso
49
QUESO_BASE_RUN_DEPENDS=	${LOCALBASE}/etc/queso.conf.sample:net/queso
43
NMAP_RUN_DEPENDS=	${LOCALBASE}/share/nmap/nmap-os-db:security/nmap
44
MANUF_RUN_DEPENDS=	${LOCALBASE}/share/wireshark/manuf:net/wireshark
45
MATPLOT_RUN_DEPENDS=	${PYTHON_SITELIBDIR}/matplotlib/__init__.py:math/py-matplotlib@${PY_FLAVOR}
46
SOX_RUN_DEPENDS=	${LOCALBASE}/bin/sox:audio/sox
50
SOX_RUN_DEPENDS=	${LOCALBASE}/bin/sox:audio/sox
47
51
48
post-patch:
52
post-patch:
49
	@${REINPLACE_CMD} "s,share/man/man1,man/man1," ${WRKSRC}/setup.py
53
	@${REINPLACE_CMD} "s,share/man/man1,man/man1," ${WRKSRC}/setup.py
54
	@${REINPLACE_CMD} "s,pdflatex,pdftex," ${WRKSRC}/scapy/extlib.py
50
	@${REINPLACE_CMD} "s,/usr/share/,${LOCALBASE}/share/," \
55
	@${REINPLACE_CMD} "s,/usr/share/,${LOCALBASE}/share/," \
51
		${WRKSRC}/scapy/data.py ${WRKSRC}/scapy/utils6.py \
56
		${WRKSRC}/scapy/data.py \
57
	       	${WRKSRC}/scapy/utils6.py \
52
		${WRKSRC}/scapy/modules/nmap.py
58
		${WRKSRC}/scapy/modules/nmap.py
53
	@${REINPLACE_CMD} "s,/etc/,${LOCALBASE}/etc/," \
59
	@${REINPLACE_CMD} "s,/etc/,${LOCALBASE}/etc/," \
54
		${WRKSRC}/scapy/modules/p0f.py ${WRKSRC}/scapy/modules/queso.py
60
		${WRKSRC}/scapy/modules/p0f.py \
61
		${WRKSRC}/scapy/modules/queso.py
55
62
56
.include <bsd.port.mk>
63
.include <bsd.port.mk>
(-)scapy/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1513871305
1
TIMESTAMP = 1532179664
2
SHA256 (secdev-scapy-v2.3.3_GH0.tar.gz) = 67642cf7b806e02daeddd588577588caebddc3426db7904e7999a0b0334a63b5
2
SHA256 (secdev-scapy-v2.4.0_GH0.tar.gz) = 3836c62c33dd3f7c1ae30f5c2c1ab8078e4e32f5bf9c8be758dbaafe1c6a580e
3
SIZE (secdev-scapy-v2.3.3_GH0.tar.gz) = 1459132
3
SIZE (secdev-scapy-v2.4.0_GH0.tar.gz) = 3182131
(-)scapy/pkg-descr (-11 / +12 lines)
Lines 1-13 Link Here
1
Scapy is a powerful interactive packet manipulation program. It is
1
Scapy is a powerful interactive packet manipulation program. It is able to forge
2
able to forge or decode packets of a wide number of protocols, send
2
or decode packets of a wide number of protocols, send them on the wire, capture
3
them on the wire, capture them, match requests and replies, and much
3
them, match requests and replies, and much more.
4
more. It can easily handle most classical tasks like scanning,
5
tracerouting, probing, unit tests, attacks or network discovery (it
6
can replace hping, 85% of nmap, arpspoof, arp-sk, arping, tcpdump,
7
tethereal, p0f, etc.). It also performs very well at a lot of other
8
specific tasks that most other tools can't handle, like sending
9
invalid frames, injecting your own 802.11 frames, combining technics
10
(VLAN hopping+ARP cache poisoning, VOIP decoding on WEP encrypted
11
channel, ...), etc.
12
4
5
It can easily handle most classical tasks like scanning, tracerouting, probing,
6
unit tests, attacks or network discovery (it can replace hping, 85% of nmap,
7
arpspoof, arp-sk, arping, tcpdump, tethereal, p0f, etc.).
8
9
It also performs very well at a lot of other specific tasks that most other
10
tools can't handle, like sending invalid frames, injecting your own 802.11
11
frames, combining technics (VLAN hopping+ARP cache poisoning, VOIP decoding on
12
WEP encrypted channel, ...), etc.
13
13
WWW: http://secdev.org/projects/scapy
14
WWW: http://secdev.org/projects/scapy

Return to bug 230110