# $Id$

PortSystem          1.0

name                dnstracer
version             1.9
categories          net sysutils
license             BSD
maintainers         nomaintainer
description         trace a chain of DNS servers to the source
long_description \
   dnstracer determines where a given Domain Name Server (DNS) gets its \
   information from, and follows the chain of DNS servers back to the \
   servers which know the data.

platforms           darwin freebsd

homepage            http://www.mavetju.org/unix/dnstracer.php
master_sites        http://www.mavetju.org/download/

checksums           md5     7db73ce3070119c98049a617fe52ea84 \
                    sha1    b8c60b281c0eb309acd1b1551c51cccb951685c7 \
                    rmd160  deb18bce06d2524c6ef2df2d8bf6f7730b3be45e

configure.cppflags  "-DBIND_8_COMPAT=1"
configure.args      --mandir=${prefix}/share/man
if {${os.platform} eq "darwin" && ${os.major} > 9} {
   configure.env    LIBS=-lresolv
}

build.type          gnu

post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath} CHANGES CONTACT LICENSE README \
      ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.url       http://www.mavetju.org/unix/general.php
livecheck.regex     "${name}-(\[0-9.\]+)${extract.suffix}"