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

github.setup        tomac yersinia 0.8.2 v
revision            1
checksums           rmd160  f61d51db7dd8097b3eb5d74927643a6b642ac0c3 \
                    sha256  964f528dbffd904376ab7986e69b1e8639591c929e2f39186ac9ebf2d3bc761f \
                    size    387889

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)

platforms           darwin freebsd

github.tarball_from archive

patchfiles          patch-protocols.h \
                    patch-vtp.c

depends_lib         port:ncurses \
                    port:libpcap \
                    port:libnet

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

configure.ldflags-append -lcurses

variant gtk {
    depends_lib-append    path:lib/pkgconfig/gtk+-2.0.pc:gtk2
    configure.args-delete --disable-gtk
    configure.args-append --enable-gtk
}
