# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 63036 2010-01-24 10:43:40Z jmr@macports.org $

PortSystem	      1.0
PortGroup	      python26 1.0

name		      py26-scapy
version		      2.1.0
categories	      net security python
platforms	      darwin
maintainers	      pmq

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/
distname              scapy-${version}

checksums             md5     357b5b21ea3b4f289a326c0905b715c1 \
                      sha1    e507bc0f2a32d209f321580c9338d2ceb72ab93a \
                      rmd160  caca42e89c87c07a2dbe399dd4e5924cefdff48a

depends_lib-append    port:py26-pylibpcap \
                      port:py26-libdnet     port:py26-crypto \
                      port:py26-gnuplot     port:py26-pyx \
                      path:bin/dot:graphviz

post-destroot {
        ln -s ${python.prefix}/share/man/man1/scapy.1.gz \
              ${destroot}${prefix}/share/man/man1/scapy-${python.branch}.1.gz
}
