Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Mar 2016 02:14:01 +0000 (UTC)
From:      "Carlos J. Puga Medina" <cpm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r411633 - in head/dns/dnsdist: . files
Message-ID:  <201603220214.u2M2E1B9018501@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cpm
Date: Tue Mar 22 02:14:01 2016
New Revision: 411633
URL: https://svnweb.freebsd.org/changeset/ports/411633

Log:
  - Update to 1.0.0-alpha2
  - Replace USES=readline with USES=libedit
  - Remove ragel dependency because it's only required to compile from git.
  - Fix MASTER_SITES
  - Add incbin License (The Unlicense)
  - Enable dnscrypt support
  - Fix comparison signedness in dnsname.cc
  
  Changelog:
  
  http://dnsdist.org/changelog/#dnsdist-100-alpha2
  
  PR:		208126
  Approved by:	junovitch (mentor)

Added:
  head/dns/dnsdist/files/patch-dnsname.cc   (contents, props changed)
Modified:
  head/dns/dnsdist/Makefile
  head/dns/dnsdist/distinfo
  head/dns/dnsdist/files/patch-iputils.hh

Modified: head/dns/dnsdist/Makefile
==============================================================================
--- head/dns/dnsdist/Makefile	Tue Mar 22 02:07:32 2016	(r411632)
+++ head/dns/dnsdist/Makefile	Tue Mar 22 02:14:01 2016	(r411633)
@@ -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 @@ CXXFLAGS+=	-D_GLIBCXX_USE_C99
 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

Modified: head/dns/dnsdist/distinfo
==============================================================================
--- head/dns/dnsdist/distinfo	Tue Mar 22 02:07:32 2016	(r411632)
+++ head/dns/dnsdist/distinfo	Tue Mar 22 02:14:01 2016	(r411633)
@@ -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

Added: head/dns/dnsdist/files/patch-dnsname.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/dnsdist/files/patch-dnsname.cc	Tue Mar 22 02:14:01 2016	(r411633)
@@ -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<d_storage.cend() && std::distance(us,d_storage.cend()) >= static_cast<unsigned int>(parent.d_storage.size()); us+=*us+1) {
+-    if (std::distance(us,d_storage.cend()) == static_cast<unsigned int>(parent.d_storage.size())) {
++  for(auto us=d_storage.cbegin(); us<d_storage.cend() && std::distance(us,d_storage.cend()) >= static_cast<int>(parent.d_storage.size()); us+=*us+1) {
++    if (std::distance(us,d_storage.cend()) == static_cast<int>(parent.d_storage.size())) {
+       auto p = parent.d_storage.cbegin();
+       for(; us != d_storage.cend(); ++us, ++p) {
+         if(dns2_tolower(*p) != dns2_tolower(*us))

Modified: head/dns/dnsdist/files/patch-iputils.hh
==============================================================================
--- head/dns/dnsdist/files/patch-iputils.hh	Tue Mar 22 02:07:32 2016	(r411632)
+++ head/dns/dnsdist/files/patch-iputils.hh	Tue Mar 22 02:14:01 2016	(r411633)
@@ -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 <sys/endian.h>
 +#endif
 +
- // for illumos
- #ifdef BE_64
- 
+ union ComboAddress {
+   struct sockaddr_in sin4;
+   struct sockaddr_in6 sin6;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603220214.u2M2E1B9018501>