# $Id: Portfile 70012 2010-07-26 11:20:36Z simon@macports.org $

PortSystem          1.0

name                libudns
version             0.0.9
categories          net
platforms           darwin
maintainers         nomaintainer
description         DNS resolver library
long_description    UDNS is a stub DNS resolver library with ability to \
                    perform both syncronous and asyncronous DNS queries.

homepage            http://www.corpit.ru/mjt/udns.html
master_sites        http://www.corpit.ru/mjt/udns/
checksums           md5 78843added6f6b690bc6019ab8ef03c9 \
                    sha1 9792ac12619d23d3086f960561428238c41a25e0 \
                    rmd160 c2d79b97cda87614a644da6a1be2d55f354d8a22
distname            udns_${version}
worksrcdir          udns-${version}

configure.pre_args  {}

destroot {
    xinstall -W ${worksrcpath} dnsget ex-rdns rblcheck \
        ${destroot}${prefix}/bin

    xinstall -W ${worksrcpath} udns.h \
        ${destroot}${prefix}/include
    xinstall -W ${worksrcpath} libudns.a \
        ${destroot}${prefix}/lib

    xinstall -W ${worksrcpath} dnsget.1 rblcheck.1 \
        ${destroot}${prefix}/share/man/man1
    xinstall -W ${worksrcpath} udns.3 \
        ${destroot}${prefix}/share/man/man3
}

livecheck.type      regex
livecheck.regex     {version of the library is (\d+(?:\.\d+)*)}
