Portfile

# $Id: Portfile 20339 2006-11-02 00:52:17Z blair@macports.org $

PortSystem 1.0
name ettercap-ng
version 0.7.3
categories net security
maintainers ultrix@gmail.com
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:ettercap
distname ettercap-NG-${version}
checksums md5 28fb15cd024162c55249888fe1b97820

patchfiles patch-src-Makefile.in patch-configure

depends_lib port:openssl \
port:libpcap \
port:libnet11 \
lib:libpcre.0:pcre

configure.args --disable-gtk \
--disable-plugins \
--with-openssl=${prefix} \
--with-libpcap=${prefix} \
--with-libnet=${prefix} \
--with-libpcre=${prefix} \
--mandir=\\\${prefix}/share/man \
--infodir=\\\${prefix}/share/info

variant gtk {
depends_lib-append lib:libglib.2:glib2 \
lib:libgtk.2:gtk2
configure.args-delete --disable-gtk
configure.args-append --enable-gtk
}

variant plugins {
configure.args-delete --disable-plugins
configure.args-append --enable-plugins
}

files