# $Id: Portfile 36370 2008-04-29 02:03:21Z raimue@macports.org $

PortSystem 1.0

name                    nsping
version                 0.8
revision                3
categories              net
maintainers             nomaintainer
description             DNS ping
long_description        Nsping uses DNS queries to monitor reachability \
                        and operation of nameservers, as well as the latency \
                        of DNS queries. It does this by sending random recursive \
                        DNS queries to the nameserver (avoiding the effects of \
                        DNS caching) and measuring the amount of time between \
                        the sending of the query and the receipt of the response packet.

platforms               darwin
master_sites            http://distfiles.master.finkmirrors.net/

checksums               md5 64785a50eb065a9b28ee33ec8c1ccab2
extract.post_args       | gnutar -x
use_configure           no
build.env               CPPFLAGS="-DBIND_8_COMPAT"
build.target
destroot                { xinstall -m 755 -d ${destroot}${prefix}/bin
                          xinstall -m 555 -W ${worksrcpath} nsping ${destroot}${prefix}/bin
                          xinstall -m 755 -d ${destroot}${prefix}/share/man/man8
                          xinstall -m 644 -c -W ${worksrcpath} nsping.8 ${destroot}${prefix}/share/man/man8 }
