# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0

name            ifstat
version         1.1
revision        8
checksums       rmd160  dd3449590f3b5caf0a4190579518e1014b34be68 \
                sha256  8599063b7c398f9cfef7a9ec699659b25b1c14d2bc0f535aed05ce32b7d9f507 \
                size    67920

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}

patchfiles      DESTDIR.patch \
                ifstat.c.patch \
                implicit.patch

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-replace  --without-snmp --with-snmp=${prefix}
}

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex \"${name}-(\[0-9.\]+)[quotemeta ${extract.suffix}]
