# $Id: Portfile,v 1.17 2005/04/04 10:08:38 jkh Exp $

PortSystem 1.0

name             ettercap
version          0.6.b
revision         1
categories       net security
maintainers      toby@opendarwin.org
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
configure.args   --enable-ncurses \
                 --disable-gtk \
                 --enable-https \
                 --disable-devel \
                 --mandir=${prefix}/share/man

platform darwin 6 { depends_lib-append lib:libdl:dlcompat }

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

variant 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
}
