# -*- 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
PortGroup           github 1.0

github.setup        traviscross mtr 0.95 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
categories          net
license             GPL-2
maintainers         nomaintainer

description         traceroute and ping in a single tool
long_description    mtr combines the functionality of the 'traceroute' \
                    and 'ping' programs in a single network diagnostic \
                    tool. As mtr starts, it investigates the network \
                    connection between the host mtr runs on and \
                    a user-specified destination host. After it \
                    determines the address of each network hop between \
                    the machines, it sends a sequence ICMP ECHO \
                    requests to each one to determine the quality of \
                    the link to each machine. As it does this, it \
                    prints running statistics about each machine.
homepage            https://www.bitwizard.nl/mtr/

depends_build       path:bin/pkg-config:pkgconfig
depends_lib         port:ncurses \
                    port:jansson

master_sites        macports_distfiles
checksums           rmd160  71c29a1bd8546e724776bee281c661a9b0c11104 \
                    sha256  cead6802a1cd2a97d5fdf5e850bf6de4349a7a9d0f463ff715a1ed4555b64a41 \
                    size    291991

configure.args      --without-gtk \
                    --with-jansson

post-destroot {
    file attributes ${destroot}${prefix}/sbin/mtr-packet -permissions +s
}
