# $Id: Portfile,v 1.12 2005/05/09 18:40:13 jmpp Exp $

PortSystem 1.0
name			nsping	
version			0.8	
revision	 	3
categories		net
maintainers		darwinports@opendarwin.org
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		opendarwin \
			http://www.hazardous.org/fkr/download/

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