Update net/dnsdist to 1.2.0. - fix for CVE-2016-7069 and CVE-2017-7557. - applying rules on cache hits - addition of runtime changeable rules that matches IP address for a certain time: TimedIPSetRule - SNMP support, exporting statistics and sending traps - preventing the packet cache from ageing responses when deployed in front of authoritative servers - TTL alteration capabilities - consistent hash results over multiple deployments - exporting CNAME records over protobuf - tuning the size of the ringbuffers used to keep track of recent queries and responses - various DNSCrypt-related fixes and improvements, including automatic key rotation Full changelog: https://dnsdist.org/changelog.htmldiff -r1.1 -r1.2 pkgsrc/net/dnsdist/Makefile
(fhajny)
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.1 2017/03/31 20:49:51 fhajny Exp $ | 1 | # $NetBSD: Makefile,v 1.2 2017/08/22 17:00:35 fhajny Exp $ | |
2 | 2 | |||
3 | DISTNAME= dnsdist-1.1.0 | 3 | DISTNAME= dnsdist-1.2.0 | |
4 | CATEGORIES= net | 4 | CATEGORIES= net | |
5 | MASTER_SITES= https://downloads.powerdns.com/releases/ | 5 | MASTER_SITES= https://downloads.powerdns.com/releases/ | |
6 | EXTRACT_SUFX= .tar.bz2 | 6 | EXTRACT_SUFX= .tar.bz2 | |
7 | 7 | |||
8 | MAINTAINER= filip@joyent.com | 8 | MAINTAINER= filip@joyent.com | |
9 | HOMEPAGE= http://dnsdist.org/ | 9 | HOMEPAGE= http://dnsdist.org/ | |
10 | COMMENT= Highly DNS-, DoS- and abuse-aware loadbalancer | 10 | COMMENT= Highly DNS-, DoS- and abuse-aware loadbalancer | |
11 | LICENSE= gnu-gpl-v2 | 11 | LICENSE= gnu-gpl-v2 | |
12 | 12 | |||
13 | GNU_CONFIGURE= yes | 13 | GNU_CONFIGURE= yes | |
14 | USE_LANGUAGES= c c++ | 14 | USE_LANGUAGES= c c++ | |
15 | USE_TOOLS+= gmake pkg-config | 15 | USE_TOOLS+= gmake pkg-config | |
16 | 16 |
@@ -1,12 +1,12 @@ | @@ -1,12 +1,12 @@ | |||
1 | $NetBSD: distinfo,v 1.2 2017/05/22 23:41:22 joerg Exp $ | 1 | $NetBSD: distinfo,v 1.3 2017/08/22 17:00:35 fhajny Exp $ | |
2 | 2 | |||
3 | SHA1 (dnsdist-1.1.0.tar.bz2) = 9b6372fc5f606ee83dac465e1dc9c824242f5905 | 3 | SHA1 (dnsdist-1.2.0.tar.bz2) = c1af8fbf8a4c5a5bbb1c5154974cf640ffa26acb | |
4 | RMD160 (dnsdist-1.1.0.tar.bz2) = 7724641b2be1c3611dd0b2c685cf6e8b7a365e67 | 4 | RMD160 (dnsdist-1.2.0.tar.bz2) = b3c23decdf58cc2931a85f5631dc9184f3ff3a6c | |
5 | SHA512 (dnsdist-1.1.0.tar.bz2) = 91da716997c2440e153944f510a39dd86c9cf8ba8093a7f51a9a5d58ab0a1c230bd99ec57fe8ff0721279c8c4429ad576fe797c1fbe4cde2b9fb8f0405025320 | 5 | SHA512 (dnsdist-1.2.0.tar.bz2) = 93f8c5f18462d3291c973a690f6ac2b3c5791d9947bee83d9250b503b7526de365bdcb530f3b082e51ae168a9129e77d5558af7cc3b9d2e98a585af53783c237 | |
6 | Size (dnsdist-1.1.0.tar.bz2) = 874837 bytes | 6 | Size (dnsdist-1.2.0.tar.bz2) = 876104 bytes | |
7 | SHA1 (patch-dns.hh) = 13834e3d9f48b3095ce4912540c7d0d275c3a3a3 | 7 | SHA1 (patch-dns.hh) = 13834e3d9f48b3095ce4912540c7d0d275c3a3a3 | |
8 | SHA1 (patch-dnsdist-console.cc) = 51fee0e89b648e0f9c2e6c0d9a6859ef2991a1b7 | 8 | SHA1 (patch-dnsdist-console.cc) = ee5f40a2257128eb7fcc2b581ec9aa997c1b7358 | |
9 | SHA1 (patch-dnsdist.cc) = 2b2bf569c134019dd8a5d4f3df104fdd16a47a31 | 9 | SHA1 (patch-dnsdist.cc) = 2b2bf569c134019dd8a5d4f3df104fdd16a47a31 | |
10 | SHA1 (patch-ext_json11_json11.cpp) = 9fb12578d80103b8b92e984a483cbda98fd83db8 | 10 | SHA1 (patch-ext_json11_json11.cpp) = 9fb12578d80103b8b92e984a483cbda98fd83db8 | |
11 | SHA1 (patch-iputils.hh) = 666fe81cc651b2c7e85164b8246283e301bcce1a | 11 | SHA1 (patch-iputils.hh) = 78ffc93b3062d18a02a9ea67e4c6d58d8df7bdbb | |
12 | SHA1 (patch-qtype.hh) = 4551be1e303a31d34030c363849398923f5ff987 | 12 | SHA1 (patch-qtype.hh) = 4551be1e303a31d34030c363849398923f5ff987 |
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | $NetBSD: patch-dnsdist-console.cc,v 1.1 2017/03/31 20:49:51 fhajny Exp $ | 1 | $NetBSD: patch-dnsdist-console.cc,v 1.2 2017/08/22 17:00:35 fhajny Exp $ | |
2 | 2 | |||
3 | Add NetBSD support. | 3 | Add NetBSD support. | |
4 | 4 | |||
5 | --- dnsdist-console.cc.orig 2016-12-29 12:45:46.000000000 +0000 | 5 | --- dnsdist-console.cc.orig 2017-08-21 12:52:09.000000000 +0000 | |
6 | +++ dnsdist-console.cc | 6 | +++ dnsdist-console.cc | |
7 | @@ -22,7 +22,7 @@ | 7 | @@ -23,7 +23,7 @@ | |
8 | #include "dnsdist.hh" | |||
9 | #include "sodcrypto.hh" | 8 | #include "sodcrypto.hh" | |
9 | #include "pwd.h" | |||
10 | 10 | |||
11 | -#if defined (__OpenBSD__) | 11 | -#if defined (__OpenBSD__) | |
12 | +#if defined (__OpenBSD__) || defined (__NetBSD__) | 12 | +#if defined (__OpenBSD__) || defined (__NetBSD__) | |
13 | #include <readline/readline.h> | 13 | #include <readline/readline.h> | |
14 | #include <readline/history.h> | 14 | #include <readline/history.h> | |
15 | #else | 15 | #else |
@@ -1,50 +1,19 @@ | @@ -1,50 +1,19 @@ | |||
1 | $NetBSD: patch-iputils.hh,v 1.1 2017/03/31 20:49:51 fhajny Exp $ | 1 | $NetBSD: patch-iputils.hh,v 1.2 2017/08/22 17:00:35 fhajny Exp $ | |
2 | 2 | |||
3 | - Do not use IP_PKTINFO on NetBSD, the structure is not as expected. | 3 | - Do not use IP_PKTINFO on NetBSD, the structure is not as expected. | |
4 | - Backport fix for SunOS segfault problem, see: | 4 | - Backport fix for SunOS segfault problem, see: | |
5 | https://github.com/PowerDNS/pdns/pull/4877 | 5 | https://github.com/PowerDNS/pdns/pull/4877 | |
6 | 6 | |||
7 | --- iputils.hh.orig 2017-01-17 08:43:49.000000000 +0000 | 7 | --- iputils.hh.orig 2017-01-17 08:43:49.000000000 +0000 | |
8 | +++ iputils.hh | 8 | +++ iputils.hh | |
9 | @@ -40,6 +40,10 @@ | 9 | @@ -40,6 +40,10 @@ | |
10 | 10 | |||
11 | #include "namespaces.hh" | 11 | #include "namespaces.hh" | |
12 | 12 | |||
13 | +#if defined(__NetBSD__) && defined(IP_PKTINFO) | 13 | +#if defined(__NetBSD__) && defined(IP_PKTINFO) | |
14 | +#undef IP_PKTINFO | 14 | +#undef IP_PKTINFO | |
15 | +#endif | 15 | +#endif | |
16 | + | 16 | + | |
17 | #ifdef __APPLE__ | 17 | #ifdef __APPLE__ | |
18 | #include <libkern/OSByteOrder.h> | 18 | #include <libkern/OSByteOrder.h> | |
19 | 19 | |||
20 | @@ -59,23 +63,22 @@ | |||
21 | #define le64toh(x) OSSwapLittleToHostInt64(x) | |||
22 | #endif | |||
23 | ||||
24 | -// for illumos | |||
25 | -#ifdef BE_64 | |||
26 | +#ifdef __sun | |||
27 | ||||
28 | #define htobe16(x) BE_16(x) | |||
29 | #define htole16(x) LE_16(x) | |||
30 | -#define be16toh(x) BE_IN16(x) | |||
31 | -#define le16toh(x) LE_IN16(x) | |||
32 | +#define be16toh(x) BE_IN16(&(x)) | |||
33 | +#define le16toh(x) LE_IN16(&(x)) | |||
34 | ||||
35 | #define htobe32(x) BE_32(x) | |||
36 | #define htole32(x) LE_32(x) | |||
37 | -#define be32toh(x) BE_IN32(x) | |||
38 | -#define le32toh(x) LE_IN32(x) | |||
39 | +#define be32toh(x) BE_IN32(&(x)) | |||
40 | +#define le32toh(x) LE_IN32(&(x)) | |||
41 | ||||
42 | #define htobe64(x) BE_64(x) | |||
43 | #define htole64(x) LE_64(x) | |||
44 | -#define be64toh(x) BE_IN64(x) | |||
45 | -#define le64toh(x) LE_IN64(x) | |||
46 | +#define be64toh(x) BE_IN64(&(x)) | |||
47 | +#define le64toh(x) LE_IN64(&(x)) | |||
48 | ||||
49 | #endif | |||
50 |