/
Portfile
88 lines (66 loc) · 3.27 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup python 1.0
PortGroup github 1.0
name scapy
python.versions 27
python.default_version 27
categories net security python
license GPL-2
platforms darwin
supported_archs noarch
maintainers {michaelld @michaelld} openmaintainer
description A powerful packet manipulation tool
long_description \
Scapy is a powerful interactive packet manipulation program. It is \
able to forge or decode packets of a wide number of protocols, send \
them on the wire, capture them, match requests and replies, and much \
more. It can easily handle most classical tasks like scanning, \
tracerouting, probing, unit tests, attacks or network discovery (it \
can replace hping, 85% of nmap, arpspoof, arp-sk, arping, tcpdump, \
tethereal, p0f, etc.). It also performs very well at a lot of other \
specific tasks that most other tools can't handle, like sending \
invalid frames, injecting your own 802.11 frames, combining technics \
(VLAN hopping+ARP cache poisoning, VOIP decoding on WEP encrypted \
channel, ...), etc.
subport ${name}-devel {}
if {${subport} eq ${name}} {
github.setup secdev ${name} 2.4.3 v
checksums rmd160 71ef31e63c9de8e158bcc57dafe50b2a36c01a7b \
sha256 d9f4d27553418463273b0aab7c11dea2f4121c53a493fe9dc91d7feaf057af60 \
size 2970127
revision 0
conflicts ${name}-devel
# overload the github livecheck regex to look for versions that
# are just numbers and '.', no letters (e.g., "3.7.3_rc2").
github.livecheck.regex {([0-9.]+)}
} else {
github.setup secdev scapy ff43e450709605314c4739287e83c588a974a502
version 20191210-[string range ${github.version} 0 7]
checksums rmd160 4ea89617b92ab9175287b56197b1320c9316eee8 \
sha256 4659ff70a22d973f84fa40be3f9dfa13c72ba0919e4361fb63acc97b96825216 \
size 3082293
revision 0
long_description ${long_description} \
This port is kept up with the ${name} GIT 'master' branch, is typically updated weekly to monthly.
conflicts ${name}
}
homepage http://www.secdev.org/projects/${name}
depends_lib-append port:py${python.version}-gnureadline \
port:py${python.version}-pylibpcap \
port:py${python.version}-libdnet \
port:py${python.version}-crypto
default_variants +gnuplot +graphviz
## http://www.secdev.org/projects/scapy/doc/installation.html#optional-software-for-special-features
variant pyx description {" With PyX for creating PostScript figures"} {
depends_lib-append port:py${python.version}-pyx
}
variant gnuplot description { "With gnuplot export" } {
depends_run-append port:py${python.version}-gnuplot
}
variant graphviz description { "With graphviz export" } {
depends_run-append path:bin/dot:graphviz port:ImageMagick
}
variant sox description { "With sox export for VoIP" } {
depends_run-append port:sox
}