# -*- 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
# $Id: Portfile 92819 2012-05-07 18:14:48Z ryandesign@macports.org $

PortSystem 1.0

name        mtr
version     0.82
categories  net
license     GPL-2
maintainers mr_bond
description 'traceroute' and 'ping' in a single tool
long_description    \
    As mtr starts,  it  investigates  the  network  connection \
    between  the  host  mtr  runs on and HOSTNAME.  by sending \
    packets with purposly low TTLs. It continues to send pack- \
    ets  with  low TTL, noting the response time of the inter- \
    vening routers.  This allows mtr  to  print  the  response \
    percentage  and  response  times  of the internet route to \
    HOSTNAME.  A sudden increase  in  packetloss  or  response \
    time  is  often  an  indication  of a bad (or simply over- \
    loaded) link.
homepage    http://www.bitwizard.nl/mtr/
platforms   darwin
master_sites    ftp://ftp.bitwizard.nl/mtr/

checksums           rmd160  dd608961070e17eb3b4d17aec4c667d0b474e913 \
                    sha256  f3b457c9623ae03565688a7ffd49d4843a5e2505ccaf3ba8d9fbd86e3ce9b6a0

depends_lib         port:ncurses

configure.args-append --without-gtk

if {${os.platform} == "darwin" && ${os.major} >= 10} {
    configure.env-append LIBS=-lresolv
}
