maintainers {jberry @jdberry} openmaintainer
description A ping probe adapter for mrtg
long_description Monitors round trip time and packet loss to another host.
homepage http://pwo.de/projects/mrtg/
master_sites ftp://ftp.pwo.de/pub/pwo/mrtg/${name}
checksums md5 5eec5bc5f1c5097248c701d54639d292
depends_lib bin:mrtg:mrtg
extract.post_args "| tar -xmf -"
patchfiles mrtg-ping-probe.patch
# Ensure needed directories
xinstall -d ${destroot}${prefix}/share/man
${worksrcpath}/mrtg-ping-cfg \
${worksrcpath}/mrtg-ping-probe \
xinstall -m 644 ${worksrcpath}/mrtg-ping-probe.1 \
${destroot}${prefix}/share/man/man1
reinplace "s|#!/bin/perl|#!/usr/bin/env perl|" ${destroot}${prefix}/bin/mrtg-ping-probe
reinplace s|/bin/ksh|/bin/sh| ${destroot}${prefix}/bin/mrtg-ping-cfg
reinplace s|PING_PROBE=/usr/local/httpd/mrtg|PING_PROBE=${prefix}/bin| ${destroot}${prefix}/bin/mrtg-ping-cfg