# $Id: Portfile 83385 2011-08-31 01:52:26Z dports@macports.org $

PortSystem 1.0

name            ifstat
version         1.1
revision        5
categories      sysutils net
description     ifstat is a tool to report network interface bandwidth
long_description \
    ifstat is a tool to report network interfaces bandwith \
    just like vmstat/iostat do for other system counters. \
    ifstat gathers these statistics from the kernel internal \
    counters, which is highly operating system dependent.
homepage        http://gael.roualland.free.fr/ifstat/
license         GPL-2
platforms       darwin
maintainers     nomaintainer
master_sites    ${homepage}
checksums       md5 b655642c33a626cfe976792fbcd9b6e1

patchfiles      patch-Makefile.in

configure.args  --mandir=${prefix}/share/man --enable-library \
                --without-snmp \
                --without-ifmib

variant snmp description "Enable SNMP support" {
    depends_lib-append      port:net-snmp
    configure.args-delete   --without-snmp
    configure.args-append   --with-snmp=${prefix}
}
