# -*- 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

name                yersinia
version             0.7.3
categories          net security
maintainers         nomaintainer
description         Solid framework for analyzing and testing the deployed networks and systems.
long_description \
   Yersinia is a network tool designed to take advantage of some weakeness in different \
   network protocols. It pretends to be a solid framework for analyzing and testing the \
   deployed networks and systems. \
   Currently, there are some network protocols implemented, but others are coming \
   (tell us which one is your preferred). Attacks for the following network protocols are\
   implemented (but of course you are free for implementing new ones):\
    Spanning Tree Protocol (STP)\
    Cisco Discovery Protocol (CDP)\
    Dynamic Trunking Protocol (DTP)\
    Dynamic Host Configuration Protocol (DHCP)\
    Hot Standby Router Protocol (HSRP)\
    IEEE 802.1Q\
    IEEE 802.1X\
    Inter-Switch Link Protocol (ISL)\
    VLAN Trunking Protocol (VTP)

homepage            http://www.yersinia.net/
platforms           darwin freebsd

master_sites        http://www.yersinia.net/download/
checksums           rmd160  976c1c500667f93d08630a4bd516917e104b2081 \
                    sha256  042abc466c5b470b97079e0049b4029a8cbb75d583cfbfb756fca76e460d40b4

extract.mkdir       yes

patchfiles          patch-protocols.h

depends_lib         port:ncurses \
                    port:libpcap \
                    port:libnet11

configure.args      --disable-gtk \
                    --with-pcap-includes=${prefix}/include

variant gtk {
    depends_lib-append    port:gtk2
    configure.args-delete --disable-gtk
    configure.args-append --enable-gtk
}