# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
maintainers macports.org:snc \
description Validating, recursive, and caching DNS resolver.
homepage http://unbound.net/
long_description Unbound is a validating, recursive, and caching DNS \
server software product from NLnet Labs, VeriSign Inc.,\
Nominet, and Kirei. It is distributed free of charge \
in open source form under the BSD license.\
Unbound is designed as a set of modular components \
that incorporate modern features, such as enhanced \
security (DNSSEC) validation, Internet Protocol \
Version 6 (IPv6), and a client resolver library API \
as an integral part of the architecture.
master_sites http://unbound.net/downloads/
checksums md5 f1f6c97b90b15ca503a80b888c311d6c \
sha1 c1f227b95448cdfd0006d6d00b3d4354500d7564 \
rmd160 908d80acf0dfe4592922988e5ca73bdbab8d26a9
configure.args-append --with-pidfile=${prefix}/var/run/${name}/${name}.pid
set gid [existsgroup ${unboundgroup}]
adduser ${unbounduser} shell=/sbin/nologin gid=${gid} \
realname=Unbound\ Resolver
move ${destroot}${prefix}/etc/${name}/${name}.conf ${destroot}${prefix}/etc/${name}/${name}.conf-dist
startupitem.start ${prefix}/sbin/unbound
startupitem.stop "/bin/kill \$(cat ${prefix}/etc/unbound/unbound.pid)"
livecheck.url ${homepage}/download.html
livecheck.regex "The latest version of unbound \\(currently (\\d+\\.\\d+(\\.\\d+))\\)"