# -*- 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           legacysupport 1.0

# clock_gettime
legacysupport.newest_darwin_requires_legacy 15

name                fping
epoch               1
version             5.5
revision            0
categories          net
maintainers         nomaintainer
license             X11

description         A scriptable ping program to check if multiple hosts are up

long_description    fping is different from ping in that you can specify \
                    any number of hosts on the command line, or specify \
                    a file containing the lists of hosts to ping. \
                    Instead of trying one host until it timeouts or \
                    replies, fping will send out a ping packet and move \
                    on to the next host in a round-robin fashion. If a \
                    host replies, it is noted and removed from the list \
                    of hosts to check. If a host does not respond within \
                    a certain time limit and/or retry limit it will be \
                    considered unreachable.

homepage            https://fping.org/
master_sites        ${homepage}dist/

checksums           rmd160  5d4bcc292aea1d2d26e186b1b8f0f7365b744014 \
                    sha256  15c4e32b6c55ff105bafe03e8c91c7ca1b2eda31bf9a7127326bb87887ee18fe \
                    size    215522

configure.args      --enable-ipv4 \
                    --enable-ipv6

# Remove after fping 5.5
patchfiles          0001-work-around-NetBSD-s-lack-of-IP_RECVTOS.patch

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