dnsdist: updated to 1.8.0 1.8.0 Bug Fixes Fix ���Unknown key��� issue for actions and rules parameters Fix a dnsheader unaligned case secpoll: explicitly include necessary ctime header for time_tdiff -r1.20 -r1.21 pkgsrc/net/dnsdist/Makefile
(adam)
@@ -1,29 +1,28 @@ | @@ -1,29 +1,28 @@ | |||
1 | # $NetBSD: Makefile,v 1.20 2023/06/06 10:51:59 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.21 2023/08/22 20:31:36 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= dnsdist-1.7.2 | 3 | DISTNAME= dnsdist-1.8.0 | |
4 | PKGREVISION= 2 | |||
5 | CATEGORIES= net | 4 | CATEGORIES= net | |
6 | MASTER_SITES= https://downloads.powerdns.com/releases/ | 5 | MASTER_SITES= https://downloads.powerdns.com/releases/ | |
7 | EXTRACT_SUFX= .tar.bz2 | 6 | EXTRACT_SUFX= .tar.bz2 | |
8 | 7 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://dnsdist.org/ | 9 | HOMEPAGE= https://dnsdist.org/ | |
11 | COMMENT= Highly DNS-, DoS- and abuse-aware loadbalancer | 10 | COMMENT= Highly DNS-, DoS- and abuse-aware loadbalancer | |
12 | LICENSE= gnu-gpl-v2 | 11 | LICENSE= gnu-gpl-v2 | |
13 | 12 | |||
14 | GNU_CONFIGURE= yes | |||
15 | USE_LANGUAGES= c c++11 | 13 | USE_LANGUAGES= c c++11 | |
16 | USE_TOOLS+= gmake pkg-config | 14 | USE_TOOLS+= gmake pkg-config | |
15 | GNU_CONFIGURE= yes | |||
17 | 16 | |||
18 | .include "../../mk/bsd.prefs.mk" | 17 | .include "../../mk/bsd.prefs.mk" | |
19 | 18 | |||
20 | BUILD_DEFS+= DNSDIST_USER DNSDIST_GROUP | 19 | BUILD_DEFS+= DNSDIST_USER DNSDIST_GROUP | |
21 | DNSDIST_USER?= dnsdist | 20 | DNSDIST_USER?= dnsdist | |
22 | DNSDIST_GROUP?= dnsdist | 21 | DNSDIST_GROUP?= dnsdist | |
23 | PKG_GROUPS+= ${DNSDIST_GROUP} | 22 | PKG_GROUPS+= ${DNSDIST_GROUP} | |
24 | PKG_USERS+= ${DNSDIST_USER}:${DNSDIST_GROUP} | 23 | PKG_USERS+= ${DNSDIST_USER}:${DNSDIST_GROUP} | |
25 | PKG_GECOS.${DNSDIST_USER}= dnsdist daemon user | 24 | PKG_GECOS.${DNSDIST_USER}= dnsdist daemon user | |
26 | 25 | |||
27 | FILES_SUBST+= DNSDIST_USER=${DNSDIST_USER} | 26 | FILES_SUBST+= DNSDIST_USER=${DNSDIST_USER} | |
28 | FILES_SUBST+= DNSDIST_GROUP=${DNSDIST_GROUP} | 27 | FILES_SUBST+= DNSDIST_GROUP=${DNSDIST_GROUP} | |
29 | CONF_FILES+= share/examples/dnsdist/dnsdist.conf \ | 28 | CONF_FILES+= share/examples/dnsdist/dnsdist.conf \ | |
@@ -32,30 +31,29 @@ CONF_FILES+= share/examples/dnsdist/dnsd | @@ -32,30 +31,29 @@ CONF_FILES+= share/examples/dnsdist/dnsd | |||
32 | CONFIGURE_ARGS+= --enable-dns-over-tls | 31 | CONFIGURE_ARGS+= --enable-dns-over-tls | |
33 | CONFIGURE_ARGS+= --enable-dnscrypt | 32 | CONFIGURE_ARGS+= --enable-dnscrypt | |
34 | CONFIGURE_ARGS+= --enable-dnstap | 33 | CONFIGURE_ARGS+= --enable-dnstap | |
35 | CONFIGURE_ARGS+= --with-libsodium | 34 | CONFIGURE_ARGS+= --with-libsodium | |
36 | CONFIGURE_ARGS+= --with-libssl | 35 | CONFIGURE_ARGS+= --with-libssl | |
37 | CONFIGURE_ARGS+= --with-lua | 36 | CONFIGURE_ARGS+= --with-lua | |
38 | CONFIGURE_ARGS+= --with-nghttp2 | 37 | CONFIGURE_ARGS+= --with-nghttp2 | |
39 | CONFIGURE_ARGS+= --with-re2 | 38 | CONFIGURE_ARGS+= --with-re2 | |
40 | CONFIGURE_ARGS+= --without-net-snmp | 39 | CONFIGURE_ARGS+= --without-net-snmp | |
41 | 40 | |||
42 | CONFIGURE_ENV+= LIBEDIT_CFLAGS="-I${BUILDLINK_PREFIX.editlinereadline}/include" | 41 | CONFIGURE_ENV+= LIBEDIT_CFLAGS="-I${BUILDLINK_PREFIX.editlinereadline}/include" | |
43 | CONFIGURE_ENV+= LIBEDIT_LIBS="-L${BUILDLINK_PREFIX.editlinereadline}/lib ${BUILDLINK_LDADD.editlinereadline}" | 42 | CONFIGURE_ENV+= LIBEDIT_LIBS="-L${BUILDLINK_PREFIX.editlinereadline}/lib ${BUILDLINK_LDADD.editlinereadline}" | |
44 | 43 | |||
45 | INSTALLATION_DIRS+= share/examples/dnsdist | |||
46 | RCD_SCRIPTS+= dnsdist | 44 | RCD_SCRIPTS+= dnsdist | |
47 | 45 | |||
48 | post-install: | 46 | post-install: | |
49 | ${INSTALL_DATA} ${.CURDIR}/files/dnsdist.conf \ | 47 | cd ${DESTDIR}${PREFIX} && \ | |
50 | ${DESTDIR}${PREFIX}/share/examples/dnsdist | 48 | ${MV} share/examples/dnsdist/dnsdist.conf-dist share/examples/dnsdist/dnsdist.conf || ${TRUE} | |
51 | 49 | |||
52 | .include "../../devel/boost-headers/buildlink3.mk" | 50 | .include "../../devel/boost-headers/buildlink3.mk" | |
53 | .include "../../devel/re2/buildlink3.mk" | 51 | .include "../../devel/re2/buildlink3.mk" | |
54 | .include "../../lang/lua/buildlink3.mk" | 52 | .include "../../lang/lua/buildlink3.mk" | |
55 | .include "../../mk/atomic64.mk" | |||
56 | .include "../../mk/readline.buildlink3.mk" | |||
57 | .include "../../net/fstrm/buildlink3.mk" | 53 | .include "../../net/fstrm/buildlink3.mk" | |
58 | .include "../../security/libsodium/buildlink3.mk" | 54 | .include "../../security/libsodium/buildlink3.mk" | |
59 | .include "../../security/openssl/buildlink3.mk" | 55 | .include "../../security/openssl/buildlink3.mk" | |
60 | .include "../../www/nghttp2/buildlink3.mk" | 56 | .include "../../www/nghttp2/buildlink3.mk" | |
57 | .include "../../mk/atomic64.mk" | |||
58 | .include "../../mk/readline.buildlink3.mk" | |||
61 | .include "../../mk/bsd.pkg.mk" | 59 | .include "../../mk/bsd.pkg.mk" |
@@ -1,10 +1,12 @@ | @@ -1,10 +1,12 @@ | |||
1 | $NetBSD: distinfo,v 1.13 2022/10/24 11:08:14 jperkin Exp $ | 1 | $NetBSD: distinfo,v 1.14 2023/08/22 20:31:36 adam Exp $ | |
2 | 2 | |||
3 | BLAKE2s (dnsdist-1.7.2.tar.bz2) = 0daadb638e58c3142ed9cfe160b2f879fed1dd033aa3e4640e154c3002141fb0 | 3 | BLAKE2s (dnsdist-1.8.0.tar.bz2) = df588b2f19ab27b71e7e7132385bc6b12e8f48bd51e22d493753926d3557a592 | |
4 | SHA512 (dnsdist-1.7.2.tar.bz2) = 2048ac0f861547fb103da1a128fd39a35ed689ccbf3c080232a3bd0550c9e7c7e01c95864d61e065e341a9f4111c974d2db2aba73eb8f7cba9bf8273da39b8a6 | 4 | SHA512 (dnsdist-1.8.0.tar.bz2) = 426db3e83729bd2f8a8c8b1c02d719c6618acc0aec09d1f2670c159d441c1cad2fdc85c5ffe919e76d1b1e8e24198bf29133802cb857dfacde2dfed2532001f1 | |
5 | Size (dnsdist-1.7.2.tar.bz2) = 1391588 bytes | 5 | Size (dnsdist-1.8.0.tar.bz2) = 1480500 bytes | |
6 | SHA1 (patch-dnsdist-console.cc) = 4675ca40e738e3d9e15d9a3c6993e1adce102a30 | 6 | SHA1 (patch-Makefile.in) = 5b2927e63898ac38d3c7ea8c3eb28ecef2f969e4 | |
7 | SHA1 (patch-dnsdist.cc) = 8d3f167e38b6b67bb4d9b7f06dcc0245cf6c904f | 7 | SHA1 (patch-configure) = b5921f1589ad9137405e29d117460c4e4c932908 | |
8 | SHA1 (patch-dnsdist-console.cc) = 09b76a844d79aef33c898bf3b833f4dce642b1a5 | |||
9 | SHA1 (patch-dnsdist.cc) = c6007886a4cc5e97ac6ec1e54f983ebe3a96cf4b | |||
8 | SHA1 (patch-ext_json11_json11.cpp) = 9fb12578d80103b8b92e984a483cbda98fd83db8 | 10 | SHA1 (patch-ext_json11_json11.cpp) = 9fb12578d80103b8b92e984a483cbda98fd83db8 | |
9 | SHA1 (patch-iputils.hh) = 09207cd894162d634cd832f12209e38a0c253624 | 11 | SHA1 (patch-iputils.hh) = 09207cd894162d634cd832f12209e38a0c253624 | |
10 | SHA1 (patch-qtype.hh) = c4db69a8f0c818789607e190bb400791b3707a50 | 12 | SHA1 (patch-qtype.hh) = 66c6c06fc6c6e770b049508b1f60a274a378ff89 |
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | $NetBSD: patch-dnsdist-console.cc,v 1.5 2020/08/06 16:28:03 adam Exp $ | 1 | $NetBSD: patch-dnsdist-console.cc,v 1.6 2023/08/22 20:31:36 adam Exp $ | |
2 | 2 | |||
3 | Always use the pkgsrc editline layout. | 3 | Always use the pkgsrc editline layout. | |
4 | 4 | |||
5 | --- dnsdist-console.cc.orig 2020-07-28 07:39:28.000000000 +0000 | 5 | --- dnsdist-console.cc.orig 2023-03-28 11:06:46.000000000 +0000 | |
6 | +++ dnsdist-console.cc | 6 | +++ dnsdist-console.cc | |
7 | @@ -24,7 +24,7 @@ | 7 | @@ -27,7 +27,7 @@ | |
8 | #include <pwd.h> | |||
9 | #include <thread> | 8 | #include <thread> | |
10 | 9 | |||
10 | #ifdef HAVE_LIBEDIT | |||
11 | -#if defined (__OpenBSD__) || defined(__NetBSD__) | 11 | -#if defined (__OpenBSD__) || defined(__NetBSD__) | |
12 | +#if 1 | 12 | +#if 1 | |
13 | // If this is not undeffed, __attribute__ wil be redefined by /usr/include/readline/rlstdc.h | 13 | // If this is not undeffed, __attribute__ wil be redefined by /usr/include/readline/rlstdc.h | |
14 | #undef __STRICT_ANSI__ | 14 | #undef __STRICT_ANSI__ | |
15 | #include <readline/readline.h> | 15 | #include <readline/readline.h> |
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | $NetBSD: patch-dnsdist.cc,v 1.6 2020/08/06 16:28:03 adam Exp $ | 1 | $NetBSD: patch-dnsdist.cc,v 1.7 2023/08/22 20:31:36 adam Exp $ | |
2 | 2 | |||
3 | Always use the pkgsrc editline layout. | 3 | Always use the pkgsrc editline layout. | |
4 | 4 | |||
5 | --- dnsdist.cc.orig 2020-07-29 16:09:33.000000000 +0000 | 5 | --- dnsdist.cc.orig 2023-03-28 11:06:46.000000000 +0000 | |
6 | +++ dnsdist.cc | 6 | +++ dnsdist.cc | |
7 | @@ -31,7 +31,7 @@ | 7 | @@ -33,7 +33,7 @@ | |
8 | #include <sys/resource.h> | |||
9 | #include <unistd.h> | 8 | #include <unistd.h> | |
10 | 9 | |||
10 | #ifdef HAVE_LIBEDIT | |||
11 | -#if defined (__OpenBSD__) || defined(__NetBSD__) | 11 | -#if defined (__OpenBSD__) || defined(__NetBSD__) | |
12 | +#if 1 | 12 | +#if 1 | |
13 | // If this is not undeffed, __attribute__ wil be redefined by /usr/include/readline/rlstdc.h | 13 | // If this is not undeffed, __attribute__ wil be redefined by /usr/include/readline/rlstdc.h | |
14 | #undef __STRICT_ANSI__ | 14 | #undef __STRICT_ANSI__ | |
15 | #include <readline/readline.h> | 15 | #include <readline/readline.h> |
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | $NetBSD: patch-qtype.hh,v 1.2 2022/10/24 11:08:15 jperkin Exp $ | 1 | $NetBSD: patch-qtype.hh,v 1.3 2023/08/22 20:31:36 adam Exp $ | |
2 | 2 | |||
3 | Avoid symbol pollution on SunOS. | 3 | Avoid symbol pollution on SunOS. | |
4 | 4 | |||
5 | --- qtype.hh.orig 2022-06-10 13:48:12.000000000 +0000 | 5 | --- qtype.hh.orig 2023-03-28 11:06:46.000000000 +0000 | |
6 | +++ qtype.hh | 6 | +++ qtype.hh | |
7 | @@ -22,6 +22,10 @@ | 7 | @@ -26,6 +26,10 @@ | |
8 | #pragma once | 8 | ||
9 | #include "namespaces.hh" | 9 | #include "namespaces.hh" | |
10 | 10 | |||
11 | +#if defined(__sun) && defined(DS) | 11 | +#if defined(__sun) && defined(DS) | |
12 | +#undef DS | 12 | +#undef DS | |
13 | +#endif | 13 | +#endif | |
14 | + | 14 | + | |
15 | /** The QType class is meant to deal easily with the different kind of resource types, like 'A', 'NS', | 15 | /** The QType class is meant to deal easily with the different kind of resource types, like 'A', 'NS', | |
16 | * 'CNAME' etcetera. These types have both a name and a number. This class can seamlessly move between | 16 | * 'CNAME' etcetera. These types have both a name and a number. This class can seamlessly move between | |
17 | * them. Use it like this: | 17 | * them. Use it like this: |