Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
90 lines (76 sloc) 2.83 KB
# -*- 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
PortSystem 1.0
name ldns
subport ldns-tools {}
subport drill {}
version 1.7.0
categories net devel
platforms darwin
license BSD
maintainers nomaintainer
switch ${subport} {
"ldns" {
description DNS library in C
long_description ldns is a library with the aim of simplifying DNS \
programming in C. It is heavily based upon the Net::DNS module from \
"ldns-tools" {
description Tools for working with dns and dnssec.
long_description Tools as examples to the ldns library. \
Useful for debugging/querying dns/dnssec servers.
"drill" {
description A dig-style dnssec-aware dns debugging tool
long_description Drill is a tool ala dig from BIND. \
It was designed with DNSSEC in mind and should be a useful \
debugging/query tool for DNSSEC.
checksums rmd160 b0dfb70085258e69dda0fc343f0eece6df52e0a1 \
sha256 c19f5b1b4fb374cfe34f4845ea11b1e0551ddc67803bd6ddd5d2a20f0997a6cc
depends_build bin:glibtool:libtool
depends_lib path:lib/libssl.dylib:openssl
if {${subport} eq "ldns-tools"} {
depends_lib-append port:ldns \
if {${subport} eq "drill"} {
depends_lib-append port:ldns
if {${subport} eq "ldns-tools"} {
worksrcdir ldns-${version}/examples
if {${subport} eq "drill"} {
worksrcdir ldns-${version}/drill
if {${subport} eq "ldns"} {
configure.args --mandir=${prefix}/share/man --with-ssl=${prefix}
} else {
configure.args --mandir=${prefix}/share/man --with-ldns=${prefix} --with-ssl=${prefix}
if {${subport} eq "ldns"} {
configure.cppflags -I${worksrcpath}/include
if {${subport} ne "drill"} {
build.type gnu
# OpenSSL 1.1.0 not available
configure.args-append --disable-dane-ta-usage
if {${subport} eq "ldns"} {
pre-destroot {
reinplace "s,defined(@\$also),@\$also," ${worksrcpath}/doc/
post-destroot {
# Install pkg-config files not installed by the Makefile
reinplace "s/-arch \[^ \]*//g" ${worksrcpath}/packaging/libldns.pc
file mkdir ${destroot}${prefix}/lib/pkgconfig/
file copy ${worksrcpath}/packaging/libldns.pc \
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex ">LDNS (\\d+(?:\\.\\d+)*)</a>"