--- Makefile (revision 411359) +++ Makefile (working copy) @@ -2,18 +2,21 @@ # $FreeBSD$ PORTNAME= dnsdist -DISTVERSION= 0.0.791gfbb356b +DISTVERSION= 1.0.0-alpha2 CATEGORIES= dns net -MASTER_SITES= http://builder.powerdns.com/files/dnsdist/dist/ \ +MASTER_SITES= https://downloads.powerdns.com/releases/ \ LOCAL/cpm MAINTAINER= cpm@FreeBSD.org COMMENT= Highly DNS-, DoS- and abuse-aware loadbalancer -LICENSE= GPLv2 +LICENSE= GPLv2 UNLICENSE +LICENSE_COMB= multi +LICENSE_NAME_UNLICENSE= The Unlicense +LICENSE_FILE_UNLICENSE= ${WRKSRC}/ext/incbin/UNLICENSE +LICENSE_PERMS_UNLICENSE= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -BUILD_DEPENDS= ${LOCALBASE}/lib/libatomic_ops.a:${PORTSDIR}/devel/libatomic_ops \ - ragel>0:${PORTSDIR}/devel/ragel +BUILD_DEPENDS= ${LOCALBASE}/lib/libatomic_ops.a:${PORTSDIR}/devel/libatomic_ops LIB_DEPENDS= libboost_serialization.so:${PORTSDIR}/devel/boost-libs \ libsodium.so:${PORTSDIR}/security/libsodium @@ -21,8 +24,8 @@ LDFLAGS+= -L${LOCALBASE}/lib -latomic GNU_CONFIGURE= yes USE_GCC= yes -USES= bison cpe gmake libtool lua:52 pkgconfig readline tar:bz2 -CONFIGURE_ARGS= --enable-libsodium +USES= bison cpe gmake libedit libtool lua:52 pkgconfig tar:bz2 +CONFIGURE_ARGS= --enable-dnscrypt --enable-libsodium INSTALL_TARGET= install-strip USE_RC_SUBR= dnsdist --- distinfo (revision 411359) +++ distinfo (working copy) @@ -1,2 +1,2 @@ -SHA256 (dnsdist-0.0.791gfbb356b.tar.bz2) = bbd063adb3c39dde957c4578e1b06ab79400d26764ce9d21b8afc8437fa9992b -SIZE (dnsdist-0.0.791gfbb356b.tar.bz2) = 803402 +SHA256 (dnsdist-1.0.0-alpha2.tar.bz2) = dcbfa4f375a856694276f11921a6007bc954edd517a1cf1311a31839ca083c50 +SIZE (dnsdist-1.0.0-alpha2.tar.bz2) = 789252 --- files/patch-dnsname.cc (nonexistent) +++ files/patch-dnsname.cc (working copy) @@ -0,0 +1,13 @@ +--- dnsname.cc.orig 2016-03-18 18:34:07 UTC ++++ dnsname.cc +@@ -142,8 +142,8 @@ bool DNSName::isPartOf(const DNSName& pa + return false; + + // this is slightly complicated since we can't start from the end, since we can't see where a label begins/ends then +- for(auto us=d_storage.cbegin(); us= static_cast(parent.d_storage.size()); us+=*us+1) { +- if (std::distance(us,d_storage.cend()) == static_cast(parent.d_storage.size())) { ++ for(auto us=d_storage.cbegin(); us= static_cast(parent.d_storage.size()); us+=*us+1) { ++ if (std::distance(us,d_storage.cend()) == static_cast(parent.d_storage.size())) { + auto p = parent.d_storage.cbegin(); + for(; us != d_storage.cend(); ++us, ++p) { + if(dns2_tolower(*p) != dns2_tolower(*us)) --- files/patch-iputils.hh (revision 411359) +++ files/patch-iputils.hh (working copy) @@ -1,7 +1,7 @@ ---- iputils.hh.orig 2016-01-13 10:18:24 UTC +--- iputils.hh.orig 2016-02-05 09:35:08 UTC +++ iputils.hh -@@ -59,6 +59,11 @@ - #define le64toh(x) OSSwapLittleToHostInt64(x) +@@ -79,6 +79,11 @@ + #endif +// for FreeBSD @@ -9,6 +9,6 @@ +#include +#endif + - // for illumos - #ifdef BE_64 - + union ComboAddress { + struct sockaddr_in sin4; + struct sockaddr_in6 sin6;