source: trunk/dports/net/scapy/Portfile

Last change on this file was 154293, checked in by michaelld@…, 9 months ago

scapy: update release to 2.3.3 and devel to 620f195c (20161026).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# -*- 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
2# $Id: Portfile 154293 2016-10-26 16:37:52Z ryandesign@macports.org $
3
4PortSystem            1.0
5PortGroup             python 1.0
6PortGroup             github 1.0
7
8name                  scapy
9
10python.versions        27
11python.default_version 27
12
13categories            net security python
14license               GPL-2
15platforms             darwin
16supported_archs       noarch
17maintainers           michaelld openmaintainer
18
19description           A powerful packet manipulation tool
20long_description      \
21        Scapy is a powerful interactive packet manipulation program. It is \
22        able to forge or decode packets of a wide number of protocols, send \
23        them on the wire, capture them, match requests and replies, and much \
24        more. It can easily handle most classical tasks like scanning, \
25        tracerouting, probing, unit tests, attacks or network discovery (it \
26        can replace hping, 85% of nmap, arpspoof, arp-sk, arping, tcpdump, \
27        tethereal, p0f, etc.). It also performs very well at a lot of other \
28        specific tasks that most other tools can't handle, like sending \
29        invalid frames, injecting your own 802.11 frames, combining technics \
30        (VLAN hopping+ARP cache poisoning, VOIP decoding on WEP encrypted \
31        channel, ...), etc.
32
33subport ${name}-devel {}
34
35if {${subport} eq ${name}} {
36
37    github.setup    secdev ${name} 2.3.3 v
38    checksums       rmd160 3ff0856e3edadcba0d64ae07a0eb0910aee7491c \
39                    sha256 52764c3860d4ec9177459ec733bee3da181eb6a726d30ea60f760b1153807363
40
41    conflicts       ${name}-devel
42
43} else {
44
45    github.setup    secdev ${name} 620f195c650e869f7fa27a881bc52e482f8d7ce8
46    version         20161026
47    checksums       rmd160 1dda47873173bc203b79709f402e2b8a676ce72f \
48                    sha256 d0511822267742d9a1cee3b23657047ea8688aea7677cb6fa9dd415b0ffe6947
49
50    long_description    ${long_description} \
51        This port is kept up with the ${name} GIT 'master' branch, is typically updated weekly to monthly.
52    conflicts       ${name}
53
54}
55
56homepage              http://www.secdev.org/projects/${name}
57
58depends_lib-append    port:py${python.version}-readline \
59                      port:py${python.version}-pylibpcap \
60                      port:py${python.version}-libdnet \
61                      port:py${python.version}-crypto
62
63default_variants +gnuplot +graphviz
64
65## http://www.secdev.org/projects/scapy/doc/installation.html#optional-software-for-special-features
66variant pyx description {" With PyX for creating PostScript figures"} {
67    depends_lib-append              port:py${python.version}-pyx
68}
69
70variant gnuplot description { "With gnuplot export" } {
71    depends_run-append              port:py${python.version}-gnuplot
72}
73
74variant graphviz description { "With graphviz export" } {
75    depends_run-append              path:bin/dot:graphviz port:ImageMagick
76}
77
78variant sox description { "With sox export for VoIP" } {
79    depends_run-append              port:sox
80}
Note: See TracBrowser for help on using the repository browser.