# -*- 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
# $Id: Portfile 104593 2013-03-29 15:02:06Z jmr@macports.org $

PortSystem            1.0
PortGroup             python 1.0

name                  scapy
version               2.2.0
revision              1
python.default_version 27
categories            net security python
license               GPL-2
platforms             darwin
supported_archs       noarch
maintainers           nomaintainer

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.

homepage              http://www.secdev.org/projects/scapy
master_sites          ${homepage}/files/

checksums             sha256  c5363b224df0efbd78d7dc4d8a518e5518b2e7affc2e5f1fcecd4efa3ab815af \
                      rmd160  0cb0e14e6e84ba6a22b0afd7f2913a98888a418e

depends_lib-append    port:py${python.version}-readline    port:py${python.version}-pylibpcap \
                      port:py${python.version}-libdnet     port:py${python.version}-crypto \
                      port:py${python.version}-gnuplot     port:py${python.version}-pyx \
                      path:bin/dot:graphviz

python.link_binaries_suffix

livecheck.type        regex
livecheck.url         http://hg.secdev.org/scapy/tags
livecheck.regex       "v(\[\\d.\]+)"
