# -*- 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.5 v checksums rmd160 0c614cedc5aadd15fc8c2d1a350fe0a6ebe84fae \ sha256 8c9b38bbc20d4fdd0bfc2c971fed9a170c0ef6572dab564e17c44a8c11e164af \ size 3323770 revision 2 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 298939e9f719258f219565cf81c0f6a32d7db47f version 20211225-[string range ${github.version} 0 7] checksums rmd160 d378aaf369fe042923a7365eedde27275ee68cf3 \ sha256 14217487c8778fbf30eb0e3bd25298003a5dd55b5d5b61781cff7d7088990cf9 \ size 4022101 revision 1 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}-pycryptodome 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 }