# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name unbound version 1.5.4 categories net license BSD maintainers snc description Validating, recursive, and caching DNS resolver. homepage http://unbound.net/ platforms darwin depends_lib port:openssl port:expat set unbounduser unbound set unboundgroup unbound 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 rmd160 0d77e595ae80191d382b44c89365ef9054f374df \ sha256 a1e1c1a578cf8447cb51f6033714035736a0f04444854a983123c094cc6fb137 configure.args-append --with-pidfile=${prefix}/var/run/${name}/${name}.pid \ --with-rootkey-file=${prefix}/var/run/${name}/root.key variant libevent description {Build with libevent (slower, but allows use of large outgoing port ranges)} { depends_lib-append port:libevent configure.args-append --with-libevent=${prefix} } test.run yes add_users ${unbounduser} group=${unboundgroup} home=/dev/null realname=Unbound\ Resolver post-destroot { xinstall -o ${unbounduser} -g ${unboundgroup} -m 755 -d ${destroot}${prefix}/var/run/${name} move ${destroot}${prefix}/etc/${name}/${name}.conf ${destroot}${prefix}/etc/${name}/${name}.conf-dist touch ${destroot}${prefix}/var/run/${name}/${name}.pid file attributes ${destroot}${prefix}/var/run/${name}/${name}.pid -owner ${unbounduser} -group ${unboundgroup} } post-activate { system "${prefix}/sbin/unbound-anchor -a \"${prefix}/var/run/${name}/root.key\" || :" file attributes ${prefix}/var/run/${name}/root.key -owner ${unbounduser} -group ${unboundgroup} } # Make it run on boot startupitem.create yes startupitem.name unbound startupitem.start "${prefix}/sbin/unbound-anchor -a ${prefix}/var/run/${name}/root.key || : && chown ${unbounduser}:${unboundgroup} ${prefix}/var/run/${name}/root.key && ${prefix}/sbin/unbound" startupitem.stop "/bin/kill \$(cat ${prefix}/var/run/${name}/unbound.pid)" livecheck.type regex livecheck.url ${homepage}/download.html livecheck.regex "The latest version of unbound \\(currently (\\d+\\.\\d+(\\.\\d+))\\)" use_parallel_build no notes-append "An example configuration is provided at ${prefix}/etc/${name}/${name}.conf-dist."