# $Id: Portfile 34960 2008-03-13 05:06:17Z jmr@macports.org $

PortSystem 1.0

name            iftop
version         0.17
revision        1
categories      net
maintainers     nomaintainer
description     display bandwidth usage on an interface
long_description        iftop does for network usage what top(1) does for CPU \
			usage. It listens to network traffic on a named \
			interface and displays a table of current bandwidth \
			usage by pairs of hosts. Handy for answering the \
			question \"why is our ADSL link so slow?\".
homepage        http://www.ex-parrot.com/~pdw/iftop/
master_sites    http://www.ex-parrot.com/~pdw/iftop/download/
checksums       md5 062bc8fb3856580319857326e0b8752d
platforms       darwin

depends_lib	port:libpcap port:ncurses

configure.args	--with-libpcap=${prefix} \
                --mandir=${prefix}/share/man

patchfiles	patch-configure.diff

post-patch	{ reinplace {s|@@PREFIX@@|${prefix}|} ${worksrcpath}/configure }
