# $Id: Portfile 54308 2009-07-24 18:49:33Z toby@macports.org $

PortSystem 1.0

name             ettercap
version          0.6.b
revision         2
categories       net security
maintainers      nomaintainer
description      multipurpose sniffer/interceptor/logger for switched LAN
long_description \
    Ettercap is a multi-functional packet sniffer/interceptor/logger \
    that works on switched LANs. It allows the active and passive \
    dissection of numerous protocols, including ciphered ones, such as \
    SSH1, and includes features for network and host analysis. Four \
    modes are available: IP Based, MAC Address Based, ARP Based, and \
    PublicARP Based.
homepage         http://ettercap.sourceforge.net/
platforms        darwin freebsd
master_sites     sourceforge
checksums        md5 f665cf82347a91f216184537f8f2c4bd
patchfiles       patch-ec_dissector_ssh.c
configure.args   --enable-ncurses \
                 --disable-gtk \
                 --enable-https \
                 --disable-devel \
                 --mandir=${prefix}/share/man

# the new generation lives in port "ettercap-ng"
livecheck.url    http://ettercap.sourceforge.net/download.php
livecheck.regex  ettercap-(\[0-9a-z.\]+)\\.tar\\.gz

variant gtk {
    depends_lib-append    lib:libgtk.1:gtk1
    configure.args-delete --disable-gtk
    configure.args-append --enable-gtk
}

variant enable_devel {
    configure.args-delete --disable-devel
    configure.args-append --enable-devel
}

variant ssl {
    depends_lib-append    lib:libssl.0.9:openssl
    configure.args-append --with-openssl
}
