description A domain name server analysis and reporting tool
long_description ${description}
homepage http://www.enderunix.org/checkdns/
master_sites http://www.enderunix.org/checkdns/
checksums md5 7420cc7a01217391bb3eb4a2e7da1e96
patchfiles patch-dns.c.diff patch-main.c.diff patch-Makefile.diff
reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/checkdns.conf-dist
reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/main.c
build.args CC=${configure.cc}
build.args-append CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
LDFLAGS="[get_canonical_archflags ld]"
xinstall -m 755 ${worksrcpath}/checkdns ${destroot}${prefix}/bin
xinstall -m 755 -d ${destroot}${prefix}/etc/${name} \
${destroot}${prefix}/share/${name}
xinstall -m 644 ${worksrcpath}/checkdns.conf-dist \
${destroot}${prefix}/etc/${name}/checkdns.conf.sample
file copy ${worksrcpath}/lang ${destroot}${prefix}/share/${name}