# $Id$

PortSystem 1.0

name             adns
version          1.5.0
categories       net
maintainers      nomaintainer
description      asynchronous DNS client library
long_description \
    adns is a resolver library for C (and C++) programs, and a \
    collection of useful DNS resolver utilities.
homepage         http://www.chiark.greenend.org.uk/~ian/adns/
platforms        darwin

license          GPL-3

master_sites     ${homepage}ftp/ \
                 ftp://ftp.chiark.greenend.org.uk/users/ian/adns/
checksums        md5     261956cf66146afd292846df9af06978 \
                 sha1    38306b8030c61a78bee85e33f34de876392ca4f8 \
                 rmd160  1a226f7d20a6cfdb584247dc4bb649397ffb4249

patchfiles       patch-configure \
                 patch-client__Makefile.in \
                 patch-dynamic__Makefile.in \
                 patch-src__Makefile.in \
                 patch-src__internal.h

configure.ldflags "-L../src -L${prefix}/lib" 

test.run         yes
test.target      check

livecheck.type   regex
livecheck.url    [lindex ${master_sites} 0]
livecheck.regex  ${name}-(\\d+(?:\\.\\d+)*)