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.2 |
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 |
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 |
PYCRYPTO_DESC= Use py-crypto for WEP decoding |
27 |
PYGNUPLOT_DESC= Use py-gnuplot wrapper to plot graphs |
28 |
GRAPH_DESC= graph generation and visualization |
26 |
GRAPH_DESC= graph generation and visualization |
29 |
P0F_BASE_DESC= p0f OS signatures database |
27 |
IPYTHON_DESC= Use IPython (enhanced interactive shell) |
30 |
QUESO_BASE_DESC= queso OS signatures database |
|
|
31 |
NMAP_DESC= nmap OS signatures database |
32 |
MANUF_DESC= wireshark's MANUF MAC database |
28 |
MANUF_DESC= wireshark's MANUF MAC database |
33 |
MATPLOT_DESC= Install python matplotlibs |
29 |
MATPLOT_DESC= Install python matplotlibs |
|
|
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 |
35 |
QUESO_BASE_DESC=queso OS signatures database |
34 |
SOX_DESC= Support for VoIP |
36 |
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/ImageMagick6 \ |
38 |
GRAPH_RUN_DEPENDS= ${LOCALBASE}/bin/MagickCore-config:graphics/ImageMagick6 \ |
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/__init__.py: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}/Crypto/__init__.py:security/py-pycrypto@${PY_FLAVOR} |
46 |
PYGNUPLOT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}/Gnuplot/__init__.py:math/py-gnuplot@${PY_FLAVOR} |
47 |
PYX_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}/pyx/__init__.py:graphics/py-PyX12@${PY_FLAVOR} |
42 |
QUESO_BASE_RUN_DEPENDS= ${LOCALBASE}/etc/queso.conf.sample:net/queso |
48 |
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 |
49 |
SOX_RUN_DEPENDS= ${LOCALBASE}/bin/sox:audio/sox |
47 |
|
50 |
|
48 |
post-patch: |
51 |
post-patch: |
49 |
@${REINPLACE_CMD} "s,share/man/man1,man/man1," ${WRKSRC}/setup.py |
52 |
@${REINPLACE_CMD} "s,share/man/man1,man/man1," ${WRKSRC}/setup.py |
|
|
53 |
@${REINPLACE_CMD} "s,pdflatex,pdftex," ${WRKSRC}/scapy/extlib.py |
50 |
@${REINPLACE_CMD} "s,/usr/share/,${LOCALBASE}/share/," \ |
54 |
@${REINPLACE_CMD} "s,/usr/share/,${LOCALBASE}/share/," \ |
51 |
${WRKSRC}/scapy/data.py ${WRKSRC}/scapy/utils6.py \ |
55 |
${WRKSRC}/scapy/data.py \ |
52 |
${WRKSRC}/scapy/modules/nmap.py |
56 |
${WRKSRC}/scapy/modules/nmap.py \ |
|
|
57 |
${WRKSRC}/scapy/utils6.py |
53 |
@${REINPLACE_CMD} "s,/etc/,${LOCALBASE}/etc/," \ |
58 |
@${REINPLACE_CMD} "s,/etc/,${LOCALBASE}/etc/," \ |
54 |
${WRKSRC}/scapy/modules/p0f.py ${WRKSRC}/scapy/modules/queso.py |
59 |
${WRKSRC}/scapy/modules/p0f.py |
55 |
|
60 |
|
56 |
.include <bsd.port.mk> |
61 |
.include <bsd.port.mk> |