[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2024-05-14 Thread Andreas Schuerch
commit: efbf7d5e1421af2977ac13fd5191ba109fa9d857
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Tue May 14 12:13:39 2024 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Tue May 14 12:13:46 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efbf7d5e

net-dns/dnsdist: drop 1.9.0-r1, 1.9.3

Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest|   2 -
 net-dns/dnsdist/dnsdist-1.9.0-r1.ebuild | 111 
 net-dns/dnsdist/dnsdist-1.9.3.ebuild| 111 
 3 files changed, 224 deletions(-)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index 54da945169db..9833a2dda6f6 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1,5 +1,3 @@
 DIST dnsdist-1.8.0.tar.bz2 1480500 BLAKE2B 
47cfcfe3756cdc4520c1ba1e11b7d60191125ef900ba829ff7437ac2041352b845ab5f7183f53fea9b3aa6f44c5745de3878c2b72f2be048fa57d2c2e9325c0c
 SHA512 
426db3e83729bd2f8a8c8b1c02d719c6618acc0aec09d1f2670c159d441c1cad2fdc85c5ffe919e76d1b1e8e24198bf29133802cb857dfacde2dfed2532001f1
 DIST dnsdist-1.8.1.tar.bz2 1492793 BLAKE2B 
84fdf2f360c41ea235f3989d2bc14ad05e98d7b51dd20d983e7ad53ce5a6c00c7075b673e8a15fe3fd710a4e15c80db4d7431256bfb4291bd5785482d3f7f7e5
 SHA512 
db50c56587084ebdea3eb7f8e5b79178aea67b608cf6afce1453932b5225b3474a459cdc3dc8e4618a36a9edb405403dfefaed7fadd5848b5612de6bfb356f3a
-DIST dnsdist-1.9.0.tar.bz2 1620891 BLAKE2B 
9e14f275d83429ab3e83bdbbd6fe8d97b3212763398798d704adcc18d07ad8aebe16c5345425cdb589f6166155717d9649c16546bf981eb265e1349e74d11134
 SHA512 
32c0b9b3a1b58839da6dbde05eee382b78fbe58d68aed14f4927dc172dfcb15ba68b6d2246a8305b709e136e0e0c8666b6dd139ac258c8209083ff3b5673b997
-DIST dnsdist-1.9.3.tar.bz2 1577027 BLAKE2B 
663b8a2161c5a7b94541cd775f135a7024648c5bb57fd2ec18c7ede29aebda142452f97332300c45af32b5131e4dd5f9c1f904a1d68962398fa9a28c474e
 SHA512 
26b4fa70c1ad70e21d86cc51389bffacbfecedd769e2bb39f376d1dc85491c9eddbd1aea1e4a9bd08d05fc58c2f1fc906d1ff19c8dfd653a779f4171242a546f
 DIST dnsdist-1.9.4.tar.bz2 1591994 BLAKE2B 
a8cfc5c2da135ed96b857f9f1b6c3caa796b27f66ff7ead6e976b871a5e5db208ef3ce275c23085318bd7ff2f0fa2ec19e28ad36234991d84b8d13e74acb2f34
 SHA512 
e013fa3e582cc30d104a66ee44eec50dd1d04cb2bd0dc5b3c9dfec95f3e0e5f3da5f2a1bb9a713b50e5659908669957fe4deb5b1ca10f728e6ceaf550a3223ef

diff --git a/net-dns/dnsdist/dnsdist-1.9.0-r1.ebuild 
b/net-dns/dnsdist/dnsdist-1.9.0-r1.ebuild
deleted file mode 100644
index 473717e4807a..
--- a/net-dns/dnsdist/dnsdist-1.9.0-r1.ebuild
+++ /dev/null
@@ -1,111 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LUA_COMPAT=( lua5-{1..4} luajit )
-
-inherit flag-o-matic lua-single
-
-DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
-HOMEPAGE="https://dnsdist.org;
-
-SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
-KEYWORDS="~amd64 ~x86"
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="bpf cdb dnscrypt dnstap doh doh3 ipcipher lmdb quic regex snmp +ssl 
systemd test web xdp"
-RESTRICT="!test? ( test )"
-REQUIRED_USE="${LUA_REQUIRED_USE}
-   dnscrypt? ( ssl )
-   doh? ( ssl )
-   doh3? ( ssl quic )
-   ipcipher? ( ssl )
-   quic? ( ssl )"
-
-RDEPEND="acct-group/dnsdist
-   acct-user/dnsdist
-   bpf? ( dev-libs/libbpf:= )
-   cdb? ( dev-db/tinycdb:= )
-   dev-libs/boost:=
-   sys-libs/libcap
-   dev-libs/libedit
-   dev-libs/libsodium:=
-   dnstap? ( dev-libs/fstrm )
-   doh? ( net-libs/nghttp2:= )
-   doh3? ( net-libs/quiche:= )
-   lmdb? ( dev-db/lmdb:= )
-   quic? ( net-libs/quiche )
-   regex? ( dev-libs/re2:= )
-   snmp? ( net-analyzer/net-snmp:= )
-   ssl? ( dev-libs/openssl:= )
-   systemd? ( sys-apps/systemd:0= )
-   xdp? ( net-libs/xdp-tools )
-   ${LUA_DEPS}
-"
-
-DEPEND="${RDEPEND}"
-BDEPEND="virtual/pkgconfig"
-
-src_prepare() {
-   default
-
-   # clean up duplicate file
-   rm -f README.md
-}
-
-src_configure() {
-   # bug #822855
-   append-lfs-flags
-
-   # some things can only be enabled/disabled by defines
-   ! use dnstap && append-cppflags -DDISABLE_PROTOBUF
-   ! use web && append-cppflags -DDISABLE_BUILTIN_HTML
-
-   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
-   -i "${S}/configure"
-
-   local myeconfargs=(
-   --sysconfdir=/etc/dnsdist
-   --with-lua="${ELUA}"
-   --without-h2o
-   --enable-tls-providers
-   --without-gnutls
-   $(use_with bpf ebpf)
-   $(use_with cdb cdb)
-   $(use_enable doh dns-over-https)
-   $(use_enable doh3 dns-over-http3)
-   $(use_enable dnscrypt)
-   $(use_enable dnstap)
-  

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2024-05-14 Thread Andreas Schuerch
commit: 13d8c73c84bc53710327233de6d1d03f05fd1140
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Tue May 14 12:10:20 2024 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Tue May 14 12:10:51 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13d8c73c

net-dns/dnsdist: add 1.9.4

Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest |   1 +
 net-dns/dnsdist/dnsdist-1.9.4.ebuild | 112 +++
 2 files changed, 113 insertions(+)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index 99501f134796..54da945169db 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -2,3 +2,4 @@ DIST dnsdist-1.8.0.tar.bz2 1480500 BLAKE2B 
47cfcfe3756cdc4520c1ba1e11b7d60191125
 DIST dnsdist-1.8.1.tar.bz2 1492793 BLAKE2B 
84fdf2f360c41ea235f3989d2bc14ad05e98d7b51dd20d983e7ad53ce5a6c00c7075b673e8a15fe3fd710a4e15c80db4d7431256bfb4291bd5785482d3f7f7e5
 SHA512 
db50c56587084ebdea3eb7f8e5b79178aea67b608cf6afce1453932b5225b3474a459cdc3dc8e4618a36a9edb405403dfefaed7fadd5848b5612de6bfb356f3a
 DIST dnsdist-1.9.0.tar.bz2 1620891 BLAKE2B 
9e14f275d83429ab3e83bdbbd6fe8d97b3212763398798d704adcc18d07ad8aebe16c5345425cdb589f6166155717d9649c16546bf981eb265e1349e74d11134
 SHA512 
32c0b9b3a1b58839da6dbde05eee382b78fbe58d68aed14f4927dc172dfcb15ba68b6d2246a8305b709e136e0e0c8666b6dd139ac258c8209083ff3b5673b997
 DIST dnsdist-1.9.3.tar.bz2 1577027 BLAKE2B 
663b8a2161c5a7b94541cd775f135a7024648c5bb57fd2ec18c7ede29aebda142452f97332300c45af32b5131e4dd5f9c1f904a1d68962398fa9a28c474e
 SHA512 
26b4fa70c1ad70e21d86cc51389bffacbfecedd769e2bb39f376d1dc85491c9eddbd1aea1e4a9bd08d05fc58c2f1fc906d1ff19c8dfd653a779f4171242a546f
+DIST dnsdist-1.9.4.tar.bz2 1591994 BLAKE2B 
a8cfc5c2da135ed96b857f9f1b6c3caa796b27f66ff7ead6e976b871a5e5db208ef3ce275c23085318bd7ff2f0fa2ec19e28ad36234991d84b8d13e74acb2f34
 SHA512 
e013fa3e582cc30d104a66ee44eec50dd1d04cb2bd0dc5b3c9dfec95f3e0e5f3da5f2a1bb9a713b50e5659908669957fe4deb5b1ca10f728e6ceaf550a3223ef

diff --git a/net-dns/dnsdist/dnsdist-1.9.4.ebuild 
b/net-dns/dnsdist/dnsdist-1.9.4.ebuild
new file mode 100644
index ..33366646a868
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.9.4.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit flag-o-matic lua-single
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="https://dnsdist.org;
+
+SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~amd64 ~x86"
+
+IUSE="bpf cdb dnscrypt dnstap doh doh3 ipcipher lmdb quic regex snmp +ssl 
systemd test web xdp"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${LUA_REQUIRED_USE}
+   dnscrypt? ( ssl )
+   doh? ( ssl )
+   doh3? ( ssl quic )
+   ipcipher? ( ssl )
+   quic? ( ssl )"
+
+RDEPEND="acct-group/dnsdist
+   acct-user/dnsdist
+   bpf? ( dev-libs/libbpf:= )
+   cdb? ( dev-db/tinycdb:= )
+   dev-libs/boost:=
+   sys-libs/libcap
+   dev-libs/libedit
+   dev-libs/libsodium:=
+   dnstap? ( dev-libs/fstrm )
+   doh? ( net-libs/nghttp2:= )
+   doh3? ( net-libs/quiche:= )
+   lmdb? ( dev-db/lmdb:= )
+   quic? ( net-libs/quiche )
+   regex? ( dev-libs/re2:= )
+   snmp? ( net-analyzer/net-snmp:= )
+   ssl? ( dev-libs/openssl:= )
+   systemd? ( sys-apps/systemd:0= )
+   xdp? ( net-libs/xdp-tools )
+   ${LUA_DEPS}
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+   default
+
+   # clean up duplicate file
+   rm -f README.md
+}
+
+src_configure() {
+   # bug #822855
+   append-lfs-flags
+
+   # some things can only be enabled/disabled by defines
+   ! use dnstap && append-cppflags -DDISABLE_PROTOBUF
+   ! use web && append-cppflags -DDISABLE_BUILTIN_HTML
+
+   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
+   -i "${S}/configure"
+
+   local myeconfargs=(
+   --sysconfdir=/etc/dnsdist
+   --with-lua="${ELUA}"
+   --without-h2o
+   --enable-tls-providers
+   --without-gnutls
+   $(use_with bpf ebpf)
+   $(use_with cdb cdb)
+   $(use_enable doh dns-over-https)
+   $(use_enable doh3 dns-over-http3)
+   $(use_enable dnscrypt)
+   $(use_enable dnstap)
+   $(use_enable ipcipher)
+   $(use_with lmdb )
+   $(use_enable quic dns-over-quic)
+   $(use_with regex re2)
+   $(use_with snmp net-snmp)
+   $(use_enable ssl dns-over-tls)
+   $(use_enable systemd) \
+   $(use_enable test unit-tests)
+ 

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2024-04-09 Thread Andreas Schuerch
commit: f31368d964e593ba309db7d637b3c447c55b6c1d
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Tue Apr  9 10:34:11 2024 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Tue Apr  9 10:34:16 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f31368d9

net-dns/dnsdist: drop 1.9.0

Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/dnsdist-1.9.0.ebuild | 96 
 1 file changed, 96 deletions(-)

diff --git a/net-dns/dnsdist/dnsdist-1.9.0.ebuild 
b/net-dns/dnsdist/dnsdist-1.9.0.ebuild
deleted file mode 100644
index 245bc728ac4b..
--- a/net-dns/dnsdist/dnsdist-1.9.0.ebuild
+++ /dev/null
@@ -1,96 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-LUA_COMPAT=( lua5-{1..4} luajit )
-
-inherit flag-o-matic lua-single
-
-DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
-HOMEPAGE="https://dnsdist.org;
-
-SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
-KEYWORDS="~amd64 ~x86"
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="dnscrypt dnstap doh doh3 gnutls ipcipher +lmdb quic regex remote-logging 
snmp +ssl systemd test"
-RESTRICT="!test? ( test )"
-REQUIRED_USE="${LUA_REQUIRED_USE}
-   dnscrypt? ( ssl )
-   gnutls? ( ssl )
-   doh? ( ssl !gnutls )
-   doh3? ( ssl !gnutls quic )
-   ipcipher? ( ssl !gnutls )
-   quic? ( ssl !gnutls )
-   ssl? ( !gnutls )"
-
-RDEPEND="acct-group/dnsdist
-   acct-user/dnsdist
-   dev-libs/boost:=
-   dev-libs/libedit:=
-   dev-libs/libsodium:=
-   >=dev-libs/protobuf-3:=
-   dnstap? ( dev-libs/fstrm:= )
-   doh3? ( net-libs/quiche:= )
-   lmdb? ( dev-db/lmdb:= )
-   quic? ( net-libs/quiche:= )
-   regex? ( dev-libs/re2:= )
-   snmp? ( net-analyzer/net-snmp:= )
-   ssl? (
-   gnutls? ( net-libs/gnutls:= )
-   !gnutls? ( dev-libs/openssl:= )
-   )
-   systemd? ( sys-apps/systemd:0= )
-   ${LUA_DEPS}
-   net-libs/nghttp2
-"
-
-DEPEND="${RDEPEND}"
-BDEPEND="virtual/pkgconfig"
-
-src_configure() {
-   # bug #822855
-   append-lfs-flags
-
-   econf \
-   --sysconfdir=/etc/dnsdist \
-   --with-lua="${ELUA}" \
-   --enable-tls-providers \
-   --enable-asan \
-   --enable-lsan \
-   --enable-ubsan \
-   $(use_enable doh dns-over-https) \
-   $(use_enable doh3 dns-over-http3) \
-   $(use_enable dnscrypt) \
-   $(use_enable dnstap) \
-   $(use_enable ipcipher) \
-   $(use_with lmdb ) \
-   $(use_enable quic dns-over-quic ) \
-   $(use_with regex re2) \
-   $(use_with snmp net-snmp) \
-   $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
-   $(use_enable systemd) \
-   $(use_enable test unit-tests)
-   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
-   -i "${S}/configure" || die
-}
-
-src_install() {
-   default
-
-   insinto /etc/dnsdist
-   doins "${FILESDIR}"/dnsdist.conf.example
-
-   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
-   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
-}
-
-pkg_postinst() {
-   elog "dnsdist provides multiple instances support. You can create more 
instances"
-   elog "by symlinking the dnsdist init script to another name."
-   elog
-   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
-   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
-}



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2024-04-09 Thread Andreas Schuerch
commit: a1e32d2885c267dec3a5f4c3676d6645a858db91
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Tue Apr  9 10:31:28 2024 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Tue Apr  9 10:31:46 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1e32d28

net-dns/dnsdist: add 1.9.3

Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest |   1 +
 net-dns/dnsdist/dnsdist-1.9.3.ebuild | 111 +++
 2 files changed, 112 insertions(+)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index 335f8a05e096..99501f134796 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1,3 +1,4 @@
 DIST dnsdist-1.8.0.tar.bz2 1480500 BLAKE2B 
47cfcfe3756cdc4520c1ba1e11b7d60191125ef900ba829ff7437ac2041352b845ab5f7183f53fea9b3aa6f44c5745de3878c2b72f2be048fa57d2c2e9325c0c
 SHA512 
426db3e83729bd2f8a8c8b1c02d719c6618acc0aec09d1f2670c159d441c1cad2fdc85c5ffe919e76d1b1e8e24198bf29133802cb857dfacde2dfed2532001f1
 DIST dnsdist-1.8.1.tar.bz2 1492793 BLAKE2B 
84fdf2f360c41ea235f3989d2bc14ad05e98d7b51dd20d983e7ad53ce5a6c00c7075b673e8a15fe3fd710a4e15c80db4d7431256bfb4291bd5785482d3f7f7e5
 SHA512 
db50c56587084ebdea3eb7f8e5b79178aea67b608cf6afce1453932b5225b3474a459cdc3dc8e4618a36a9edb405403dfefaed7fadd5848b5612de6bfb356f3a
 DIST dnsdist-1.9.0.tar.bz2 1620891 BLAKE2B 
9e14f275d83429ab3e83bdbbd6fe8d97b3212763398798d704adcc18d07ad8aebe16c5345425cdb589f6166155717d9649c16546bf981eb265e1349e74d11134
 SHA512 
32c0b9b3a1b58839da6dbde05eee382b78fbe58d68aed14f4927dc172dfcb15ba68b6d2246a8305b709e136e0e0c8666b6dd139ac258c8209083ff3b5673b997
+DIST dnsdist-1.9.3.tar.bz2 1577027 BLAKE2B 
663b8a2161c5a7b94541cd775f135a7024648c5bb57fd2ec18c7ede29aebda142452f97332300c45af32b5131e4dd5f9c1f904a1d68962398fa9a28c474e
 SHA512 
26b4fa70c1ad70e21d86cc51389bffacbfecedd769e2bb39f376d1dc85491c9eddbd1aea1e4a9bd08d05fc58c2f1fc906d1ff19c8dfd653a779f4171242a546f

diff --git a/net-dns/dnsdist/dnsdist-1.9.3.ebuild 
b/net-dns/dnsdist/dnsdist-1.9.3.ebuild
new file mode 100644
index ..473717e4807a
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.9.3.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit flag-o-matic lua-single
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="https://dnsdist.org;
+
+SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="bpf cdb dnscrypt dnstap doh doh3 ipcipher lmdb quic regex snmp +ssl 
systemd test web xdp"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${LUA_REQUIRED_USE}
+   dnscrypt? ( ssl )
+   doh? ( ssl )
+   doh3? ( ssl quic )
+   ipcipher? ( ssl )
+   quic? ( ssl )"
+
+RDEPEND="acct-group/dnsdist
+   acct-user/dnsdist
+   bpf? ( dev-libs/libbpf:= )
+   cdb? ( dev-db/tinycdb:= )
+   dev-libs/boost:=
+   sys-libs/libcap
+   dev-libs/libedit
+   dev-libs/libsodium:=
+   dnstap? ( dev-libs/fstrm )
+   doh? ( net-libs/nghttp2:= )
+   doh3? ( net-libs/quiche:= )
+   lmdb? ( dev-db/lmdb:= )
+   quic? ( net-libs/quiche )
+   regex? ( dev-libs/re2:= )
+   snmp? ( net-analyzer/net-snmp:= )
+   ssl? ( dev-libs/openssl:= )
+   systemd? ( sys-apps/systemd:0= )
+   xdp? ( net-libs/xdp-tools )
+   ${LUA_DEPS}
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+   default
+
+   # clean up duplicate file
+   rm -f README.md
+}
+
+src_configure() {
+   # bug #822855
+   append-lfs-flags
+
+   # some things can only be enabled/disabled by defines
+   ! use dnstap && append-cppflags -DDISABLE_PROTOBUF
+   ! use web && append-cppflags -DDISABLE_BUILTIN_HTML
+
+   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
+   -i "${S}/configure"
+
+   local myeconfargs=(
+   --sysconfdir=/etc/dnsdist
+   --with-lua="${ELUA}"
+   --without-h2o
+   --enable-tls-providers
+   --without-gnutls
+   $(use_with bpf ebpf)
+   $(use_with cdb cdb)
+   $(use_enable doh dns-over-https)
+   $(use_enable doh3 dns-over-http3)
+   $(use_enable dnscrypt)
+   $(use_enable dnstap)
+   $(use_enable ipcipher)
+   $(use_with lmdb )
+   $(use_enable quic dns-over-quic)
+   $(use_with regex re2)
+   $(use_with snmp net-snmp)
+   $(use_enable ssl dns-over-tls)
+   $(use_enable systemd) \
+   $(use_enable test unit-tests)
+   $(use_with xdp xsk)
+   )
+
+   econf "${myeconfargs[@]}"
+}
+

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/files/

2024-02-20 Thread Andreas Schuerch
commit: 9ae1bd97d349bf9cdf5486be5e205be7069fcad7
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Tue Feb 20 10:49:49 2024 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Tue Feb 20 10:49:49 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ae1bd97

net-dns/dnsdist: remove unneeded patch

Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/files/dnsdist-1.7.3-gcc13.patch | 62 -
 1 file changed, 62 deletions(-)

diff --git a/net-dns/dnsdist/files/dnsdist-1.7.3-gcc13.patch 
b/net-dns/dnsdist/files/dnsdist-1.7.3-gcc13.patch
deleted file mode 100644
index 339887ca4a19..
--- a/net-dns/dnsdist/files/dnsdist-1.7.3-gcc13.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-Altered slightly from upstream counterparts in order to make them apply to
-the dist tarball (updated context and filenames to match the dist).
-
-https://github.com/PowerDNS/pdns/commit/f407319cb7374baf06698786f4f39d431a36a3cc
-https://github.com/PowerDNS/pdns/commit/d8b4ea24dc5dbe7c53c24bfffba24bcae7f58e02
-
-From d8b4ea24dc5dbe7c53c24bfffba24bcae7f58e02 Mon Sep 17 00:00:00 2001
-From: Peter van Dijk 
-Date: Mon, 23 Jan 2023 14:54:09 +0100
-Subject: [PATCH] lock.hh: include 
-

- pdns/lock.hh | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/pdns/lock.hh b/pdns/lock.hh
-index e8bd82988da..a08951a266d 100644
 a/lock.hh
-+++ b/lock.hh
-@@ -22,6 +22,7 @@
- #pragma once
- #include 
- #include 
-+#include 
- 
- /*
-   This file provides several features around locks:
-From f407319cb7374baf06698786f4f39d431a36a3cc Mon Sep 17 00:00:00 2001
-From: Sander Hoentjen 
-Date: Mon, 20 Feb 2023 16:51:07 +0100
-Subject: [PATCH] dnsdist-protocols.hh: include 
-
-This fixes building dnsdist with gcc13:
-```
-In file included from dnsdist-protocols.cc:26:
-dnsdist-protocols.hh:32:8: error: use of enum 'typeenum' without previous 
declaration
-   32 |   enum typeenum : uint8_t
-  |^~~~
-dnsdist-protocols.hh:32:19: error: 'uint8_t' was not declared in this scope
-   32 |   enum typeenum : uint8_t
-  |   ^~~
-dnsdist-protocols.hh:25:1: note: 'uint8_t' is defined in header ''; 
did you forget to '#include '?
-   24 | #include 
-  +++ |+#include 
-   25 | #include 
-```

- pdns/dnsdist-protocols.hh | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/pdns/dnsdist-protocols.hh b/pdns/dnsdist-protocols.hh
-index c5c5743908d..bd2a4bb8ad1 100644
 a/dnsdist-protocols.hh
-+++ b/dnsdist-protocols.hh
-@@ -22,6 +22,7 @@
- #pragma once
- 
- #include 
-+#include 
- #include 
- 
- namespace dnsdist



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2024-02-19 Thread Andreas Schuerch
commit: cd27b48e1fbc51a086a41f1325b2fedb5b0e12f3
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Mon Feb 19 18:47:12 2024 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Mon Feb 19 18:50:37 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd27b48e

net-dns/dnsdist: 1.9.0-r1 update EAPI 7 -> 8, new useflags and several fixes 
all over.
Thanks Holger Hoffstätte and Joonas Niilola for all the inputs!

Closes: https://github.com/gentoo/gentoo/pull/35413

Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/dnsdist-1.9.0-r1.ebuild | 111 
 net-dns/dnsdist/metadata.xml|  21 --
 2 files changed, 127 insertions(+), 5 deletions(-)

diff --git a/net-dns/dnsdist/dnsdist-1.9.0-r1.ebuild 
b/net-dns/dnsdist/dnsdist-1.9.0-r1.ebuild
new file mode 100644
index ..473717e4807a
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.9.0-r1.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit flag-o-matic lua-single
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="https://dnsdist.org;
+
+SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="bpf cdb dnscrypt dnstap doh doh3 ipcipher lmdb quic regex snmp +ssl 
systemd test web xdp"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${LUA_REQUIRED_USE}
+   dnscrypt? ( ssl )
+   doh? ( ssl )
+   doh3? ( ssl quic )
+   ipcipher? ( ssl )
+   quic? ( ssl )"
+
+RDEPEND="acct-group/dnsdist
+   acct-user/dnsdist
+   bpf? ( dev-libs/libbpf:= )
+   cdb? ( dev-db/tinycdb:= )
+   dev-libs/boost:=
+   sys-libs/libcap
+   dev-libs/libedit
+   dev-libs/libsodium:=
+   dnstap? ( dev-libs/fstrm )
+   doh? ( net-libs/nghttp2:= )
+   doh3? ( net-libs/quiche:= )
+   lmdb? ( dev-db/lmdb:= )
+   quic? ( net-libs/quiche )
+   regex? ( dev-libs/re2:= )
+   snmp? ( net-analyzer/net-snmp:= )
+   ssl? ( dev-libs/openssl:= )
+   systemd? ( sys-apps/systemd:0= )
+   xdp? ( net-libs/xdp-tools )
+   ${LUA_DEPS}
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+   default
+
+   # clean up duplicate file
+   rm -f README.md
+}
+
+src_configure() {
+   # bug #822855
+   append-lfs-flags
+
+   # some things can only be enabled/disabled by defines
+   ! use dnstap && append-cppflags -DDISABLE_PROTOBUF
+   ! use web && append-cppflags -DDISABLE_BUILTIN_HTML
+
+   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
+   -i "${S}/configure"
+
+   local myeconfargs=(
+   --sysconfdir=/etc/dnsdist
+   --with-lua="${ELUA}"
+   --without-h2o
+   --enable-tls-providers
+   --without-gnutls
+   $(use_with bpf ebpf)
+   $(use_with cdb cdb)
+   $(use_enable doh dns-over-https)
+   $(use_enable doh3 dns-over-http3)
+   $(use_enable dnscrypt)
+   $(use_enable dnstap)
+   $(use_enable ipcipher)
+   $(use_with lmdb )
+   $(use_enable quic dns-over-quic)
+   $(use_with regex re2)
+   $(use_with snmp net-snmp)
+   $(use_enable ssl dns-over-tls)
+   $(use_enable systemd) \
+   $(use_enable test unit-tests)
+   $(use_with xdp xsk)
+   )
+
+   econf "${myeconfargs[@]}"
+}
+
+src_install() {
+   default
+
+   insinto /etc/dnsdist
+   doins "${FILESDIR}"/dnsdist.conf.example
+
+   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
+   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
+}
+
+pkg_postinst() {
+   elog "dnsdist provides multiple instances support. You can create more 
instances"
+   elog "by symlinking the dnsdist init script to another name."
+   elog
+   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
+   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
+}

diff --git a/net-dns/dnsdist/metadata.xml b/net-dns/dnsdist/metadata.xml
index 3b1c4911d481..c0cba7b1344e 100644
--- a/net-dns/dnsdist/metadata.xml
+++ b/net-dns/dnsdist/metadata.xml
@@ -5,20 +5,31 @@
native...@gentoo.org
Andreas Schuerch

+   
+   hol...@applied-asynchrony.com
+   Holger Hoffstätte
+   
+   
+   proxy-ma...@gentoo.org
+   Proxy Maintainers
+   

dnsdist is a highly DNS-, DoS- and abuse-aware loadbalancer. 
Its goal in life is to route traffic to the best server, delivering top 
performance 

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2024-02-18 Thread Andreas Schuerch
commit: 0e190b9e69ca8ce1fa989825c129f634b3338c66
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Sun Feb 18 11:12:14 2024 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Sun Feb 18 11:17:36 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e190b9e

net-dns/dnsdist: add 1.9.0, drop 1.7.3-r1

Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest   |  2 +-
 ...nsdist-1.7.3-r1.ebuild => dnsdist-1.9.0.ebuild} | 26 ++
 net-dns/dnsdist/metadata.xml   | 10 +++--
 3 files changed, 26 insertions(+), 12 deletions(-)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index 0da24572ca66..335f8a05e096 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1,3 +1,3 @@
-DIST dnsdist-1.7.3.tar.bz2 1379011 BLAKE2B 
e7d1cb9dba3d3ad1dd696d324697ffac60863112eae83307237639bea339f7ed1c3f320002d3467a44ab38a9ea60ade95fff43645c889d29465760f7f467b996
 SHA512 
2a39096709db5b41cf3bd21170689bc85ad2cd550896d02ddd85eff7410780ea59d6cf8e08b0a08962ee93b49b7f3228dfa649275453215e23c25098aca40e1a
 DIST dnsdist-1.8.0.tar.bz2 1480500 BLAKE2B 
47cfcfe3756cdc4520c1ba1e11b7d60191125ef900ba829ff7437ac2041352b845ab5f7183f53fea9b3aa6f44c5745de3878c2b72f2be048fa57d2c2e9325c0c
 SHA512 
426db3e83729bd2f8a8c8b1c02d719c6618acc0aec09d1f2670c159d441c1cad2fdc85c5ffe919e76d1b1e8e24198bf29133802cb857dfacde2dfed2532001f1
 DIST dnsdist-1.8.1.tar.bz2 1492793 BLAKE2B 
84fdf2f360c41ea235f3989d2bc14ad05e98d7b51dd20d983e7ad53ce5a6c00c7075b673e8a15fe3fd710a4e15c80db4d7431256bfb4291bd5785482d3f7f7e5
 SHA512 
db50c56587084ebdea3eb7f8e5b79178aea67b608cf6afce1453932b5225b3474a459cdc3dc8e4618a36a9edb405403dfefaed7fadd5848b5612de6bfb356f3a
+DIST dnsdist-1.9.0.tar.bz2 1620891 BLAKE2B 
9e14f275d83429ab3e83bdbbd6fe8d97b3212763398798d704adcc18d07ad8aebe16c5345425cdb589f6166155717d9649c16546bf981eb265e1349e74d11134
 SHA512 
32c0b9b3a1b58839da6dbde05eee382b78fbe58d68aed14f4927dc172dfcb15ba68b6d2246a8305b709e136e0e0c8666b6dd139ac258c8209083ff3b5673b997

diff --git a/net-dns/dnsdist/dnsdist-1.7.3-r1.ebuild 
b/net-dns/dnsdist/dnsdist-1.9.0.ebuild
similarity index 79%
rename from net-dns/dnsdist/dnsdist-1.7.3-r1.ebuild
rename to net-dns/dnsdist/dnsdist-1.9.0.ebuild
index 72f5311ffcfb..245bc728ac4b 100644
--- a/net-dns/dnsdist/dnsdist-1.7.3-r1.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.9.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -15,12 +15,16 @@ KEYWORDS="~amd64 ~x86"
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="dnscrypt dnstap doh gnutls +lmdb regex remote-logging snmp +ssl systemd 
test"
+IUSE="dnscrypt dnstap doh doh3 gnutls ipcipher +lmdb quic regex remote-logging 
snmp +ssl systemd test"
 RESTRICT="!test? ( test )"
 REQUIRED_USE="${LUA_REQUIRED_USE}
dnscrypt? ( ssl )
gnutls? ( ssl )
-   doh? ( ssl !gnutls )"
+   doh? ( ssl !gnutls )
+   doh3? ( ssl !gnutls quic )
+   ipcipher? ( ssl !gnutls )
+   quic? ( ssl !gnutls )
+   ssl? ( !gnutls )"
 
 RDEPEND="acct-group/dnsdist
acct-user/dnsdist
@@ -29,8 +33,9 @@ RDEPEND="acct-group/dnsdist
dev-libs/libsodium:=
>=dev-libs/protobuf-3:=
dnstap? ( dev-libs/fstrm:= )
-   doh? ( www-servers/h2o:=[libh2o] )
+   doh3? ( net-libs/quiche:= )
lmdb? ( dev-db/lmdb:= )
+   quic? ( net-libs/quiche:= )
regex? ( dev-libs/re2:= )
snmp? ( net-analyzer/net-snmp:= )
ssl? (
@@ -45,10 +50,6 @@ RDEPEND="acct-group/dnsdist
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
-PATCHES=(
-   "${FILESDIR}"/"${PN}"-1.7.3-gcc13.patch
-)
-
 src_configure() {
# bug #822855
append-lfs-flags
@@ -56,17 +57,24 @@ src_configure() {
econf \
--sysconfdir=/etc/dnsdist \
--with-lua="${ELUA}" \
+   --enable-tls-providers \
+   --enable-asan \
+   --enable-lsan \
+   --enable-ubsan \
$(use_enable doh dns-over-https) \
+   $(use_enable doh3 dns-over-http3) \
$(use_enable dnscrypt) \
$(use_enable dnstap) \
+   $(use_enable ipcipher) \
$(use_with lmdb ) \
+   $(use_enable quic dns-over-quic ) \
$(use_with regex re2) \
$(use_with snmp net-snmp) \
$(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
$(use_enable systemd) \
$(use_enable test unit-tests)
sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
-   -i "${S}/configure"
+   

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2023-09-11 Thread Andreas Schuerch
commit: cbfe192d5ada0962c01a96991bd62275a143ea0b
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Mon Sep 11 13:21:26 2023 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Mon Sep 11 13:21:26 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbfe192d

net-dns/dnsdist: drop 1.5.1-r101, 1.6.1-r1

Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest  |  2 -
 net-dns/dnsdist/dnsdist-1.5.1-r101.ebuild | 85 ---
 net-dns/dnsdist/dnsdist-1.6.1-r1.ebuild   | 80 -
 3 files changed, 167 deletions(-)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index 2b76f58c4716..0da24572ca66 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1,5 +1,3 @@
-DIST dnsdist-1.5.1.tar.bz2 1068061 BLAKE2B 
1c0fdd181b62b96fcd433581715cea9dc204fcdd2f65efd26a5293cc9c17d904e0937b51ba33d2dc01ecc8044f491ba2c6c8720c0816587fa5082da73108783e
 SHA512 
68fe5f55fd081ed80a620933af9f8310be0e21c86ba449a9c557975b5c83f4b64e3002e6032dc002582d081e70e1ec2ff080c5d8389fd46a9896bdafd5a41f9f
-DIST dnsdist-1.6.1.tar.bz2 1328069 BLAKE2B 
a9e9c0cb35ebc2ecd93d7fa0d6d3961b02d711da2df56240335786a5d2e529d4a7e8716f578b6e935edd3bc79dfed767d358b9feaff32dd9cd65993ef0b97b71
 SHA512 
68e114eeb1a7ae8a4ce52a7de31095c46d0ba8f572676a8ef1e858b97da199c04ec88656c7642160ba07b7db325cc2a49cd91794da8dd2e81a5301d089c34f90
 DIST dnsdist-1.7.3.tar.bz2 1379011 BLAKE2B 
e7d1cb9dba3d3ad1dd696d324697ffac60863112eae83307237639bea339f7ed1c3f320002d3467a44ab38a9ea60ade95fff43645c889d29465760f7f467b996
 SHA512 
2a39096709db5b41cf3bd21170689bc85ad2cd550896d02ddd85eff7410780ea59d6cf8e08b0a08962ee93b49b7f3228dfa649275453215e23c25098aca40e1a
 DIST dnsdist-1.8.0.tar.bz2 1480500 BLAKE2B 
47cfcfe3756cdc4520c1ba1e11b7d60191125ef900ba829ff7437ac2041352b845ab5f7183f53fea9b3aa6f44c5745de3878c2b72f2be048fa57d2c2e9325c0c
 SHA512 
426db3e83729bd2f8a8c8b1c02d719c6618acc0aec09d1f2670c159d441c1cad2fdc85c5ffe919e76d1b1e8e24198bf29133802cb857dfacde2dfed2532001f1
 DIST dnsdist-1.8.1.tar.bz2 1492793 BLAKE2B 
84fdf2f360c41ea235f3989d2bc14ad05e98d7b51dd20d983e7ad53ce5a6c00c7075b673e8a15fe3fd710a4e15c80db4d7431256bfb4291bd5785482d3f7f7e5
 SHA512 
db50c56587084ebdea3eb7f8e5b79178aea67b608cf6afce1453932b5225b3474a459cdc3dc8e4618a36a9edb405403dfefaed7fadd5848b5612de6bfb356f3a

diff --git a/net-dns/dnsdist/dnsdist-1.5.1-r101.ebuild 
b/net-dns/dnsdist/dnsdist-1.5.1-r101.ebuild
deleted file mode 100644
index ce95d87da335..
--- a/net-dns/dnsdist/dnsdist-1.5.1-r101.ebuild
+++ /dev/null
@@ -1,85 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-LUA_COMPAT=( lua5-{1..4} luajit )
-
-inherit lua-single
-
-DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
-HOMEPAGE="https://dnsdist.org;
-
-SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
-KEYWORDS="~amd64 ~x86"
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="dnscrypt dnstap doh gnutls +lmdb regex remote-logging snmp +ssl systemd 
test"
-RESTRICT="!test? ( test )"
-REQUIRED_USE="${LUA_REQUIRED_USE}
-   dnscrypt? ( ssl )
-   gnutls? ( ssl )
-   doh? ( ssl !gnutls )"
-
-RDEPEND="acct-group/dnsdist
-   acct-user/dnsdist
-   dev-libs/boost:=
-   dev-libs/libedit:=
-   dev-libs/libsodium:=
-   dnstap? ( dev-libs/fstrm:= )
-   doh? ( www-servers/h2o:=[libh2o] )
-   lmdb? ( dev-db/lmdb:= )
-   regex? ( dev-libs/re2:= )
-   remote-logging? ( >=dev-libs/protobuf-3:= )
-   snmp? ( net-analyzer/net-snmp:= )
-   ssl? (
-   gnutls? ( net-libs/gnutls:= )
-   !gnutls? ( dev-libs/openssl:= )
-   )
-   systemd? ( sys-apps/systemd:0= )
-   ${LUA_DEPS}
-"
-
-DEPEND="${RDEPEND}"
-BDEPEND="virtual/pkgconfig"
-
-src_prepare() {
-   default
-}
-
-src_configure() {
-   econf \
-   --sysconfdir=/etc/dnsdist \
-   --with-lua="${ELUA}" \
-   $(use_enable doh dns-over-https) \
-   $(use_enable dnscrypt) \
-   $(use_enable dnstap) \
-   $(use_with lmdb ) \
-   $(use_with regex re2) \
-   $(use_with remote-logging protobuf) \
-   $(use_with snmp net-snmp) \
-   $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
-   $(use_enable systemd) \
-   $(use_enable test unit-tests)
-   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
-   -i "${S}/configure"
-}
-
-src_install() {
-   default
-
-   insinto /etc/dnsdist
-   doins "${FILESDIR}"/dnsdist.conf.example
-
-   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
-   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
-}
-

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2023-09-11 Thread Andreas Schuerch
commit: c02fa581f2411e7f1f716e9f258e533f8793c11c
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Mon Sep 11 13:19:02 2023 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Mon Sep 11 13:19:02 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c02fa581

net-dns/dnsdist: add 1.8.1

Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest |  1 +
 net-dns/dnsdist/dnsdist-1.8.1.ebuild | 84 
 2 files changed, 85 insertions(+)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index 86ad1c28743e..2b76f58c4716 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -2,3 +2,4 @@ DIST dnsdist-1.5.1.tar.bz2 1068061 BLAKE2B 
1c0fdd181b62b96fcd433581715cea9dc204f
 DIST dnsdist-1.6.1.tar.bz2 1328069 BLAKE2B 
a9e9c0cb35ebc2ecd93d7fa0d6d3961b02d711da2df56240335786a5d2e529d4a7e8716f578b6e935edd3bc79dfed767d358b9feaff32dd9cd65993ef0b97b71
 SHA512 
68e114eeb1a7ae8a4ce52a7de31095c46d0ba8f572676a8ef1e858b97da199c04ec88656c7642160ba07b7db325cc2a49cd91794da8dd2e81a5301d089c34f90
 DIST dnsdist-1.7.3.tar.bz2 1379011 BLAKE2B 
e7d1cb9dba3d3ad1dd696d324697ffac60863112eae83307237639bea339f7ed1c3f320002d3467a44ab38a9ea60ade95fff43645c889d29465760f7f467b996
 SHA512 
2a39096709db5b41cf3bd21170689bc85ad2cd550896d02ddd85eff7410780ea59d6cf8e08b0a08962ee93b49b7f3228dfa649275453215e23c25098aca40e1a
 DIST dnsdist-1.8.0.tar.bz2 1480500 BLAKE2B 
47cfcfe3756cdc4520c1ba1e11b7d60191125ef900ba829ff7437ac2041352b845ab5f7183f53fea9b3aa6f44c5745de3878c2b72f2be048fa57d2c2e9325c0c
 SHA512 
426db3e83729bd2f8a8c8b1c02d719c6618acc0aec09d1f2670c159d441c1cad2fdc85c5ffe919e76d1b1e8e24198bf29133802cb857dfacde2dfed2532001f1
+DIST dnsdist-1.8.1.tar.bz2 1492793 BLAKE2B 
84fdf2f360c41ea235f3989d2bc14ad05e98d7b51dd20d983e7ad53ce5a6c00c7075b673e8a15fe3fd710a4e15c80db4d7431256bfb4291bd5785482d3f7f7e5
 SHA512 
db50c56587084ebdea3eb7f8e5b79178aea67b608cf6afce1453932b5225b3474a459cdc3dc8e4618a36a9edb405403dfefaed7fadd5848b5612de6bfb356f3a

diff --git a/net-dns/dnsdist/dnsdist-1.8.1.ebuild 
b/net-dns/dnsdist/dnsdist-1.8.1.ebuild
new file mode 100644
index ..c0ec5088ac0e
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.8.1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit flag-o-matic lua-single
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="https://dnsdist.org;
+
+SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="dnscrypt dnstap doh gnutls +lmdb regex remote-logging snmp +ssl systemd 
test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${LUA_REQUIRED_USE}
+   dnscrypt? ( ssl )
+   gnutls? ( ssl )
+   doh? ( ssl !gnutls )"
+
+RDEPEND="acct-group/dnsdist
+   acct-user/dnsdist
+   dev-libs/boost:=
+   dev-libs/libedit:=
+   dev-libs/libsodium:=
+   >=dev-libs/protobuf-3:=
+   dnstap? ( dev-libs/fstrm:= )
+   doh? ( www-servers/h2o:=[libh2o] )
+   lmdb? ( dev-db/lmdb:= )
+   regex? ( dev-libs/re2:= )
+   snmp? ( net-analyzer/net-snmp:= )
+   ssl? (
+   gnutls? ( net-libs/gnutls:= )
+   !gnutls? ( dev-libs/openssl:= )
+   )
+   systemd? ( sys-apps/systemd:0= )
+   ${LUA_DEPS}
+   net-libs/nghttp2
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+   # bug #822855
+   append-lfs-flags
+
+   econf \
+   --sysconfdir=/etc/dnsdist \
+   --with-lua="${ELUA}" \
+   $(use_enable doh dns-over-https) \
+   $(use_enable dnscrypt) \
+   $(use_enable dnstap) \
+   $(use_with lmdb ) \
+   $(use_with regex re2) \
+   $(use_with snmp net-snmp) \
+   $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
+   $(use_enable systemd) \
+   $(use_enable test unit-tests)
+   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
+   -i "${S}/configure"
+}
+
+src_install() {
+   default
+
+   insinto /etc/dnsdist
+   doins "${FILESDIR}"/dnsdist.conf.example
+
+   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
+   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
+}
+
+pkg_postinst() {
+   elog "dnsdist provides multiple instances support. You can create more 
instances"
+   elog "by symlinking the dnsdist init script to another name."
+   elog
+   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
+   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
+}



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/, net-dns/dnsdist/files/

2023-04-18 Thread Arsen Arsenović
commit: 61450918ac12732055abb52082fba09837abab8e
Author: Arsen Arsenović  gentoo  org>
AuthorDate: Wed Apr 19 00:10:57 2023 +
Commit: Arsen Arsenović  gentoo  org>
CommitDate: Wed Apr 19 00:19:00 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61450918

net-dns/dnsdist: Fix building on GCC 13

Closes: https://bugs.gentoo.org/895094
Signed-off-by: Arsen Arsenović  gentoo.org>

 net-dns/dnsdist/dnsdist-1.7.3-r1.ebuild |  4 ++
 net-dns/dnsdist/files/dnsdist-1.7.3-gcc13.patch | 62 +
 2 files changed, 66 insertions(+)

diff --git a/net-dns/dnsdist/dnsdist-1.7.3-r1.ebuild 
b/net-dns/dnsdist/dnsdist-1.7.3-r1.ebuild
index c0ec5088ac0e..72f5311ffcfb 100644
--- a/net-dns/dnsdist/dnsdist-1.7.3-r1.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.7.3-r1.ebuild
@@ -45,6 +45,10 @@ RDEPEND="acct-group/dnsdist
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
+PATCHES=(
+   "${FILESDIR}"/"${PN}"-1.7.3-gcc13.patch
+)
+
 src_configure() {
# bug #822855
append-lfs-flags

diff --git a/net-dns/dnsdist/files/dnsdist-1.7.3-gcc13.patch 
b/net-dns/dnsdist/files/dnsdist-1.7.3-gcc13.patch
new file mode 100644
index ..339887ca4a19
--- /dev/null
+++ b/net-dns/dnsdist/files/dnsdist-1.7.3-gcc13.patch
@@ -0,0 +1,62 @@
+Altered slightly from upstream counterparts in order to make them apply to
+the dist tarball (updated context and filenames to match the dist).
+
+https://github.com/PowerDNS/pdns/commit/f407319cb7374baf06698786f4f39d431a36a3cc
+https://github.com/PowerDNS/pdns/commit/d8b4ea24dc5dbe7c53c24bfffba24bcae7f58e02
+
+From d8b4ea24dc5dbe7c53c24bfffba24bcae7f58e02 Mon Sep 17 00:00:00 2001
+From: Peter van Dijk 
+Date: Mon, 23 Jan 2023 14:54:09 +0100
+Subject: [PATCH] lock.hh: include 
+
+---
+ pdns/lock.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/pdns/lock.hh b/pdns/lock.hh
+index e8bd82988da..a08951a266d 100644
+--- a/lock.hh
 b/lock.hh
+@@ -22,6 +22,7 @@
+ #pragma once
+ #include 
+ #include 
++#include 
+ 
+ /*
+   This file provides several features around locks:
+From f407319cb7374baf06698786f4f39d431a36a3cc Mon Sep 17 00:00:00 2001
+From: Sander Hoentjen 
+Date: Mon, 20 Feb 2023 16:51:07 +0100
+Subject: [PATCH] dnsdist-protocols.hh: include 
+
+This fixes building dnsdist with gcc13:
+```
+In file included from dnsdist-protocols.cc:26:
+dnsdist-protocols.hh:32:8: error: use of enum 'typeenum' without previous 
declaration
+   32 |   enum typeenum : uint8_t
+  |^~~~
+dnsdist-protocols.hh:32:19: error: 'uint8_t' was not declared in this scope
+   32 |   enum typeenum : uint8_t
+  |   ^~~
+dnsdist-protocols.hh:25:1: note: 'uint8_t' is defined in header ''; 
did you forget to '#include '?
+   24 | #include 
+  +++ |+#include 
+   25 | #include 
+```
+---
+ pdns/dnsdist-protocols.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/pdns/dnsdist-protocols.hh b/pdns/dnsdist-protocols.hh
+index c5c5743908d..bd2a4bb8ad1 100644
+--- a/dnsdist-protocols.hh
 b/dnsdist-protocols.hh
+@@ -22,6 +22,7 @@
+ #pragma once
+ 
+ #include 
++#include 
+ #include 
+ 
+ namespace dnsdist



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2023-04-18 Thread Sam James
commit: 48d41c7046e96805e2cc8791b0261ef7a3d94d02
Author: Sam James  gentoo  org>
AuthorDate: Tue Apr 18 05:43:19 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Apr 18 06:00:49 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48d41c70

net-dns/dnsdist: add github upstream metadata

Signed-off-by: Sam James  gentoo.org>

 net-dns/dnsdist/metadata.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net-dns/dnsdist/metadata.xml b/net-dns/dnsdist/metadata.xml
index 82ea726b8593..208d832c0856 100644
--- a/net-dns/dnsdist/metadata.xml
+++ b/net-dns/dnsdist/metadata.xml
@@ -17,4 +17,7 @@
Enable support for dnstap
Enable support for lmdb
  
+   
+   PowerDNS/pdns
+   
 



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2023-04-02 Thread Andreas Schuerch
commit: 5e90ac1c6a2d469f1d4863dc1baf81630e63e088
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Sun Apr  2 19:41:10 2023 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Sun Apr  2 19:43:14 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e90ac1c

net-dns/dnsdist: add 1.8.0

Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest |  1 +
 net-dns/dnsdist/dnsdist-1.8.0.ebuild | 84 
 2 files changed, 85 insertions(+)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index b7764a5a1b3a..86ad1c28743e 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1,3 +1,4 @@
 DIST dnsdist-1.5.1.tar.bz2 1068061 BLAKE2B 
1c0fdd181b62b96fcd433581715cea9dc204fcdd2f65efd26a5293cc9c17d904e0937b51ba33d2dc01ecc8044f491ba2c6c8720c0816587fa5082da73108783e
 SHA512 
68fe5f55fd081ed80a620933af9f8310be0e21c86ba449a9c557975b5c83f4b64e3002e6032dc002582d081e70e1ec2ff080c5d8389fd46a9896bdafd5a41f9f
 DIST dnsdist-1.6.1.tar.bz2 1328069 BLAKE2B 
a9e9c0cb35ebc2ecd93d7fa0d6d3961b02d711da2df56240335786a5d2e529d4a7e8716f578b6e935edd3bc79dfed767d358b9feaff32dd9cd65993ef0b97b71
 SHA512 
68e114eeb1a7ae8a4ce52a7de31095c46d0ba8f572676a8ef1e858b97da199c04ec88656c7642160ba07b7db325cc2a49cd91794da8dd2e81a5301d089c34f90
 DIST dnsdist-1.7.3.tar.bz2 1379011 BLAKE2B 
e7d1cb9dba3d3ad1dd696d324697ffac60863112eae83307237639bea339f7ed1c3f320002d3467a44ab38a9ea60ade95fff43645c889d29465760f7f467b996
 SHA512 
2a39096709db5b41cf3bd21170689bc85ad2cd550896d02ddd85eff7410780ea59d6cf8e08b0a08962ee93b49b7f3228dfa649275453215e23c25098aca40e1a
+DIST dnsdist-1.8.0.tar.bz2 1480500 BLAKE2B 
47cfcfe3756cdc4520c1ba1e11b7d60191125ef900ba829ff7437ac2041352b845ab5f7183f53fea9b3aa6f44c5745de3878c2b72f2be048fa57d2c2e9325c0c
 SHA512 
426db3e83729bd2f8a8c8b1c02d719c6618acc0aec09d1f2670c159d441c1cad2fdc85c5ffe919e76d1b1e8e24198bf29133802cb857dfacde2dfed2532001f1

diff --git a/net-dns/dnsdist/dnsdist-1.8.0.ebuild 
b/net-dns/dnsdist/dnsdist-1.8.0.ebuild
new file mode 100644
index ..c0ec5088ac0e
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.8.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit flag-o-matic lua-single
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="https://dnsdist.org;
+
+SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="dnscrypt dnstap doh gnutls +lmdb regex remote-logging snmp +ssl systemd 
test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${LUA_REQUIRED_USE}
+   dnscrypt? ( ssl )
+   gnutls? ( ssl )
+   doh? ( ssl !gnutls )"
+
+RDEPEND="acct-group/dnsdist
+   acct-user/dnsdist
+   dev-libs/boost:=
+   dev-libs/libedit:=
+   dev-libs/libsodium:=
+   >=dev-libs/protobuf-3:=
+   dnstap? ( dev-libs/fstrm:= )
+   doh? ( www-servers/h2o:=[libh2o] )
+   lmdb? ( dev-db/lmdb:= )
+   regex? ( dev-libs/re2:= )
+   snmp? ( net-analyzer/net-snmp:= )
+   ssl? (
+   gnutls? ( net-libs/gnutls:= )
+   !gnutls? ( dev-libs/openssl:= )
+   )
+   systemd? ( sys-apps/systemd:0= )
+   ${LUA_DEPS}
+   net-libs/nghttp2
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+   # bug #822855
+   append-lfs-flags
+
+   econf \
+   --sysconfdir=/etc/dnsdist \
+   --with-lua="${ELUA}" \
+   $(use_enable doh dns-over-https) \
+   $(use_enable dnscrypt) \
+   $(use_enable dnstap) \
+   $(use_with lmdb ) \
+   $(use_with regex re2) \
+   $(use_with snmp net-snmp) \
+   $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
+   $(use_enable systemd) \
+   $(use_enable test unit-tests)
+   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
+   -i "${S}/configure"
+}
+
+src_install() {
+   default
+
+   insinto /etc/dnsdist
+   doins "${FILESDIR}"/dnsdist.conf.example
+
+   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
+   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
+}
+
+pkg_postinst() {
+   elog "dnsdist provides multiple instances support. You can create more 
instances"
+   elog "by symlinking the dnsdist init script to another name."
+   elog
+   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
+   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
+}



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/files/, net-dns/dnsdist/

2023-01-27 Thread Joonas Niilola
commit: 8f8d4de81f6f3e78b9f34beb5f4a6f5dd39a9e9e
Author: Joonas Niilola  gentoo  org>
AuthorDate: Fri Jan 27 08:34:23 2023 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Fri Jan 27 08:35:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f8d4de8

net-dns/dnsdist: drop versions

Signed-off-by: Joonas Niilola  gentoo.org>

 net-dns/dnsdist/Manifest   |  4 -
 net-dns/dnsdist/dnsdist-1.5.1-r100.ebuild  | 85 --
 net-dns/dnsdist/dnsdist-1.6.0.ebuild   | 84 -
 net-dns/dnsdist/dnsdist-1.6.1.ebuild   | 80 
 net-dns/dnsdist/dnsdist-1.7.0.ebuild   | 81 -
 net-dns/dnsdist/dnsdist-1.7.1.ebuild   | 84 -
 net-dns/dnsdist/dnsdist-1.7.2.ebuild   | 84 -
 net-dns/dnsdist/dnsdist-1.7.3.ebuild   | 84 -
 .../dnsdist-1.6.0-gcc11-missing-include.patch  | 24 --
 9 files changed, 610 deletions(-)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index 4f7a541a9b21..b7764a5a1b3a 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1,7 +1,3 @@
 DIST dnsdist-1.5.1.tar.bz2 1068061 BLAKE2B 
1c0fdd181b62b96fcd433581715cea9dc204fcdd2f65efd26a5293cc9c17d904e0937b51ba33d2dc01ecc8044f491ba2c6c8720c0816587fa5082da73108783e
 SHA512 
68fe5f55fd081ed80a620933af9f8310be0e21c86ba449a9c557975b5c83f4b64e3002e6032dc002582d081e70e1ec2ff080c5d8389fd46a9896bdafd5a41f9f
-DIST dnsdist-1.6.0.tar.bz2 1328707 BLAKE2B 
d093142875882cacaa456d76d42e703e45577c32a0e5d5024fb372180d2bdd4ff0c82546142f6c2c01904bdd15407f0a39dc1d658e04e171cffe386cfc1e943d
 SHA512 
f6a1676c431d5622af075bc184c9f82b4ea0bb40ec84797a8fe835804f91bc0a93a745495f193bb52f3a5204ec0e98ed41bc206c997d1f5b13e872bb31747b0f
 DIST dnsdist-1.6.1.tar.bz2 1328069 BLAKE2B 
a9e9c0cb35ebc2ecd93d7fa0d6d3961b02d711da2df56240335786a5d2e529d4a7e8716f578b6e935edd3bc79dfed767d358b9feaff32dd9cd65993ef0b97b71
 SHA512 
68e114eeb1a7ae8a4ce52a7de31095c46d0ba8f572676a8ef1e858b97da199c04ec88656c7642160ba07b7db325cc2a49cd91794da8dd2e81a5301d089c34f90
-DIST dnsdist-1.7.0.tar.bz2 1392585 BLAKE2B 
3766da5f63df6390f555307d665efcbb2ad1462abae3af44503479d4c6ae6453e43527d2bcac718fabeb8b60ec989f264860532b480c465afc440405f9efac74
 SHA512 
abaed7aaa18f4acaf220dc938da6896e521373b1da3b6b9c4114467dd5d8b0e6cd9809534edbc6ba5b789ed8387fb47317c47bd4e00e66a6ccb035f6dd6068af
-DIST dnsdist-1.7.1.tar.bz2 1392179 BLAKE2B 
48189da6bceb1723b19bab7c42ec8cd834f3ef6d822b5da23fe2f4e02ec825d1566bce472f522fa9ac0b027d36f3089ce7c0c7eb1c7e1161c050dc50305dfdb6
 SHA512 
eee44a9994c6cab84977cad58539ca59882149d6898dfeed9e4190f06ddbc280b836bf426d22e6980d8acae1437290bddcc5166af165b6eb48c77c669281a310
-DIST dnsdist-1.7.2.tar.bz2 1391588 BLAKE2B 
cf2a9853be4c896b3909f871fad771d4298eb2586702a8a85eff2c612d275214cdad82e93961f4cfd58300f5629f06569c51a2c4f15de58188a69116bd5275de
 SHA512 
2048ac0f861547fb103da1a128fd39a35ed689ccbf3c080232a3bd0550c9e7c7e01c95864d61e065e341a9f4111c974d2db2aba73eb8f7cba9bf8273da39b8a6
 DIST dnsdist-1.7.3.tar.bz2 1379011 BLAKE2B 
e7d1cb9dba3d3ad1dd696d324697ffac60863112eae83307237639bea339f7ed1c3f320002d3467a44ab38a9ea60ade95fff43645c889d29465760f7f467b996
 SHA512 
2a39096709db5b41cf3bd21170689bc85ad2cd550896d02ddd85eff7410780ea59d6cf8e08b0a08962ee93b49b7f3228dfa649275453215e23c25098aca40e1a

diff --git a/net-dns/dnsdist/dnsdist-1.5.1-r100.ebuild 
b/net-dns/dnsdist/dnsdist-1.5.1-r100.ebuild
deleted file mode 100644
index 2b055db7ffc6..
--- a/net-dns/dnsdist/dnsdist-1.5.1-r100.ebuild
+++ /dev/null
@@ -1,85 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-LUA_COMPAT=( lua5-{1..4} luajit )
-
-inherit flag-o-matic lua-single
-
-DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
-HOMEPAGE="https://dnsdist.org;
-
-SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
-KEYWORDS="~amd64 ~x86"
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="dnscrypt dnstap doh gnutls +lmdb regex remote-logging snmp +ssl systemd 
test"
-RESTRICT="!test? ( test )"
-REQUIRED_USE="${LUA_REQUIRED_USE}
-   dnscrypt? ( ssl )
-   gnutls? ( ssl )
-   doh? ( ssl !gnutls )"
-
-RDEPEND="acct-group/dnsdist
-   acct-user/dnsdist
-   dev-libs/boost:=
-   dev-libs/libedit:=
-   dnscrypt? ( dev-libs/libsodium:= )
-   dnstap? ( dev-libs/fstrm:= )
-   doh? ( www-servers/h2o:=[libh2o] )
-   lmdb? ( dev-db/lmdb:= )
-   regex? ( dev-libs/re2:= )
-   remote-logging? ( >=dev-libs/protobuf-3:= )
-   snmp? ( net-analyzer/net-snmp:= )
-   ssl? (
-   gnutls? ( net-libs/gnutls:= )
-   !gnutls? ( dev-libs/openssl:= )
-   )
-   systemd? ( sys-apps/systemd:0= )
-   ${LUA_DEPS}
-"
-
-DEPEND="${RDEPEND}"
-BDEPEND="virtual/pkgconfig"
-
-src_prepare() {
- 

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2023-01-27 Thread Joonas Niilola
commit: fb1a4d27ff1d260c4cbd54aef819a64683b82876
Author: Doug Freed  mtu  edu>
AuthorDate: Thu Dec  8 21:51:31 2022 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Fri Jan 27 08:35:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb1a4d27

net-dns/dnsdist: make libsodium dependency unconditional

Upstream recommends using console encryption, even for local
connections. This requires libsodium to be available, so make the
dependency unconditional so it's always available, and not just when
dnscrypt is requested.

Signed-off-by: Doug Freed  mtu.edu>
Closes: https://github.com/gentoo/gentoo/pull/28605
Signed-off-by: Joonas Niilola  gentoo.org>

 net-dns/dnsdist/dnsdist-1.5.1-r101.ebuild | 85 +++
 net-dns/dnsdist/dnsdist-1.6.1-r1.ebuild   | 80 +
 net-dns/dnsdist/dnsdist-1.7.3-r1.ebuild   | 84 ++
 3 files changed, 249 insertions(+)

diff --git a/net-dns/dnsdist/dnsdist-1.5.1-r101.ebuild 
b/net-dns/dnsdist/dnsdist-1.5.1-r101.ebuild
new file mode 100644
index ..3539d16b1d87
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.5.1-r101.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit flag-o-matic lua-single
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="https://dnsdist.org;
+
+SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="dnscrypt dnstap doh gnutls +lmdb regex remote-logging snmp +ssl systemd 
test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${LUA_REQUIRED_USE}
+   dnscrypt? ( ssl )
+   gnutls? ( ssl )
+   doh? ( ssl !gnutls )"
+
+RDEPEND="acct-group/dnsdist
+   acct-user/dnsdist
+   dev-libs/boost:=
+   dev-libs/libedit:=
+   dev-libs/libsodium:=
+   dnstap? ( dev-libs/fstrm:= )
+   doh? ( www-servers/h2o:=[libh2o] )
+   lmdb? ( dev-db/lmdb:= )
+   regex? ( dev-libs/re2:= )
+   remote-logging? ( >=dev-libs/protobuf-3:= )
+   snmp? ( net-analyzer/net-snmp:= )
+   ssl? (
+   gnutls? ( net-libs/gnutls:= )
+   !gnutls? ( dev-libs/openssl:= )
+   )
+   systemd? ( sys-apps/systemd:0= )
+   ${LUA_DEPS}
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+   default
+}
+
+src_configure() {
+   econf \
+   --sysconfdir=/etc/dnsdist \
+   --with-lua="${ELUA}" \
+   $(use_enable doh dns-over-https) \
+   $(use_enable dnscrypt) \
+   $(use_enable dnstap) \
+   $(use_with lmdb ) \
+   $(use_with regex re2) \
+   $(use_with remote-logging protobuf) \
+   $(use_with snmp net-snmp) \
+   $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
+   $(use_enable systemd) \
+   $(use_enable test unit-tests)
+   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
+   -i "${S}/configure"
+}
+
+src_install() {
+   default
+
+   insinto /etc/dnsdist
+   doins "${FILESDIR}"/dnsdist.conf.example
+
+   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
+   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
+}
+
+pkg_postinst() {
+   elog "dnsdist provides multiple instances support. You can create more 
instances"
+   elog "by symlinking the dnsdist init script to another name."
+   elog
+   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
+   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
+}

diff --git a/net-dns/dnsdist/dnsdist-1.6.1-r1.ebuild 
b/net-dns/dnsdist/dnsdist-1.6.1-r1.ebuild
new file mode 100644
index ..5fba22a93769
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.6.1-r1.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit flag-o-matic lua-single
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="https://dnsdist.org;
+
+SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+KEYWORDS="~amd64"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="dnscrypt dnstap doh gnutls +lmdb regex remote-logging snmp +ssl systemd 
test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${LUA_REQUIRED_USE}
+   dnscrypt? ( ssl )
+   gnutls? ( ssl )
+   doh? ( ssl !gnutls )"
+
+RDEPEND="acct-group/dnsdist
+   acct-user/dnsdist
+   dev-libs/boost:=
+   dev-libs/libedit:=
+   dev-libs/libsodium:=
+   

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2023-01-27 Thread Joonas Niilola
commit: e6e31ce74d2c2a3796630953d12247b5070746a5
Author: Joonas Niilola  gentoo  org>
AuthorDate: Fri Jan 27 08:32:55 2023 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Fri Jan 27 08:35:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6e31ce7

net-dns/dnsdist: fix UnusedInherits on rbumped versions

Signed-off-by: Joonas Niilola  gentoo.org>

 net-dns/dnsdist/dnsdist-1.5.1-r101.ebuild | 2 +-
 net-dns/dnsdist/dnsdist-1.6.1-r1.ebuild   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-dns/dnsdist/dnsdist-1.5.1-r101.ebuild 
b/net-dns/dnsdist/dnsdist-1.5.1-r101.ebuild
index 3539d16b1d87..ce95d87da335 100644
--- a/net-dns/dnsdist/dnsdist-1.5.1-r101.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.5.1-r101.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 LUA_COMPAT=( lua5-{1..4} luajit )
 
-inherit flag-o-matic lua-single
+inherit lua-single
 
 DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
 HOMEPAGE="https://dnsdist.org;

diff --git a/net-dns/dnsdist/dnsdist-1.6.1-r1.ebuild 
b/net-dns/dnsdist/dnsdist-1.6.1-r1.ebuild
index 5fba22a93769..cf37eb114b6d 100644
--- a/net-dns/dnsdist/dnsdist-1.6.1-r1.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.6.1-r1.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 LUA_COMPAT=( lua5-{1..4} luajit )
 
-inherit flag-o-matic lua-single
+inherit lua-single
 
 DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
 HOMEPAGE="https://dnsdist.org;



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2022-11-05 Thread Andreas Schuerch
commit: 3b64f8424b69c9a07075016d943f086968653299
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Sat Nov  5 10:09:10 2022 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Sat Nov  5 10:20:17 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b64f842

net-dns/dnsdist: add 1.7.3

Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest |  1 +
 net-dns/dnsdist/dnsdist-1.7.3.ebuild | 84 
 2 files changed, 85 insertions(+)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index 8f59268f9465..4f7a541a9b21 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -4,3 +4,4 @@ DIST dnsdist-1.6.1.tar.bz2 1328069 BLAKE2B 
a9e9c0cb35ebc2ecd93d7fa0d6d3961b02d71
 DIST dnsdist-1.7.0.tar.bz2 1392585 BLAKE2B 
3766da5f63df6390f555307d665efcbb2ad1462abae3af44503479d4c6ae6453e43527d2bcac718fabeb8b60ec989f264860532b480c465afc440405f9efac74
 SHA512 
abaed7aaa18f4acaf220dc938da6896e521373b1da3b6b9c4114467dd5d8b0e6cd9809534edbc6ba5b789ed8387fb47317c47bd4e00e66a6ccb035f6dd6068af
 DIST dnsdist-1.7.1.tar.bz2 1392179 BLAKE2B 
48189da6bceb1723b19bab7c42ec8cd834f3ef6d822b5da23fe2f4e02ec825d1566bce472f522fa9ac0b027d36f3089ce7c0c7eb1c7e1161c050dc50305dfdb6
 SHA512 
eee44a9994c6cab84977cad58539ca59882149d6898dfeed9e4190f06ddbc280b836bf426d22e6980d8acae1437290bddcc5166af165b6eb48c77c669281a310
 DIST dnsdist-1.7.2.tar.bz2 1391588 BLAKE2B 
cf2a9853be4c896b3909f871fad771d4298eb2586702a8a85eff2c612d275214cdad82e93961f4cfd58300f5629f06569c51a2c4f15de58188a69116bd5275de
 SHA512 
2048ac0f861547fb103da1a128fd39a35ed689ccbf3c080232a3bd0550c9e7c7e01c95864d61e065e341a9f4111c974d2db2aba73eb8f7cba9bf8273da39b8a6
+DIST dnsdist-1.7.3.tar.bz2 1379011 BLAKE2B 
e7d1cb9dba3d3ad1dd696d324697ffac60863112eae83307237639bea339f7ed1c3f320002d3467a44ab38a9ea60ade95fff43645c889d29465760f7f467b996
 SHA512 
2a39096709db5b41cf3bd21170689bc85ad2cd550896d02ddd85eff7410780ea59d6cf8e08b0a08962ee93b49b7f3228dfa649275453215e23c25098aca40e1a

diff --git a/net-dns/dnsdist/dnsdist-1.7.3.ebuild 
b/net-dns/dnsdist/dnsdist-1.7.3.ebuild
new file mode 100644
index ..e68e3726babb
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.7.3.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit flag-o-matic lua-single
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="https://dnsdist.org;
+
+SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="dnscrypt dnstap doh gnutls +lmdb regex remote-logging snmp +ssl systemd 
test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${LUA_REQUIRED_USE}
+   dnscrypt? ( ssl )
+   gnutls? ( ssl )
+   doh? ( ssl !gnutls )"
+
+RDEPEND="acct-group/dnsdist
+   acct-user/dnsdist
+   dev-libs/boost:=
+   dev-libs/libedit:=
+   >=dev-libs/protobuf-3:=
+   dnscrypt? ( dev-libs/libsodium:= )
+   dnstap? ( dev-libs/fstrm:= )
+   doh? ( www-servers/h2o:=[libh2o] )
+   lmdb? ( dev-db/lmdb:= )
+   regex? ( dev-libs/re2:= )
+   snmp? ( net-analyzer/net-snmp:= )
+   ssl? (
+   gnutls? ( net-libs/gnutls:= )
+   !gnutls? ( dev-libs/openssl:= )
+   )
+   systemd? ( sys-apps/systemd:0= )
+   ${LUA_DEPS}
+   net-libs/nghttp2
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+   # bug #822855
+   append-lfs-flags
+
+   econf \
+   --sysconfdir=/etc/dnsdist \
+   --with-lua="${ELUA}" \
+   $(use_enable doh dns-over-https) \
+   $(use_enable dnscrypt) \
+   $(use_enable dnstap) \
+   $(use_with lmdb ) \
+   $(use_with regex re2) \
+   $(use_with snmp net-snmp) \
+   $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
+   $(use_enable systemd) \
+   $(use_enable test unit-tests)
+   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
+   -i "${S}/configure"
+}
+
+src_install() {
+   default
+
+   insinto /etc/dnsdist
+   doins "${FILESDIR}"/dnsdist.conf.example
+
+   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
+   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
+}
+
+pkg_postinst() {
+   elog "dnsdist provides multiple instances support. You can create more 
instances"
+   elog "by symlinking the dnsdist init script to another name."
+   elog
+   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
+   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2022-06-25 Thread Andreas Schuerch
commit: 8a5a743db0744a96d1eb0f79a6d2ae0b14a91371
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Fri Jun 24 09:32:13 2022 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Sat Jun 25 09:02:41 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a5a743d

net-dns/dnsdist: add 1.7.2

Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest |  1 +
 net-dns/dnsdist/dnsdist-1.7.2.ebuild | 84 
 2 files changed, 85 insertions(+)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index f53ad9476dcf..8f59268f9465 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -3,3 +3,4 @@ DIST dnsdist-1.6.0.tar.bz2 1328707 BLAKE2B 
d093142875882cacaa456d76d42e703e45577
 DIST dnsdist-1.6.1.tar.bz2 1328069 BLAKE2B 
a9e9c0cb35ebc2ecd93d7fa0d6d3961b02d711da2df56240335786a5d2e529d4a7e8716f578b6e935edd3bc79dfed767d358b9feaff32dd9cd65993ef0b97b71
 SHA512 
68e114eeb1a7ae8a4ce52a7de31095c46d0ba8f572676a8ef1e858b97da199c04ec88656c7642160ba07b7db325cc2a49cd91794da8dd2e81a5301d089c34f90
 DIST dnsdist-1.7.0.tar.bz2 1392585 BLAKE2B 
3766da5f63df6390f555307d665efcbb2ad1462abae3af44503479d4c6ae6453e43527d2bcac718fabeb8b60ec989f264860532b480c465afc440405f9efac74
 SHA512 
abaed7aaa18f4acaf220dc938da6896e521373b1da3b6b9c4114467dd5d8b0e6cd9809534edbc6ba5b789ed8387fb47317c47bd4e00e66a6ccb035f6dd6068af
 DIST dnsdist-1.7.1.tar.bz2 1392179 BLAKE2B 
48189da6bceb1723b19bab7c42ec8cd834f3ef6d822b5da23fe2f4e02ec825d1566bce472f522fa9ac0b027d36f3089ce7c0c7eb1c7e1161c050dc50305dfdb6
 SHA512 
eee44a9994c6cab84977cad58539ca59882149d6898dfeed9e4190f06ddbc280b836bf426d22e6980d8acae1437290bddcc5166af165b6eb48c77c669281a310
+DIST dnsdist-1.7.2.tar.bz2 1391588 BLAKE2B 
cf2a9853be4c896b3909f871fad771d4298eb2586702a8a85eff2c612d275214cdad82e93961f4cfd58300f5629f06569c51a2c4f15de58188a69116bd5275de
 SHA512 
2048ac0f861547fb103da1a128fd39a35ed689ccbf3c080232a3bd0550c9e7c7e01c95864d61e065e341a9f4111c974d2db2aba73eb8f7cba9bf8273da39b8a6

diff --git a/net-dns/dnsdist/dnsdist-1.7.2.ebuild 
b/net-dns/dnsdist/dnsdist-1.7.2.ebuild
new file mode 100644
index ..99404bcecece
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.7.2.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit flag-o-matic lua-single
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="https://dnsdist.org;
+
+SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="dnscrypt dnstap doh gnutls +lmdb regex remote-logging snmp +ssl systemd 
test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${LUA_REQUIRED_USE}
+   dnscrypt? ( ssl )
+   gnutls? ( ssl )
+   doh? ( ssl !gnutls )"
+
+RDEPEND="acct-group/dnsdist
+   acct-user/dnsdist
+   >=dev-libs/boost-1.35:=
+   dev-libs/libedit:=
+   >=dev-libs/protobuf-3:=
+   dnscrypt? ( dev-libs/libsodium:= )
+   dnstap? ( dev-libs/fstrm:= )
+   doh? ( www-servers/h2o:=[libh2o] )
+   lmdb? ( dev-db/lmdb:= )
+   regex? ( dev-libs/re2:= )
+   snmp? ( net-analyzer/net-snmp:= )
+   ssl? (
+   gnutls? ( net-libs/gnutls:= )
+   !gnutls? ( dev-libs/openssl:= )
+   )
+   systemd? ( sys-apps/systemd:0= )
+   ${LUA_DEPS}
+   net-libs/nghttp2
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+   # bug #822855
+   append-lfs-flags
+
+   econf \
+   --sysconfdir=/etc/dnsdist \
+   --with-lua="${ELUA}" \
+   $(use_enable doh dns-over-https) \
+   $(use_enable dnscrypt) \
+   $(use_enable dnstap) \
+   $(use_with lmdb ) \
+   $(use_with regex re2) \
+   $(use_with snmp net-snmp) \
+   $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
+   $(use_enable systemd) \
+   $(use_enable test unit-tests)
+   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
+   -i "${S}/configure"
+}
+
+src_install() {
+   default
+
+   insinto /etc/dnsdist
+   doins "${FILESDIR}"/dnsdist.conf.example
+
+   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
+   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
+}
+
+pkg_postinst() {
+   elog "dnsdist provides multiple instances support. You can create more 
instances"
+   elog "by symlinking the dnsdist init script to another name."
+   elog
+   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
+   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the 

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2022-06-07 Thread Sam James
commit: 559f00d18e6cdac489001e1f2c0ebdb4a7f69e76
Author: Sam James  gentoo  org>
AuthorDate: Wed Jun  8 03:00:42 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Jun  8 03:00:42 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=559f00d1

net-dns/dnsdist: Keyword 1.7.1 x86, #796137

Signed-off-by: Sam James  gentoo.org>

 net-dns/dnsdist/dnsdist-1.7.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-dns/dnsdist/dnsdist-1.7.1.ebuild 
b/net-dns/dnsdist/dnsdist-1.7.1.ebuild
index 802bc3ba4d98..99404bcecece 100644
--- a/net-dns/dnsdist/dnsdist-1.7.1.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.7.1.ebuild
@@ -11,7 +11,7 @@ DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
 HOMEPAGE="https://dnsdist.org;
 
 SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~x86"
 
 LICENSE="GPL-2"
 SLOT="0"



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2022-06-07 Thread Sam James
commit: 323f769c2484458668a03f4a5a497f5d58ab2ee4
Author: Sam James  gentoo  org>
AuthorDate: Wed Jun  8 02:56:41 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Jun  8 02:56:58 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=323f769c

net-dns/dnsdist: add LFS flags

Includes time64 bits too.

Bug: https://bugs.gentoo.org/822855
Bug: https://bugs.gentoo.org/796137
Signed-off-by: Sam James  gentoo.org>

 net-dns/dnsdist/dnsdist-1.7.1.ebuild | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/net-dns/dnsdist/dnsdist-1.7.1.ebuild 
b/net-dns/dnsdist/dnsdist-1.7.1.ebuild
index 0a7f9c72b105..802bc3ba4d98 100644
--- a/net-dns/dnsdist/dnsdist-1.7.1.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.7.1.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 LUA_COMPAT=( lua5-{1..4} luajit )
 
-inherit lua-single
+inherit flag-o-matic lua-single
 
 DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
 HOMEPAGE="https://dnsdist.org;
@@ -46,6 +46,9 @@ DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
 src_configure() {
+   # bug #822855
+   append-lfs-flags
+
econf \
--sysconfdir=/etc/dnsdist \
--with-lua="${ELUA}" \



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2022-04-27 Thread Andreas Schuerch
commit: a068b048ada0a34dbc2b66db25a488d2291bf744
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Wed Apr 27 12:05:48 2022 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Wed Apr 27 12:12:36 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a068b048

net-dns/dnsdist: add 1.7.1

Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest |  1 +
 net-dns/dnsdist/dnsdist-1.7.1.ebuild | 81 
 2 files changed, 82 insertions(+)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index bea7732ff2ea..f53ad9476dcf 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -2,3 +2,4 @@ DIST dnsdist-1.5.1.tar.bz2 1068061 BLAKE2B 
1c0fdd181b62b96fcd433581715cea9dc204f
 DIST dnsdist-1.6.0.tar.bz2 1328707 BLAKE2B 
d093142875882cacaa456d76d42e703e45577c32a0e5d5024fb372180d2bdd4ff0c82546142f6c2c01904bdd15407f0a39dc1d658e04e171cffe386cfc1e943d
 SHA512 
f6a1676c431d5622af075bc184c9f82b4ea0bb40ec84797a8fe835804f91bc0a93a745495f193bb52f3a5204ec0e98ed41bc206c997d1f5b13e872bb31747b0f
 DIST dnsdist-1.6.1.tar.bz2 1328069 BLAKE2B 
a9e9c0cb35ebc2ecd93d7fa0d6d3961b02d711da2df56240335786a5d2e529d4a7e8716f578b6e935edd3bc79dfed767d358b9feaff32dd9cd65993ef0b97b71
 SHA512 
68e114eeb1a7ae8a4ce52a7de31095c46d0ba8f572676a8ef1e858b97da199c04ec88656c7642160ba07b7db325cc2a49cd91794da8dd2e81a5301d089c34f90
 DIST dnsdist-1.7.0.tar.bz2 1392585 BLAKE2B 
3766da5f63df6390f555307d665efcbb2ad1462abae3af44503479d4c6ae6453e43527d2bcac718fabeb8b60ec989f264860532b480c465afc440405f9efac74
 SHA512 
abaed7aaa18f4acaf220dc938da6896e521373b1da3b6b9c4114467dd5d8b0e6cd9809534edbc6ba5b789ed8387fb47317c47bd4e00e66a6ccb035f6dd6068af
+DIST dnsdist-1.7.1.tar.bz2 1392179 BLAKE2B 
48189da6bceb1723b19bab7c42ec8cd834f3ef6d822b5da23fe2f4e02ec825d1566bce472f522fa9ac0b027d36f3089ce7c0c7eb1c7e1161c050dc50305dfdb6
 SHA512 
eee44a9994c6cab84977cad58539ca59882149d6898dfeed9e4190f06ddbc280b836bf426d22e6980d8acae1437290bddcc5166af165b6eb48c77c669281a310

diff --git a/net-dns/dnsdist/dnsdist-1.7.1.ebuild 
b/net-dns/dnsdist/dnsdist-1.7.1.ebuild
new file mode 100644
index ..2500a331c58d
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.7.1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit flag-o-matic lua-single
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="https://dnsdist.org;
+
+SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+KEYWORDS="~amd64"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="dnscrypt dnstap doh gnutls +lmdb regex remote-logging snmp +ssl systemd 
test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${LUA_REQUIRED_USE}
+   dnscrypt? ( ssl )
+   gnutls? ( ssl )
+   doh? ( ssl !gnutls )"
+
+RDEPEND="acct-group/dnsdist
+   acct-user/dnsdist
+   >=dev-libs/boost-1.35:=
+   dev-libs/libedit:=
+   >=dev-libs/protobuf-3:=
+   dnscrypt? ( dev-libs/libsodium:= )
+   dnstap? ( dev-libs/fstrm:= )
+   doh? ( www-servers/h2o:=[libh2o] )
+   lmdb? ( dev-db/lmdb:= )
+   regex? ( dev-libs/re2:= )
+   snmp? ( net-analyzer/net-snmp:= )
+   ssl? (
+   gnutls? ( net-libs/gnutls:= )
+   !gnutls? ( dev-libs/openssl:= )
+   )
+   systemd? ( sys-apps/systemd:0= )
+   ${LUA_DEPS}
+   net-libs/nghttp2
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+   econf \
+   --sysconfdir=/etc/dnsdist \
+   --with-lua="${ELUA}" \
+   $(use_enable doh dns-over-https) \
+   $(use_enable dnscrypt) \
+   $(use_enable dnstap) \
+   $(use_with lmdb ) \
+   $(use_with regex re2) \
+   $(use_with snmp net-snmp) \
+   $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
+   $(use_enable systemd) \
+   $(use_enable test unit-tests)
+   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
+   -i "${S}/configure"
+}
+
+src_install() {
+   default
+
+   insinto /etc/dnsdist
+   doins "${FILESDIR}"/dnsdist.conf.example
+
+   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
+   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
+}
+
+pkg_postinst() {
+   elog "dnsdist provides multiple instances support. You can create more 
instances"
+   elog "by symlinking the dnsdist init script to another name."
+   elog
+   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
+   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
+}



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2022-04-27 Thread Andreas Schuerch
commit: efedc64019988a2d8166ac966c13982a87db5387
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Wed Apr 27 12:12:01 2022 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Wed Apr 27 12:12:36 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efedc640

net-dns/dnsdist: add 1.7.1

Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/dnsdist-1.7.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-dns/dnsdist/dnsdist-1.7.1.ebuild 
b/net-dns/dnsdist/dnsdist-1.7.1.ebuild
index 2500a331c58d..0a7f9c72b105 100644
--- a/net-dns/dnsdist/dnsdist-1.7.1.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.7.1.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 LUA_COMPAT=( lua5-{1..4} luajit )
 
-inherit flag-o-matic lua-single
+inherit lua-single
 
 DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
 HOMEPAGE="https://dnsdist.org;



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2022-01-22 Thread Andreas Schuerch
commit: 706f140d6b150ec3a0e1fcb718685edeb440146a
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Sat Jan 22 14:02:36 2022 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Sat Jan 22 14:02:36 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=706f140d

net-dns/dnsdist: version bump to 1.7.0

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest |  1 +
 net-dns/dnsdist/dnsdist-1.7.0.ebuild | 81 
 2 files changed, 82 insertions(+)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index c3dd19a29e1f..bea7732ff2ea 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1,3 +1,4 @@
 DIST dnsdist-1.5.1.tar.bz2 1068061 BLAKE2B 
1c0fdd181b62b96fcd433581715cea9dc204fcdd2f65efd26a5293cc9c17d904e0937b51ba33d2dc01ecc8044f491ba2c6c8720c0816587fa5082da73108783e
 SHA512 
68fe5f55fd081ed80a620933af9f8310be0e21c86ba449a9c557975b5c83f4b64e3002e6032dc002582d081e70e1ec2ff080c5d8389fd46a9896bdafd5a41f9f
 DIST dnsdist-1.6.0.tar.bz2 1328707 BLAKE2B 
d093142875882cacaa456d76d42e703e45577c32a0e5d5024fb372180d2bdd4ff0c82546142f6c2c01904bdd15407f0a39dc1d658e04e171cffe386cfc1e943d
 SHA512 
f6a1676c431d5622af075bc184c9f82b4ea0bb40ec84797a8fe835804f91bc0a93a745495f193bb52f3a5204ec0e98ed41bc206c997d1f5b13e872bb31747b0f
 DIST dnsdist-1.6.1.tar.bz2 1328069 BLAKE2B 
a9e9c0cb35ebc2ecd93d7fa0d6d3961b02d711da2df56240335786a5d2e529d4a7e8716f578b6e935edd3bc79dfed767d358b9feaff32dd9cd65993ef0b97b71
 SHA512 
68e114eeb1a7ae8a4ce52a7de31095c46d0ba8f572676a8ef1e858b97da199c04ec88656c7642160ba07b7db325cc2a49cd91794da8dd2e81a5301d089c34f90
+DIST dnsdist-1.7.0.tar.bz2 1392585 BLAKE2B 
3766da5f63df6390f555307d665efcbb2ad1462abae3af44503479d4c6ae6453e43527d2bcac718fabeb8b60ec989f264860532b480c465afc440405f9efac74
 SHA512 
abaed7aaa18f4acaf220dc938da6896e521373b1da3b6b9c4114467dd5d8b0e6cd9809534edbc6ba5b789ed8387fb47317c47bd4e00e66a6ccb035f6dd6068af

diff --git a/net-dns/dnsdist/dnsdist-1.7.0.ebuild 
b/net-dns/dnsdist/dnsdist-1.7.0.ebuild
new file mode 100644
index ..2500a331c58d
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.7.0.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit flag-o-matic lua-single
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="https://dnsdist.org;
+
+SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+KEYWORDS="~amd64"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="dnscrypt dnstap doh gnutls +lmdb regex remote-logging snmp +ssl systemd 
test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${LUA_REQUIRED_USE}
+   dnscrypt? ( ssl )
+   gnutls? ( ssl )
+   doh? ( ssl !gnutls )"
+
+RDEPEND="acct-group/dnsdist
+   acct-user/dnsdist
+   >=dev-libs/boost-1.35:=
+   dev-libs/libedit:=
+   >=dev-libs/protobuf-3:=
+   dnscrypt? ( dev-libs/libsodium:= )
+   dnstap? ( dev-libs/fstrm:= )
+   doh? ( www-servers/h2o:=[libh2o] )
+   lmdb? ( dev-db/lmdb:= )
+   regex? ( dev-libs/re2:= )
+   snmp? ( net-analyzer/net-snmp:= )
+   ssl? (
+   gnutls? ( net-libs/gnutls:= )
+   !gnutls? ( dev-libs/openssl:= )
+   )
+   systemd? ( sys-apps/systemd:0= )
+   ${LUA_DEPS}
+   net-libs/nghttp2
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+   econf \
+   --sysconfdir=/etc/dnsdist \
+   --with-lua="${ELUA}" \
+   $(use_enable doh dns-over-https) \
+   $(use_enable dnscrypt) \
+   $(use_enable dnstap) \
+   $(use_with lmdb ) \
+   $(use_with regex re2) \
+   $(use_with snmp net-snmp) \
+   $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
+   $(use_enable systemd) \
+   $(use_enable test unit-tests)
+   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
+   -i "${S}/configure"
+}
+
+src_install() {
+   default
+
+   insinto /etc/dnsdist
+   doins "${FILESDIR}"/dnsdist.conf.example
+
+   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
+   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
+}
+
+pkg_postinst() {
+   elog "dnsdist provides multiple instances support. You can create more 
instances"
+   elog "by symlinking the dnsdist init script to another name."
+   elog
+   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
+   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
+}



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2021-09-21 Thread Andreas Schuerch
commit: c7bd5b7fb72acc6e98deb5803e4eceaf40a5d24e
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Tue Sep 21 17:12:44 2021 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Tue Sep 21 17:14:22 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7bd5b7f

net-dns/dnsdist: version bump

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest |  1 +
 net-dns/dnsdist/dnsdist-1.6.1.ebuild | 80 
 2 files changed, 81 insertions(+)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index a19099ebb1f..c3dd19a29e1 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1,2 +1,3 @@
 DIST dnsdist-1.5.1.tar.bz2 1068061 BLAKE2B 
1c0fdd181b62b96fcd433581715cea9dc204fcdd2f65efd26a5293cc9c17d904e0937b51ba33d2dc01ecc8044f491ba2c6c8720c0816587fa5082da73108783e
 SHA512 
68fe5f55fd081ed80a620933af9f8310be0e21c86ba449a9c557975b5c83f4b64e3002e6032dc002582d081e70e1ec2ff080c5d8389fd46a9896bdafd5a41f9f
 DIST dnsdist-1.6.0.tar.bz2 1328707 BLAKE2B 
d093142875882cacaa456d76d42e703e45577c32a0e5d5024fb372180d2bdd4ff0c82546142f6c2c01904bdd15407f0a39dc1d658e04e171cffe386cfc1e943d
 SHA512 
f6a1676c431d5622af075bc184c9f82b4ea0bb40ec84797a8fe835804f91bc0a93a745495f193bb52f3a5204ec0e98ed41bc206c997d1f5b13e872bb31747b0f
+DIST dnsdist-1.6.1.tar.bz2 1328069 BLAKE2B 
a9e9c0cb35ebc2ecd93d7fa0d6d3961b02d711da2df56240335786a5d2e529d4a7e8716f578b6e935edd3bc79dfed767d358b9feaff32dd9cd65993ef0b97b71
 SHA512 
68e114eeb1a7ae8a4ce52a7de31095c46d0ba8f572676a8ef1e858b97da199c04ec88656c7642160ba07b7db325cc2a49cd91794da8dd2e81a5301d089c34f90

diff --git a/net-dns/dnsdist/dnsdist-1.6.1.ebuild 
b/net-dns/dnsdist/dnsdist-1.6.1.ebuild
new file mode 100644
index 000..a883f49ab1c
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.6.1.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit flag-o-matic lua-single
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="https://dnsdist.org;
+
+SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+KEYWORDS="~amd64"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="dnscrypt dnstap doh gnutls +lmdb regex remote-logging snmp +ssl systemd 
test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${LUA_REQUIRED_USE}
+   dnscrypt? ( ssl )
+   gnutls? ( ssl )
+   doh? ( ssl !gnutls )"
+
+RDEPEND="acct-group/dnsdist
+   acct-user/dnsdist
+   >=dev-libs/boost-1.35:=
+   dev-libs/libedit:=
+   >=dev-libs/protobuf-3:=
+   dnscrypt? ( dev-libs/libsodium:= )
+   dnstap? ( dev-libs/fstrm:= )
+   doh? ( www-servers/h2o:=[libh2o] )
+   lmdb? ( dev-db/lmdb:= )
+   regex? ( dev-libs/re2:= )
+   snmp? ( net-analyzer/net-snmp:= )
+   ssl? (
+   gnutls? ( net-libs/gnutls:= )
+   !gnutls? ( dev-libs/openssl:= )
+   )
+   systemd? ( sys-apps/systemd:0= )
+   ${LUA_DEPS}
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+   econf \
+   --sysconfdir=/etc/dnsdist \
+   --with-lua="${ELUA}" \
+   $(use_enable doh dns-over-https) \
+   $(use_enable dnscrypt) \
+   $(use_enable dnstap) \
+   $(use_with lmdb ) \
+   $(use_with regex re2) \
+   $(use_with snmp net-snmp) \
+   $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
+   $(use_enable systemd) \
+   $(use_enable test unit-tests)
+   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
+   -i "${S}/configure"
+}
+
+src_install() {
+   default
+
+   insinto /etc/dnsdist
+   doins "${FILESDIR}"/dnsdist.conf.example
+
+   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
+   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
+}
+
+pkg_postinst() {
+   elog "dnsdist provides multiple instances support. You can create more 
instances"
+   elog "by symlinking the dnsdist init script to another name."
+   elog
+   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
+   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
+}



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/files/, net-dns/dnsdist/

2021-06-14 Thread Sam James
commit: 6f4c9bd084526bce777418dc7a1d269046413bea
Author: Sam James  gentoo  org>
AuthorDate: Tue Jun 15 03:45:51 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jun 15 03:45:51 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f4c9bd0

net-dns/dnsdist: fix build with GCC 11, protobuf no longer optional

* Fix build with GCC 11
* Upstream made protobuf mandatory

Closes: https://bugs.gentoo.org/790719
Signed-off-by: Sam James  gentoo.org>

 net-dns/dnsdist/dnsdist-1.6.0.ebuild   |  9 
 .../dnsdist-1.6.0-gcc11-missing-include.patch  | 24 ++
 2 files changed, 28 insertions(+), 5 deletions(-)

diff --git a/net-dns/dnsdist/dnsdist-1.6.0.ebuild 
b/net-dns/dnsdist/dnsdist-1.6.0.ebuild
index 3340f22db78..84866fb8314 100644
--- a/net-dns/dnsdist/dnsdist-1.6.0.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.6.0.ebuild
@@ -26,12 +26,12 @@ RDEPEND="acct-group/dnsdist
acct-user/dnsdist
>=dev-libs/boost-1.35:=
dev-libs/libedit:=
+   >=dev-libs/protobuf-3:=
dnscrypt? ( dev-libs/libsodium:= )
dnstap? ( dev-libs/fstrm:= )
doh? ( www-servers/h2o:=[libh2o] )
lmdb? ( dev-db/lmdb:= )
regex? ( dev-libs/re2:= )
-   remote-logging? ( >=dev-libs/protobuf-3:= )
snmp? ( net-analyzer/net-snmp:= )
ssl? (
gnutls? ( net-libs/gnutls:= )
@@ -44,9 +44,9 @@ RDEPEND="acct-group/dnsdist
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
-src_prepare() {
-   default
-}
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.6.0-gcc11-missing-include.patch
+)
 
 src_configure() {
econf \
@@ -57,7 +57,6 @@ src_configure() {
$(use_enable dnstap) \
$(use_with lmdb ) \
$(use_with regex re2) \
-   $(use_with remote-logging protobuf) \
$(use_with snmp net-snmp) \
$(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
$(use_enable systemd) \

diff --git a/net-dns/dnsdist/files/dnsdist-1.6.0-gcc11-missing-include.patch 
b/net-dns/dnsdist/files/dnsdist-1.6.0-gcc11-missing-include.patch
new file mode 100644
index 000..6e549b2450e
--- /dev/null
+++ b/net-dns/dnsdist/files/dnsdist-1.6.0-gcc11-missing-include.patch
@@ -0,0 +1,24 @@
+https://bugs.gentoo.org/790719
+https://github.com/hhoffstaette/portage/blob/master/net-dns/dnsdist/files/dnsdist-1.6.0-add-missing-include.patch
+
+From: Kees Monshouwer 
+Date: Tue, 11 May 2021 10:27:01 +0200
+Subject: [PATCH] add missing includes (Fedora 34, gcc 11.1 / clang 12)
+
+[HH: reduced to necessary patch for dnsdist]
+---
+ lock.hh  | 1 +
+ 1 file changed, 1 insertions(+)
+
+diff --git a/lock.hh b/lock.hh
+index 09299d7979d..0644502f871 100644
+--- a/lock.hh
 b/lock.hh
+@@ -20,6 +20,7 @@
+  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 
USA.
+  */
+ #pragma once
++#include 
+ #include 
+ 
+ class ReadWriteLock



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2021-05-17 Thread Andreas Schuerch
commit: c3bf9abd6dcfef9d57218a50f5ef74186c7711fb
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Mon May 17 15:47:12 2021 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Mon May 17 15:47:12 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3bf9abd

net-dns/dnsdist: bump to 1.6.0, x86 keyword dropped

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest |  1 +
 net-dns/dnsdist/dnsdist-1.6.0.ebuild | 85 
 2 files changed, 86 insertions(+)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index a5947ea150c..a19099ebb1f 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1 +1,2 @@
 DIST dnsdist-1.5.1.tar.bz2 1068061 BLAKE2B 
1c0fdd181b62b96fcd433581715cea9dc204fcdd2f65efd26a5293cc9c17d904e0937b51ba33d2dc01ecc8044f491ba2c6c8720c0816587fa5082da73108783e
 SHA512 
68fe5f55fd081ed80a620933af9f8310be0e21c86ba449a9c557975b5c83f4b64e3002e6032dc002582d081e70e1ec2ff080c5d8389fd46a9896bdafd5a41f9f
+DIST dnsdist-1.6.0.tar.bz2 1328707 BLAKE2B 
d093142875882cacaa456d76d42e703e45577c32a0e5d5024fb372180d2bdd4ff0c82546142f6c2c01904bdd15407f0a39dc1d658e04e171cffe386cfc1e943d
 SHA512 
f6a1676c431d5622af075bc184c9f82b4ea0bb40ec84797a8fe835804f91bc0a93a745495f193bb52f3a5204ec0e98ed41bc206c997d1f5b13e872bb31747b0f

diff --git a/net-dns/dnsdist/dnsdist-1.6.0.ebuild 
b/net-dns/dnsdist/dnsdist-1.6.0.ebuild
new file mode 100644
index 000..3340f22db78
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.6.0.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit flag-o-matic lua-single
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="https://dnsdist.org;
+
+SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+KEYWORDS="~amd64"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="dnscrypt dnstap doh gnutls +lmdb regex remote-logging snmp +ssl systemd 
test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${LUA_REQUIRED_USE}
+   dnscrypt? ( ssl )
+   gnutls? ( ssl )
+   doh? ( ssl !gnutls )"
+
+RDEPEND="acct-group/dnsdist
+   acct-user/dnsdist
+   >=dev-libs/boost-1.35:=
+   dev-libs/libedit:=
+   dnscrypt? ( dev-libs/libsodium:= )
+   dnstap? ( dev-libs/fstrm:= )
+   doh? ( www-servers/h2o:=[libh2o] )
+   lmdb? ( dev-db/lmdb:= )
+   regex? ( dev-libs/re2:= )
+   remote-logging? ( >=dev-libs/protobuf-3:= )
+   snmp? ( net-analyzer/net-snmp:= )
+   ssl? (
+   gnutls? ( net-libs/gnutls:= )
+   !gnutls? ( dev-libs/openssl:= )
+   )
+   systemd? ( sys-apps/systemd:0= )
+   ${LUA_DEPS}
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+   default
+}
+
+src_configure() {
+   econf \
+   --sysconfdir=/etc/dnsdist \
+   --with-lua="${ELUA}" \
+   $(use_enable doh dns-over-https) \
+   $(use_enable dnscrypt) \
+   $(use_enable dnstap) \
+   $(use_with lmdb ) \
+   $(use_with regex re2) \
+   $(use_with remote-logging protobuf) \
+   $(use_with snmp net-snmp) \
+   $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
+   $(use_enable systemd) \
+   $(use_enable test unit-tests)
+   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
+   -i "${S}/configure"
+}
+
+src_install() {
+   default
+
+   insinto /etc/dnsdist
+   doins "${FILESDIR}"/dnsdist.conf.example
+
+   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
+   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
+}
+
+pkg_postinst() {
+   elog "dnsdist provides multiple instances support. You can create more 
instances"
+   elog "by symlinking the dnsdist init script to another name."
+   elog
+   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
+   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
+}



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2021-03-26 Thread Conrad Kostecki
commit: 1f87781bb922e8aba7f5dd6b4cc9ee7f9fd07ab4
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Fri Mar 26 19:04:13 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Fri Mar 26 19:45:22 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f87781b

net-dns/dnsdist: drop old version

Dropping old versions, which do not support slotted lua.

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Conrad Kostecki  gentoo.org>

 net-dns/dnsdist/Manifest |  1 -
 net-dns/dnsdist/dnsdist-1.5.0.ebuild | 84 
 net-dns/dnsdist/dnsdist-1.5.1.ebuild | 84 
 3 files changed, 169 deletions(-)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index 773ff1f17b9..a5947ea150c 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1,2 +1 @@
-DIST dnsdist-1.5.0.tar.bz2 1067645 BLAKE2B 
de07de8f862a633d8eb11ccf632e01c2ce779a35ef61ba2fcf932894d692f2f3edfd638ce77f178bbfbfc1115d8e76f5522e10061fcf61650170a5b59d5cc9ca
 SHA512 
df6f8caae001f152f0d264176c570778842979484d16e4199afe0e2591006392444245dd8ce23287cdcf9613e2c40a9e3564f5236e5f5a6fd67b89d6ea0d9ed4
 DIST dnsdist-1.5.1.tar.bz2 1068061 BLAKE2B 
1c0fdd181b62b96fcd433581715cea9dc204fcdd2f65efd26a5293cc9c17d904e0937b51ba33d2dc01ecc8044f491ba2c6c8720c0816587fa5082da73108783e
 SHA512 
68fe5f55fd081ed80a620933af9f8310be0e21c86ba449a9c557975b5c83f4b64e3002e6032dc002582d081e70e1ec2ff080c5d8389fd46a9896bdafd5a41f9f

diff --git a/net-dns/dnsdist/dnsdist-1.5.0.ebuild 
b/net-dns/dnsdist/dnsdist-1.5.0.ebuild
deleted file mode 100644
index f7f6d3cbc58..000
--- a/net-dns/dnsdist/dnsdist-1.5.0.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit eutils flag-o-matic
-
-DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
-HOMEPAGE="https://dnsdist.org;
-
-SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
-KEYWORDS="~amd64 ~x86"
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="dnscrypt dnstap doh gnutls +lmdb luajit regex remote-logging snmp +ssl 
systemd test"
-RESTRICT="!test? ( test )"
-REQUIRED_USE="dnscrypt? ( ssl )
-   gnutls? ( ssl )
-   doh? ( ssl !gnutls )"
-
-RDEPEND="acct-group/dnsdist
-   acct-user/dnsdist
-   >=dev-libs/boost-1.35:=
-   dev-libs/libedit:=
-   dnscrypt? ( dev-libs/libsodium:= )
-   dnstap? ( dev-libs/fstrm:= )
-   doh? ( www-servers/h2o:=[libh2o] )
-   lmdb? ( dev-db/lmdb:= )
-   luajit? ( dev-lang/luajit:= )
-   !luajit? ( >=dev-lang/lua-5.1:0= )
-   regex? ( dev-libs/re2:= )
-   remote-logging? ( >=dev-libs/protobuf-3:= )
-   snmp? ( net-analyzer/net-snmp:= )
-   ssl? (
-   gnutls? ( net-libs/gnutls:= )
-   !gnutls? ( dev-libs/openssl:= )
-   )
-   systemd? ( sys-apps/systemd:0= )
-"
-
-DEPEND="${RDEPEND}
-   virtual/pkgconfig
-"
-
-src_prepare() {
-   default
-}
-
-src_configure() {
-   econf \
-   --sysconfdir=/etc/dnsdist \
-   $(use_enable doh dns-over-https) \
-   $(use_enable dnscrypt) \
-   $(use_enable dnstap) \
-   $(use_with lmdb ) \
-   $(use luajit && echo "--with-lua=luajit" || echo 
"--with-lua=lua" ) \
-   $(use_with regex re2) \
-   $(use_with remote-logging protobuf) \
-   $(use_with snmp net-snmp) \
-   $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
-   $(use_enable systemd) \
-   $(use_enable test unit-tests)
-   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
-   -i "${S}/configure"
-}
-
-src_install() {
-   default
-
-   insinto /etc/dnsdist
-   doins "${FILESDIR}"/dnsdist.conf.example
-
-   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
-   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
-}
-
-pkg_postinst() {
-   elog "dnsdist provides multiple instances support. You can create more 
instances"
-   elog "by symlinking the dnsdist init script to another name."
-   elog
-   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
-   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
-}

diff --git a/net-dns/dnsdist/dnsdist-1.5.1.ebuild 
b/net-dns/dnsdist/dnsdist-1.5.1.ebuild
deleted file mode 100644
index f7f6d3cbc58..000
--- a/net-dns/dnsdist/dnsdist-1.5.1.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit eutils flag-o-matic
-
-DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/files/

2020-10-28 Thread Andreas Schuerch
commit: f89bb534cf4d0db8ce7068ccefaa3080f3f8392d
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Wed Oct 28 19:20:46 2020 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Wed Oct 28 19:21:44 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f89bb534

net-dns/dnsdist: fixed init script, bug 748510

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/files/dnsdist.initd | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/net-dns/dnsdist/files/dnsdist.initd 
b/net-dns/dnsdist/files/dnsdist.initd
index 554c43b0150..f1670c61338 100644
--- a/net-dns/dnsdist/files/dnsdist.initd
+++ b/net-dns/dnsdist/files/dnsdist.initd
@@ -31,9 +31,8 @@ start() {
 
ebegin "Starting dnsdist (${DNSDIST_INSTANCE})"
start-stop-daemon --start --exec $DNSDIST --pidfile ${PIDFILE} \
-   -b -m -- --supervised -u ${DNSDIST_USER} -g 
-${DNSDIST_GROUP} \
-   -C $DNSDIST_CONFFILE ${DNSDIST_OPTIONS}
+   -b -m -- --supervised -u ${DNSDIST_USER} \
+   -g ${DNSDIST_GROUP} -C $DNSDIST_CONFFILE ${DNSDIST_OPTIONS}
eend $?
 }
 



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2020-10-02 Thread Andreas Schuerch
commit: dff4d31f17860f1ac30f7e5c849d9a2a9e364941
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Fri Oct  2 13:24:19 2020 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Fri Oct  2 13:24:19 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dff4d31f

net-dns/dnsdist: version bump and remove old

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest   |   3 +-
 net-dns/dnsdist/dnsdist-1.3.3-r1.ebuild| 104 -
 .../{dnsdist-1.4.0.ebuild => dnsdist-1.5.1.ebuild} |  10 +-
 net-dns/dnsdist/metadata.xml   |   1 -
 4 files changed, 4 insertions(+), 114 deletions(-)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index 6d2a06fbff8..773ff1f17b9 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1,3 +1,2 @@
-DIST dnsdist-1.3.3.tar.bz2 971253 BLAKE2B 
e9c36969fc1e4b95b71a3f6885503aea2d527b4d9abce9cb137c290a21aee994a441c0e17c0bf985396fda51020b5ef910753554990259abb16641d93d2d1010
 SHA512 
c0e3435eafc1f7bcdf41346cecf7b089cc142716f94058f9ec262d0c6ad16467e0b8bed5abc648829c597120c94f998602849ded574e75bfc1a1fb70c1b719ad
-DIST dnsdist-1.4.0.tar.bz2 1044479 BLAKE2B 
79aef57ed2b1036f222e8bcfdf615c3221c9dfdbc8fd3f80d778fb050f74bc200958b4d605dcadd5c23ac6c4b5b1a36048108cd85394920e99d6037177b81342
 SHA512 
c9450e97325d8ad8c8c3a395412c46ea8053cbe1ebe73329a1618212ba29bdf2f8da908ae2b90c314b5aab613387f42363e3a5322b1a36f60190fb48e1c425c5
 DIST dnsdist-1.5.0.tar.bz2 1067645 BLAKE2B 
de07de8f862a633d8eb11ccf632e01c2ce779a35ef61ba2fcf932894d692f2f3edfd638ce77f178bbfbfc1115d8e76f5522e10061fcf61650170a5b59d5cc9ca
 SHA512 
df6f8caae001f152f0d264176c570778842979484d16e4199afe0e2591006392444245dd8ce23287cdcf9613e2c40a9e3564f5236e5f5a6fd67b89d6ea0d9ed4
+DIST dnsdist-1.5.1.tar.bz2 1068061 BLAKE2B 
1c0fdd181b62b96fcd433581715cea9dc204fcdd2f65efd26a5293cc9c17d904e0937b51ba33d2dc01ecc8044f491ba2c6c8720c0816587fa5082da73108783e
 SHA512 
68fe5f55fd081ed80a620933af9f8310be0e21c86ba449a9c557975b5c83f4b64e3002e6032dc002582d081e70e1ec2ff080c5d8389fd46a9896bdafd5a41f9f

diff --git a/net-dns/dnsdist/dnsdist-1.3.3-r1.ebuild 
b/net-dns/dnsdist/dnsdist-1.3.3-r1.ebuild
deleted file mode 100644
index 493fd0f5e4c..000
--- a/net-dns/dnsdist/dnsdist-1.3.3-r1.ebuild
+++ /dev/null
@@ -1,104 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-EGIT_REPO_URI="https://github.com/PowerDNS/pdns.git;
-
-if [[ ${PV} =  ]]; then
-   ADDITIONAL_ECLASSES="autotools git-r3"
-fi
-
-inherit eutils flag-o-matic user ${ADDITIONAL_ECLASSES}
-
-DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
-HOMEPAGE="https://dnsdist.org;
-
-if [[ ${PV} ==  ]]; then
-   SRC_URI=""
-   S="${WORKDIR}/${P}/pdns/dnsdistdist"
-else
-   SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
-   KEYWORDS="~amd64 ~x86"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="dnscrypt gnutls fstrm luajit regex remote-logging snmp +ssl systemd test"
-RESTRICT="!test? ( test )"
-REQUIRED_USE="dnscrypt? ( ssl )
-   gnutls? ( ssl )"
-
-RDEPEND="
-   >=dev-libs/boost-1.35:=
-   dev-libs/libedit:=
-   fstrm? ( dev-libs/fstrm:= )
-   luajit? ( dev-lang/luajit:= )
-   !luajit? ( >=dev-lang/lua-5.1:= )
-   remote-logging? ( >=dev-libs/protobuf-3:= )
-   regex? ( dev-libs/re2:= )
-   snmp? ( net-analyzer/net-snmp:= )
-   ssl? (
-   dev-libs/libsodium:=
-   gnutls? ( net-libs/gnutls:= )
-   !gnutls? ( dev-libs/openssl:= )
-   )
-   systemd? ( sys-apps/systemd:0= )
-"
-
-DEPEND="${RDEPEND}
-   virtual/pkgconfig
-"
-
-[[ ${PV} ==  ]] && DEPEND+="
-   app-text/pandoc
-   dev-util/ragel
-   dev-python/virtualenv
-"
-
-src_prepare() {
-   default
-   [[ ${PV} ==  ]] && eautoreconf
-}
-
-src_configure() {
-   econf \
-   --sysconfdir=/etc/dnsdist \
-   $(use_enable dnscrypt) \
-   $(use_enable fstrm) \
-   $(use luajit && echo "--with-lua=luajit" || echo 
"--with-lua=lua" ) \
-   $(use_enable regex re2) \
-   $(use_with remote-logging protobuf) \
-   $(use_with snmp net-snmp) \
-   $(use_enable ssl libsodium) \
-   $(use ssl && { echo "--enable-dns-over-tls" && use_enable 
gnutls && use_enable !gnutls libssl;} || echo "--disable-gnutls 
--disable-libssl") \
-   $(use_enable systemd) \
-   $(use_enable test unit-tests)
-   if [ ${PV} == "1.3.3" ]; then
-   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
-   -i "${S}/configure"
-   fi
-}
-
-src_install() {
-   default
-
-   

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/files/, net-dns/dnsdist/

2020-07-31 Thread Andreas Schuerch
commit: b7fb560859a6a7f42ec0517ec2ee19e5f1f99172
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Fri Jul 31 08:12:13 2020 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Fri Jul 31 08:13:21 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7fb5608

net-dns/dnsdist: version bump to 1.5.0 and bug 711454

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest |  1 +
 net-dns/dnsdist/dnsdist-1.5.0.ebuild | 84 
 net-dns/dnsdist/files/dnsdist.initd  |  5 ++-
 3 files changed, 88 insertions(+), 2 deletions(-)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index c3750fa2697..6d2a06fbff8 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1,2 +1,3 @@
 DIST dnsdist-1.3.3.tar.bz2 971253 BLAKE2B 
e9c36969fc1e4b95b71a3f6885503aea2d527b4d9abce9cb137c290a21aee994a441c0e17c0bf985396fda51020b5ef910753554990259abb16641d93d2d1010
 SHA512 
c0e3435eafc1f7bcdf41346cecf7b089cc142716f94058f9ec262d0c6ad16467e0b8bed5abc648829c597120c94f998602849ded574e75bfc1a1fb70c1b719ad
 DIST dnsdist-1.4.0.tar.bz2 1044479 BLAKE2B 
79aef57ed2b1036f222e8bcfdf615c3221c9dfdbc8fd3f80d778fb050f74bc200958b4d605dcadd5c23ac6c4b5b1a36048108cd85394920e99d6037177b81342
 SHA512 
c9450e97325d8ad8c8c3a395412c46ea8053cbe1ebe73329a1618212ba29bdf2f8da908ae2b90c314b5aab613387f42363e3a5322b1a36f60190fb48e1c425c5
+DIST dnsdist-1.5.0.tar.bz2 1067645 BLAKE2B 
de07de8f862a633d8eb11ccf632e01c2ce779a35ef61ba2fcf932894d692f2f3edfd638ce77f178bbfbfc1115d8e76f5522e10061fcf61650170a5b59d5cc9ca
 SHA512 
df6f8caae001f152f0d264176c570778842979484d16e4199afe0e2591006392444245dd8ce23287cdcf9613e2c40a9e3564f5236e5f5a6fd67b89d6ea0d9ed4

diff --git a/net-dns/dnsdist/dnsdist-1.5.0.ebuild 
b/net-dns/dnsdist/dnsdist-1.5.0.ebuild
new file mode 100644
index 000..b36be988dc3
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.5.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="https://dnsdist.org;
+
+SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="dnscrypt dnstap doh gnutls +lmdb luajit regex remote-logging snmp +ssl 
systemd test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="dnscrypt? ( ssl )
+   gnutls? ( ssl )
+   doh? ( ssl !gnutls )"
+
+RDEPEND="acct-group/dnsdist
+   acct-user/dnsdist
+   >=dev-libs/boost-1.35:=
+   dev-libs/libedit:=
+   dnscrypt? ( dev-libs/libsodium:= )
+   dnstap? ( dev-libs/fstrm:= )
+   doh? ( www-servers/h2o:=[libh2o] )
+   lmdb? ( dev-db/lmdb:= )
+   luajit? ( dev-lang/luajit:= )
+   !luajit? ( >=dev-lang/lua-5.1:= )
+   regex? ( dev-libs/re2:= )
+   remote-logging? ( >=dev-libs/protobuf-3:= )
+   snmp? ( net-analyzer/net-snmp:= )
+   ssl? (
+   gnutls? ( net-libs/gnutls:= )
+   !gnutls? ( dev-libs/openssl:= )
+   )
+   systemd? ( sys-apps/systemd:0= )
+"
+
+DEPEND="${RDEPEND}
+   virtual/pkgconfig
+"
+
+src_prepare() {
+   default
+}
+
+src_configure() {
+   econf \
+   --sysconfdir=/etc/dnsdist \
+   $(use_enable doh dns-over-https) \
+   $(use_enable dnscrypt) \
+   $(use_enable dnstap) \
+   $(use_with lmdb ) \
+   $(use luajit && echo "--with-lua=luajit" || echo 
"--with-lua=lua" ) \
+   $(use_with regex re2) \
+   $(use_with remote-logging protobuf) \
+   $(use_with snmp net-snmp) \
+   $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
+   $(use_enable systemd) \
+   $(use_enable test unit-tests)
+   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
+   -i "${S}/configure"
+}
+
+src_install() {
+   default
+
+   insinto /etc/dnsdist
+   doins "${FILESDIR}"/dnsdist.conf.example
+
+   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
+   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
+}
+
+pkg_postinst() {
+   elog "dnsdist provides multiple instances support. You can create more 
instances"
+   elog "by symlinking the dnsdist init script to another name."
+   elog
+   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
+   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
+}

diff --git a/net-dns/dnsdist/files/dnsdist.initd 
b/net-dns/dnsdist/files/dnsdist.initd
index f15a6d9e6a4..554c43b0150 100644
--- a/net-dns/dnsdist/files/dnsdist.initd
+++ 

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2020-01-15 Thread Andreas Schuerch
commit: b022a4b475735f88cf8e61ea9d949600c33fdb36
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Wed Jan 15 10:26:40 2020 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Wed Jan 15 10:26:40 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b022a4b4

net-dns/dnsdist: version bump, remove 

Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest   |  1 +
 .../{dnsdist-.ebuild => dnsdist-1.4.0.ebuild}  | 52 --
 net-dns/dnsdist/metadata.xml   |  3 ++
 3 files changed, 22 insertions(+), 34 deletions(-)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index 52184b556f1..c3750fa2697 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1 +1,2 @@
 DIST dnsdist-1.3.3.tar.bz2 971253 BLAKE2B 
e9c36969fc1e4b95b71a3f6885503aea2d527b4d9abce9cb137c290a21aee994a441c0e17c0bf985396fda51020b5ef910753554990259abb16641d93d2d1010
 SHA512 
c0e3435eafc1f7bcdf41346cecf7b089cc142716f94058f9ec262d0c6ad16467e0b8bed5abc648829c597120c94f998602849ded574e75bfc1a1fb70c1b719ad
+DIST dnsdist-1.4.0.tar.bz2 1044479 BLAKE2B 
79aef57ed2b1036f222e8bcfdf615c3221c9dfdbc8fd3f80d778fb050f74bc200958b4d605dcadd5c23ac6c4b5b1a36048108cd85394920e99d6037177b81342
 SHA512 
c9450e97325d8ad8c8c3a395412c46ea8053cbe1ebe73329a1618212ba29bdf2f8da908ae2b90c314b5aab613387f42363e3a5322b1a36f60190fb48e1c425c5

diff --git a/net-dns/dnsdist/dnsdist-.ebuild 
b/net-dns/dnsdist/dnsdist-1.4.0.ebuild
similarity index 59%
rename from net-dns/dnsdist/dnsdist-.ebuild
rename to net-dns/dnsdist/dnsdist-1.4.0.ebuild
index 493fd0f5e4c..dae9b523e36 100644
--- a/net-dns/dnsdist/dnsdist-.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.4.0.ebuild
@@ -1,45 +1,37 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-EGIT_REPO_URI="https://github.com/PowerDNS/pdns.git;
-
-if [[ ${PV} =  ]]; then
-   ADDITIONAL_ECLASSES="autotools git-r3"
-fi
-
-inherit eutils flag-o-matic user ${ADDITIONAL_ECLASSES}
+inherit eutils flag-o-matic user
 
 DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
 HOMEPAGE="https://dnsdist.org;
 
-if [[ ${PV} ==  ]]; then
-   SRC_URI=""
-   S="${WORKDIR}/${P}/pdns/dnsdistdist"
-else
-   SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
-   KEYWORDS="~amd64 ~x86"
-fi
+SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+KEYWORDS="~amd64 ~x86"
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="dnscrypt gnutls fstrm luajit regex remote-logging snmp +ssl systemd test"
+IUSE="dnscrypt dnstap doh gnutls +lmdb luajit regex remote-logging snmp +ssl 
systemd test"
 RESTRICT="!test? ( test )"
 REQUIRED_USE="dnscrypt? ( ssl )
-   gnutls? ( ssl )"
+   gnutls? ( ssl )
+   doh? ( ssl !gnutls )"
 
 RDEPEND="
>=dev-libs/boost-1.35:=
dev-libs/libedit:=
-   fstrm? ( dev-libs/fstrm:= )
+   dnscrypt? ( dev-libs/libsodium:= )
+   dnstap? ( dev-libs/fstrm:= )
+   doh? ( www-servers/h2o:=[libh2o] )
+   lmdb? ( dev-db/lmdb:= )
luajit? ( dev-lang/luajit:= )
!luajit? ( >=dev-lang/lua-5.1:= )
-   remote-logging? ( >=dev-libs/protobuf-3:= )
regex? ( dev-libs/re2:= )
+   remote-logging? ( >=dev-libs/protobuf-3:= )
snmp? ( net-analyzer/net-snmp:= )
ssl? (
-   dev-libs/libsodium:=
gnutls? ( net-libs/gnutls:= )
!gnutls? ( dev-libs/openssl:= )
)
@@ -50,34 +42,26 @@ DEPEND="${RDEPEND}
virtual/pkgconfig
 "
 
-[[ ${PV} ==  ]] && DEPEND+="
-   app-text/pandoc
-   dev-util/ragel
-   dev-python/virtualenv
-"
-
 src_prepare() {
default
-   [[ ${PV} ==  ]] && eautoreconf
 }
 
 src_configure() {
econf \
--sysconfdir=/etc/dnsdist \
+   $(use_enable doh dns-over-https) \
$(use_enable dnscrypt) \
-   $(use_enable fstrm) \
+   $(use_enable dnstap) \
+   $(use_with lmdb ) \
$(use luajit && echo "--with-lua=luajit" || echo 
"--with-lua=lua" ) \
-   $(use_enable regex re2) \
+   $(use_with regex re2) \
$(use_with remote-logging protobuf) \
$(use_with snmp net-snmp) \
-   $(use_enable ssl libsodium) \
-   $(use ssl && { echo "--enable-dns-over-tls" && use_enable 
gnutls && use_enable !gnutls libssl;} || echo "--disable-gnutls 
--disable-libssl") \
+   $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
$(use_enable systemd) \
$(use_enable test unit-tests)
-   if [ ${PV} == "1.3.3" ]; then
- 

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/files/

2019-05-09 Thread Andreas Schuerch
commit: 04922c2f9787d71461f5f8f39926c74aa8823595
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Thu May  9 18:33:52 2019 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Thu May  9 18:35:08 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04922c2f

net-dns/dnsdist: initscript fix

Signed-off-by: Andreas Schuerch  gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 net-dns/dnsdist/files/dnsdist.initd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-dns/dnsdist/files/dnsdist.initd 
b/net-dns/dnsdist/files/dnsdist.initd
index 17c86ca431d..f15a6d9e6a4 100644
--- a/net-dns/dnsdist/files/dnsdist.initd
+++ b/net-dns/dnsdist/files/dnsdist.initd
@@ -31,7 +31,7 @@ start() {
 
ebegin "Starting dnsdist (${DNSDIST_INSTANCE})"
start-stop-daemon --start --exec $DNSDIST --pidfile ${PIDFILE} \
-   -b -- -u ${DNSDIST_USER} -g ${DNSDIST_GROUP} \
+   -b -- --supervised -u ${DNSDIST_USER} -g ${DNSDIST_GROUP} \
-C $DNSDIST_CONFFILE ${DNSDIST_OPTIONS}
eend $?
 }



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/files/, net-dns/dnsdist/

2019-03-30 Thread Andreas Schuerch
commit: 198b4ec0e6d0d24464a31896012aa358c8beb941
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Sat Mar 30 10:00:21 2019 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Sat Mar 30 10:02:12 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=198b4ec0

net-dns/dnsdist: added useflags bug 672516 and initscript changes

Signed-off-by: Andreas Schuerch  gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 net-dns/dnsdist/{dnsdist-1.3.3.ebuild => dnsdist-1.3.3-r1.ebuild} | 7 +--
 net-dns/dnsdist/dnsdist-.ebuild   | 7 +--
 net-dns/dnsdist/files/dnsdist.initd   | 8 
 3 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/net-dns/dnsdist/dnsdist-1.3.3.ebuild 
b/net-dns/dnsdist/dnsdist-1.3.3-r1.ebuild
similarity index 97%
rename from net-dns/dnsdist/dnsdist-1.3.3.ebuild
rename to net-dns/dnsdist/dnsdist-1.3.3-r1.ebuild
index b13e2bdae49..ed3b96e1ed6 100644
--- a/net-dns/dnsdist/dnsdist-1.3.3.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.3.3-r1.ebuild
@@ -28,7 +28,7 @@ IUSE="dnscrypt gnutls fstrm luajit regex remote-logging snmp 
+ssl systemd test"
 REQUIRED_USE="dnscrypt? ( ssl )
gnutls? ( ssl )"
 
-DEPEND="
+RDEPEND="
>=dev-libs/boost-1.35:=
dev-libs/libedit:=
fstrm? ( dev-libs/fstrm:= )
@@ -45,11 +45,14 @@ DEPEND="
systemd? ( sys-apps/systemd:0= )
 "
 
-RDEPEND="${DEPEND}"
+DEPEND="${RDEPEND}
+   virtual/pkgconfig
+"
 
 [[ ${PV} ==  ]] && DEPEND+="
app-text/pandoc
dev-util/ragel
+   dev-python/virtualenv
 "
 
 src_prepare() {

diff --git a/net-dns/dnsdist/dnsdist-.ebuild 
b/net-dns/dnsdist/dnsdist-.ebuild
index b13e2bdae49..ed3b96e1ed6 100644
--- a/net-dns/dnsdist/dnsdist-.ebuild
+++ b/net-dns/dnsdist/dnsdist-.ebuild
@@ -28,7 +28,7 @@ IUSE="dnscrypt gnutls fstrm luajit regex remote-logging snmp 
+ssl systemd test"
 REQUIRED_USE="dnscrypt? ( ssl )
gnutls? ( ssl )"
 
-DEPEND="
+RDEPEND="
>=dev-libs/boost-1.35:=
dev-libs/libedit:=
fstrm? ( dev-libs/fstrm:= )
@@ -45,11 +45,14 @@ DEPEND="
systemd? ( sys-apps/systemd:0= )
 "
 
-RDEPEND="${DEPEND}"
+DEPEND="${RDEPEND}
+   virtual/pkgconfig
+"
 
 [[ ${PV} ==  ]] && DEPEND+="
app-text/pandoc
dev-util/ragel
+   dev-python/virtualenv
 "
 
 src_prepare() {

diff --git a/net-dns/dnsdist/files/dnsdist.initd 
b/net-dns/dnsdist/files/dnsdist.initd
index bfeef82d46f..17c86ca431d 100644
--- a/net-dns/dnsdist/files/dnsdist.initd
+++ b/net-dns/dnsdist/files/dnsdist.initd
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 extra_commands="configcheck"
@@ -25,14 +25,14 @@ depend() {
 }
 
 start() {
-   checkpath -q -d ${PIDDIR} -o ${DNSDIST_USER}:${DNSDIST_GROUP} 
+   checkpath -q -d ${PIDDIR} -o ${DNSDIST_USER}:${DNSDIST_GROUP}
 
configcheck || return 1
 
ebegin "Starting dnsdist (${DNSDIST_INSTANCE})"
start-stop-daemon --start --exec $DNSDIST --pidfile ${PIDFILE} \
-   -- -d -p ${PIDFILE} -u ${DNSDIST_USER} -g ${DNSDIST_GROUP} \
-   -C $DNSDIST_CONFFILE ${DNSDIST_OPTIONS} 
+   -b -- -u ${DNSDIST_USER} -g ${DNSDIST_GROUP} \
+   -C $DNSDIST_CONFFILE ${DNSDIST_OPTIONS}
eend $?
 }
 



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2019-03-28 Thread Andreas Schuerch
commit: b22e01fdbd14ba264f89dd1cfd7630ca6a8bcd29
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Thu Mar 28 20:17:47 2019 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Thu Mar 28 20:40:02 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b22e01fd

net-dns/dnsdist: new maintainer, bump, remove old, new useflags

Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest   |  2 +-
 .../{dnsdist-1.2.0.ebuild => dnsdist-1.3.3.ebuild} | 38 +++---
 net-dns/dnsdist/dnsdist-.ebuild| 38 +++---
 net-dns/dnsdist/metadata.xml   |  9 ++---
 4 files changed, 56 insertions(+), 31 deletions(-)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index d67dcea2a2d..52184b556f1 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1 +1 @@
-DIST dnsdist-1.2.0.tar.bz2 876104 BLAKE2B 
6e9d0f871c63a0aae539ae074648edcd6b9d626434c343b28c45cf16ffb6b088300d5327e04c45dbb1c9a0b9ad6077d539dc36ae0424d1ec0a240932e8b34223
 SHA512 
93f8c5f18462d3291c973a690f6ac2b3c5791d9947bee83d9250b503b7526de365bdcb530f3b082e51ae168a9129e77d5558af7cc3b9d2e98a585af53783c237
+DIST dnsdist-1.3.3.tar.bz2 971253 BLAKE2B 
e9c36969fc1e4b95b71a3f6885503aea2d527b4d9abce9cb137c290a21aee994a441c0e17c0bf985396fda51020b5ef910753554990259abb16641d93d2d1010
 SHA512 
c0e3435eafc1f7bcdf41346cecf7b089cc142716f94058f9ec262d0c6ad16467e0b8bed5abc648829c597120c94f998602849ded574e75bfc1a1fb70c1b719ad

diff --git a/net-dns/dnsdist/dnsdist-1.2.0.ebuild 
b/net-dns/dnsdist/dnsdist-1.3.3.ebuild
similarity index 64%
rename from net-dns/dnsdist/dnsdist-1.2.0.ebuild
rename to net-dns/dnsdist/dnsdist-1.3.3.ebuild
index 81f8dbfc0f8..b13e2bdae49 100644
--- a/net-dns/dnsdist/dnsdist-1.2.0.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.3.3.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 EGIT_REPO_URI="https://github.com/PowerDNS/pdns.git;
 
@@ -24,18 +24,25 @@ fi
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="dnscrypt luajit regex remote-logging snmp +ssl test"
-REQUIRED_USE="dnscrypt? ( ssl )"
+IUSE="dnscrypt gnutls fstrm luajit regex remote-logging snmp +ssl systemd test"
+REQUIRED_USE="dnscrypt? ( ssl )
+   gnutls? ( ssl )"
 
 DEPEND="
>=dev-libs/boost-1.35:=
dev-libs/libedit:=
+   fstrm? ( dev-libs/fstrm:= )
luajit? ( dev-lang/luajit:= )
!luajit? ( >=dev-lang/lua-5.1:= )
-   remote-logging? ( dev-libs/protobuf:= )
+   remote-logging? ( >=dev-libs/protobuf-3:= )
regex? ( dev-libs/re2:= )
snmp? ( net-analyzer/net-snmp:= )
-   ssl? ( dev-libs/libsodium:= )
+   ssl? (
+   dev-libs/libsodium:=
+   gnutls? ( net-libs/gnutls:= )
+   !gnutls? ( dev-libs/openssl:= )
+   )
+   systemd? ( sys-apps/systemd:0= )
 "
 
 RDEPEND="${DEPEND}"
@@ -53,13 +60,20 @@ src_prepare() {
 src_configure() {
econf \
--sysconfdir=/etc/dnsdist \
-   $(use_enable ssl libsodium) \
-   $(use_with remote-logging protobuf) \
-   $(use_enable regex re2) \
$(use_enable dnscrypt) \
-   $(use_with luajit) \
-   $(use_enable test unit-tests) \
-   $(use_with snmp net-snmp)
+   $(use_enable fstrm) \
+   $(use luajit && echo "--with-lua=luajit" || echo 
"--with-lua=lua" ) \
+   $(use_enable regex re2) \
+   $(use_with remote-logging protobuf) \
+   $(use_with snmp net-snmp) \
+   $(use_enable ssl libsodium) \
+   $(use ssl && { echo "--enable-dns-over-tls" && use_enable 
gnutls && use_enable !gnutls libssl;} || echo "--disable-gnutls 
--disable-libssl") \
+   $(use_enable systemd) \
+   $(use_enable test unit-tests)
+   if [ ${PV} == "1.3.3" ]; then
+   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
+   -i "${S}/configure"
+   fi
 }
 
 src_install() {

diff --git a/net-dns/dnsdist/dnsdist-.ebuild 
b/net-dns/dnsdist/dnsdist-.ebuild
index 81f8dbfc0f8..b13e2bdae49 100644
--- a/net-dns/dnsdist/dnsdist-.ebuild
+++ b/net-dns/dnsdist/dnsdist-.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 EGIT_REPO_URI="https://github.com/PowerDNS/pdns.git;
 
@@ -24,18 +24,25 @@ fi
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="dnscrypt luajit regex remote-logging snmp +ssl test"
-REQUIRED_USE="dnscrypt? ( ssl )"
+IUSE="dnscrypt gnutls fstrm luajit regex 

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2018-04-05 Thread Aaron Bauman
commit: 9c262c2fec682743a02557699178ace255a258bd
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Fri Mar 30 20:35:25 2018 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Thu Apr  5 15:17:27 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c262c2f

net-dns/dnsdist: use HTTPS

Closes: https://github.com/gentoo/gentoo/pull/7725

 net-dns/dnsdist/dnsdist-1.2.0.ebuild | 4 ++--
 net-dns/dnsdist/dnsdist-.ebuild  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/net-dns/dnsdist/dnsdist-1.2.0.ebuild 
b/net-dns/dnsdist/dnsdist-1.2.0.ebuild
index 75b3d1113da..81f8dbfc0f8 100644
--- a/net-dns/dnsdist/dnsdist-1.2.0.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.2.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -12,7 +12,7 @@ fi
 inherit eutils flag-o-matic user ${ADDITIONAL_ECLASSES}
 
 DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
-HOMEPAGE="http://dnsdist.org;
+HOMEPAGE="https://dnsdist.org;
 
 if [[ ${PV} ==  ]]; then
SRC_URI=""

diff --git a/net-dns/dnsdist/dnsdist-.ebuild 
b/net-dns/dnsdist/dnsdist-.ebuild
index 75b3d1113da..81f8dbfc0f8 100644
--- a/net-dns/dnsdist/dnsdist-.ebuild
+++ b/net-dns/dnsdist/dnsdist-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -12,7 +12,7 @@ fi
 inherit eutils flag-o-matic user ${ADDITIONAL_ECLASSES}
 
 DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
-HOMEPAGE="http://dnsdist.org;
+HOMEPAGE="https://dnsdist.org;
 
 if [[ ${PV} ==  ]]; then
SRC_URI=""



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2017-10-28 Thread Patrice Clement
commit: 1c50a5d191b47143338b15a86ce6e36fd1b7abca
Author: bgo  9dt  de>
AuthorDate: Sat Sep  2 16:44:59 2017 +
Commit: Patrice Clement  gentoo  org>
CommitDate: Sat Oct 28 09:52:07 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c50a5d1

net-dns/dnsdist: version bump to 1.2.0.

Bug: https://bugs.gentoo.org/628534
Bug: https://bugs.gentoo.org/628578
Package-Manager: Portage-2.3.8, Repoman-2.3.3

 net-dns/dnsdist/Manifest |  2 +-
 net-dns/dnsdist/dnsdist-1.2.0.ebuild | 86 
 2 files changed, 87 insertions(+), 1 deletion(-)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index 83b82a38f36..e064a7a1c5f 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1 +1 @@
-DIST dnsdist-1.1.0.tar.bz2 874837 SHA256 
b4a1e8931b6d05a24494f54224211c0de0eeb1f5ff170f6b9f5665219bfeafc2 SHA512 
91da716997c2440e153944f510a39dd86c9cf8ba8093a7f51a9a5d58ab0a1c230bd99ec57fe8ff0721279c8c4429ad576fe797c1fbe4cde2b9fb8f0405025320
 WHIRLPOOL 
6d88f4159b8155c9600af94e6e8401c426f183102a18b3f35fc066b8a19d781f5800a2aa64d306ab4ee0daadbaaab1d29b2df05c10058a9b99b9d9cf1abf071e
+DIST dnsdist-1.2.0.tar.bz2 876104 SHA256 
9885c9ee8ac7076aede586ea58d4642eb877e7b2d76c902254494e2a5a5faa78 SHA512 
93f8c5f18462d3291c973a690f6ac2b3c5791d9947bee83d9250b503b7526de365bdcb530f3b082e51ae168a9129e77d5558af7cc3b9d2e98a585af53783c237
 WHIRLPOOL 
bec3f7a5174dc7dec71724bb274b3cd02261b666c853bee3a8cce7695fb082cdd09bf28545b7c54355c5d3e15bea33c49ff2f7c0821324e46435efc2ecaba615

diff --git a/net-dns/dnsdist/dnsdist-1.2.0.ebuild 
b/net-dns/dnsdist/dnsdist-1.2.0.ebuild
new file mode 100644
index 000..75b3d1113da
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.2.0.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://github.com/PowerDNS/pdns.git;
+
+if [[ ${PV} =  ]]; then
+   ADDITIONAL_ECLASSES="autotools git-r3"
+fi
+
+inherit eutils flag-o-matic user ${ADDITIONAL_ECLASSES}
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="http://dnsdist.org;
+
+if [[ ${PV} ==  ]]; then
+   SRC_URI=""
+   S="${WORKDIR}/${P}/pdns/dnsdistdist"
+else
+   SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+   KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="dnscrypt luajit regex remote-logging snmp +ssl test"
+REQUIRED_USE="dnscrypt? ( ssl )"
+
+DEPEND="
+   >=dev-libs/boost-1.35:=
+   dev-libs/libedit:=
+   luajit? ( dev-lang/luajit:= )
+   !luajit? ( >=dev-lang/lua-5.1:= )
+   remote-logging? ( dev-libs/protobuf:= )
+   regex? ( dev-libs/re2:= )
+   snmp? ( net-analyzer/net-snmp:= )
+   ssl? ( dev-libs/libsodium:= )
+"
+
+RDEPEND="${DEPEND}"
+
+[[ ${PV} ==  ]] && DEPEND+="
+   app-text/pandoc
+   dev-util/ragel
+"
+
+src_prepare() {
+   default
+   [[ ${PV} ==  ]] && eautoreconf
+}
+
+src_configure() {
+   econf \
+   --sysconfdir=/etc/dnsdist \
+   $(use_enable ssl libsodium) \
+   $(use_with remote-logging protobuf) \
+   $(use_enable regex re2) \
+   $(use_enable dnscrypt) \
+   $(use_with luajit) \
+   $(use_enable test unit-tests) \
+   $(use_with snmp net-snmp)
+}
+
+src_install() {
+   default
+
+   insinto /etc/dnsdist
+   doins "${FILESDIR}"/dnsdist.conf.example
+
+   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
+   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
+}
+
+pkg_preinst() {
+   enewgroup dnsdist
+   enewuser dnsdist -1 -1 -1 dnsdist
+}
+
+pkg_postinst() {
+   elog "dnsdist provides multiple instances support. You can create more 
instances"
+   elog "by symlinking the dnsdist init script to another name."
+   elog
+   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
+   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
+}



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2017-10-28 Thread Patrice Clement
commit: e40b9b455b925425198ed2d250fc997b3bc56b94
Author: bgo  9dt  de>
AuthorDate: Sat Sep  2 16:43:53 2017 +
Commit: Patrice Clement  gentoo  org>
CommitDate: Sat Oct 28 09:51:50 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e40b9b45

net-dns/dnsdist: remove vulnerable version.

CVE-2016-7069
CVE-2017-7557

Bug: https://bugs.gentoo.org/628534
Bug: https://bugs.gentoo.org/628578

Closes: https://github.com/gentoo/gentoo/pull/5596

 net-dns/dnsdist/dnsdist-1.1.0-r1.ebuild | 84 -
 1 file changed, 84 deletions(-)

diff --git a/net-dns/dnsdist/dnsdist-1.1.0-r1.ebuild 
b/net-dns/dnsdist/dnsdist-1.1.0-r1.ebuild
deleted file mode 100644
index 765c8a19663..000
--- a/net-dns/dnsdist/dnsdist-1.1.0-r1.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-EGIT_REPO_URI="https://github.com/PowerDNS/pdns.git;
-
-if [[ ${PV} =  ]]; then
-   ADDITIONAL_ECLASSES="autotools git-r3"
-fi
-
-inherit eutils flag-o-matic user ${ADDITIONAL_ECLASSES}
-
-DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
-HOMEPAGE="http://dnsdist.org;
-
-if [[ ${PV} ==  ]]; then
-   SRC_URI=""
-   S="${WORKDIR}/${P}/pdns/dnsdistdist"
-else
-   SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
-   KEYWORDS="~amd64 ~x86"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="dnscrypt luajit regex remote-logging +ssl test"
-REQUIRED_USE="dnscrypt? ( ssl )"
-
-DEPEND="
-   >=dev-libs/boost-1.35:=
-   dev-libs/libedit:=
-   luajit? ( dev-lang/luajit:= )
-   !luajit? ( >=dev-lang/lua-5.1:= )
-   remote-logging? ( dev-libs/protobuf:= )
-   regex? ( dev-libs/re2:= )
-   ssl? ( dev-libs/libsodium:= )
-"
-
-RDEPEND="${DEPEND}"
-
-[[ ${PV} ==  ]] && DEPEND+="
-   app-text/pandoc
-   dev-util/ragel
-"
-
-src_prepare() {
-   default
-   [[ ${PV} ==  ]] && eautoreconf
-}
-
-src_configure() {
-   econf \
-   --sysconfdir=/etc/dnsdist \
-   $(use_enable ssl libsodium) \
-   $(use_with remote-logging protobuf) \
-   $(use_enable regex re2) \
-   $(use_enable dnscrypt) \
-   $(use_with luajit) \
-   $(use_enable test unit-tests)
-}
-
-src_install() {
-   default
-
-   insinto /etc/dnsdist
-   doins "${FILESDIR}"/dnsdist.conf.example
-
-   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
-   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
-}
-
-pkg_preinst() {
-   enewgroup dnsdist
-   enewuser dnsdist -1 -1 -1 dnsdist
-}
-
-pkg_postinst() {
-   elog "dnsdist provides multiple instances support. You can create more 
instances"
-   elog "by symlinking the dnsdist init script to another name."
-   elog
-   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
-   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
-}



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/

2017-06-30 Thread Michał Górny
commit: 2cad26e8e9270fc545baea4345a8238d949b9004
Author: bgo  9dt  de>
AuthorDate: Wed Jun 14 14:26:35 2017 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Jun 30 20:17:32 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cad26e8

net-dns/dnsdist: add ~x86 keyword

Closes: https://github.com/gentoo/gentoo/pull/4931

 net-dns/dnsdist/dnsdist-1.1.0-r1.ebuild | 2 +-
 net-dns/dnsdist/dnsdist-.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-dns/dnsdist/dnsdist-1.1.0-r1.ebuild 
b/net-dns/dnsdist/dnsdist-1.1.0-r1.ebuild
index 074be54e645..765c8a19663 100644
--- a/net-dns/dnsdist/dnsdist-1.1.0-r1.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.1.0-r1.ebuild
@@ -19,7 +19,7 @@ if [[ ${PV} ==  ]]; then
S="${WORKDIR}/${P}/pdns/dnsdistdist"
 else
SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
-   KEYWORDS="~amd64"
+   KEYWORDS="~amd64 ~x86"
 fi
 
 LICENSE="GPL-2"

diff --git a/net-dns/dnsdist/dnsdist-.ebuild 
b/net-dns/dnsdist/dnsdist-.ebuild
index 10e8fc26584..75b3d1113da 100644
--- a/net-dns/dnsdist/dnsdist-.ebuild
+++ b/net-dns/dnsdist/dnsdist-.ebuild
@@ -19,7 +19,7 @@ if [[ ${PV} ==  ]]; then
S="${WORKDIR}/${P}/pdns/dnsdistdist"
 else
SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
-   KEYWORDS="~amd64"
+   KEYWORDS="~amd64 ~x86"
 fi
 
 LICENSE="GPL-2"



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/, net-dns/dnsdist/files/

2017-06-14 Thread Michał Górny
commit: e5a542cc6b37b5cc2f02c228118ec9db7a0bba3a
Author: bgo  9dt  de>
AuthorDate: Tue Jun 13 13:14:27 2017 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Jun 14 07:48:43 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5a542cc

net-dns/dnsdist: drop readline support

Closes: https://github.com/gentoo/gentoo/pull/4921

 ...nsdist-1.1.0.ebuild => dnsdist-1.1.0-r1.ebuild} | 21 +++---
 net-dns/dnsdist/dnsdist-.ebuild| 21 +++---
 net-dns/dnsdist/files/dnsdist-readline.patch   | 25 --
 3 files changed, 6 insertions(+), 61 deletions(-)

diff --git a/net-dns/dnsdist/dnsdist-1.1.0.ebuild 
b/net-dns/dnsdist/dnsdist-1.1.0-r1.ebuild
similarity index 77%
rename from net-dns/dnsdist/dnsdist-1.1.0.ebuild
rename to net-dns/dnsdist/dnsdist-1.1.0-r1.ebuild
index 4b025151e37..074be54e645 100644
--- a/net-dns/dnsdist/dnsdist-1.1.0.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.1.0-r1.ebuild
@@ -24,17 +24,15 @@ fi
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="dnscrypt luajit readline regex remote-logging +ssl test"
-RESTRICT="readline? ( bindist )"
+IUSE="dnscrypt luajit regex remote-logging +ssl test"
 REQUIRED_USE="dnscrypt? ( ssl )"
 
 DEPEND="
>=dev-libs/boost-1.35:=
+   dev-libs/libedit:=
luajit? ( dev-lang/luajit:= )
!luajit? ( >=dev-lang/lua-5.1:= )
remote-logging? ( dev-libs/protobuf:= )
-   readline? ( sys-libs/readline:0= )
-   !readline? ( dev-libs/libedit:= )
regex? ( dev-libs/re2:= )
ssl? ( dev-libs/libsodium:= )
 "
@@ -47,19 +45,11 @@ RDEPEND="${DEPEND}"
 "
 
 src_prepare() {
-   eapply "${FILESDIR}/${PN}-readline.patch"
-   eapply_user
-
+   default
[[ ${PV} ==  ]] && eautoreconf
 }
 
 src_configure() {
-   if use readline ; then
-   local -x LIBEDIT_CFLAGS="-I/usr/include/readline"
-   local -x LIBEDIT_LIBS="-lreadline -lcurses"
-   append-cxxflags -DREADLINE
-   fi
-
econf \
--sysconfdir=/etc/dnsdist \
$(use_enable ssl libsodium) \
@@ -91,9 +81,4 @@ pkg_postinst() {
elog
elog "The name must be in the format dnsdist. and dnsdist will 
use the"
elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
-
-   if use readline ; then
-   ewarn "dnsdist (GPLv2) was linked against readline (GPLv3)."
-   ewarn "A binary distribution should therefore not happen."
-   fi
 }

diff --git a/net-dns/dnsdist/dnsdist-.ebuild 
b/net-dns/dnsdist/dnsdist-.ebuild
index a0571422096..10e8fc26584 100644
--- a/net-dns/dnsdist/dnsdist-.ebuild
+++ b/net-dns/dnsdist/dnsdist-.ebuild
@@ -24,17 +24,15 @@ fi
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="dnscrypt luajit readline regex remote-logging snmp +ssl test"
-RESTRICT="readline? ( bindist )"
+IUSE="dnscrypt luajit regex remote-logging snmp +ssl test"
 REQUIRED_USE="dnscrypt? ( ssl )"
 
 DEPEND="
>=dev-libs/boost-1.35:=
+   dev-libs/libedit:=
luajit? ( dev-lang/luajit:= )
!luajit? ( >=dev-lang/lua-5.1:= )
remote-logging? ( dev-libs/protobuf:= )
-   readline? ( sys-libs/readline:0= )
-   !readline? ( dev-libs/libedit:= )
regex? ( dev-libs/re2:= )
snmp? ( net-analyzer/net-snmp:= )
ssl? ( dev-libs/libsodium:= )
@@ -48,19 +46,11 @@ RDEPEND="${DEPEND}"
 "
 
 src_prepare() {
-   eapply "${FILESDIR}/${PN}-readline.patch"
-   eapply_user
-
+   default
[[ ${PV} ==  ]] && eautoreconf
 }
 
 src_configure() {
-   if use readline ; then
-   local -x LIBEDIT_CFLAGS="-I/usr/include/readline"
-   local -x LIBEDIT_LIBS="-lreadline -lcurses"
-   append-cxxflags -DREADLINE
-   fi
-
econf \
--sysconfdir=/etc/dnsdist \
$(use_enable ssl libsodium) \
@@ -93,9 +83,4 @@ pkg_postinst() {
elog
elog "The name must be in the format dnsdist. and dnsdist will 
use the"
elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
-
-   if use readline ; then
-   ewarn "dnsdist (GPLv2) was linked against readline (GPLv3)."
-   ewarn "A binary distribution should therefore not happen."
-   fi
 }

diff --git a/net-dns/dnsdist/files/dnsdist-readline.patch 
b/net-dns/dnsdist/files/dnsdist-readline.patch
deleted file mode 100644
index d6e031feb4f..000
--- a/net-dns/dnsdist/files/dnsdist-readline.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-diff -Naur dnsdist-1.1.0/dnsdist.cc dnsdist-1.1.0-gentoo/dnsdist.cc
 dnsdist-1.1.0/dnsdist.cc   2016-12-29 13:45:46.0 +0100
-+++ dnsdist-1.1.0-gentoo/dnsdist.cc2017-05-21 15:09:10.414951426 +0200
-@@ -29,6 +29,8 @@
- 
- #if defined (__OpenBSD__)
- #include 
-+#elif defined READLINE
-+#include 
- #else
- #include 
- #endif
-diff -Naur dnsdist-1.1.0/dnsdist-console.cc 

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/files/, net-dns/dnsdist/

2017-05-23 Thread Michał Górny
commit: 0e7456587ffeff7a2922737205caaf3da0a2ee2c
Author: bgo  9dt  de>
AuthorDate: Tue May 23 21:44:31 2017 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue May 23 22:16:54 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e745658

net-dns/dnsdist: New package, #611892

Closes: https://github.com/gentoo/gentoo/pull/4606

 net-dns/dnsdist/Manifest |   1 +
 net-dns/dnsdist/dnsdist-1.1.0.ebuild |  99 ++
 net-dns/dnsdist/dnsdist-.ebuild  | 101 +++
 net-dns/dnsdist/files/dnsdist-readline.patch |  25 +++
 net-dns/dnsdist/files/dnsdist.conf.example   |  19 +
 net-dns/dnsdist/files/dnsdist.confd  |  13 
 net-dns/dnsdist/files/dnsdist.initd  |  55 +++
 net-dns/dnsdist/metadata.xml |  22 ++
 8 files changed, 335 insertions(+)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
new file mode 100644
index 000..83b82a38f36
--- /dev/null
+++ b/net-dns/dnsdist/Manifest
@@ -0,0 +1 @@
+DIST dnsdist-1.1.0.tar.bz2 874837 SHA256 
b4a1e8931b6d05a24494f54224211c0de0eeb1f5ff170f6b9f5665219bfeafc2 SHA512 
91da716997c2440e153944f510a39dd86c9cf8ba8093a7f51a9a5d58ab0a1c230bd99ec57fe8ff0721279c8c4429ad576fe797c1fbe4cde2b9fb8f0405025320
 WHIRLPOOL 
6d88f4159b8155c9600af94e6e8401c426f183102a18b3f35fc066b8a19d781f5800a2aa64d306ab4ee0daadbaaab1d29b2df05c10058a9b99b9d9cf1abf071e

diff --git a/net-dns/dnsdist/dnsdist-1.1.0.ebuild 
b/net-dns/dnsdist/dnsdist-1.1.0.ebuild
new file mode 100644
index 000..4b025151e37
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.1.0.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://github.com/PowerDNS/pdns.git;
+
+if [[ ${PV} =  ]]; then
+   ADDITIONAL_ECLASSES="autotools git-r3"
+fi
+
+inherit eutils flag-o-matic user ${ADDITIONAL_ECLASSES}
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="http://dnsdist.org;
+
+if [[ ${PV} ==  ]]; then
+   SRC_URI=""
+   S="${WORKDIR}/${P}/pdns/dnsdistdist"
+else
+   SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+   KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="dnscrypt luajit readline regex remote-logging +ssl test"
+RESTRICT="readline? ( bindist )"
+REQUIRED_USE="dnscrypt? ( ssl )"
+
+DEPEND="
+   >=dev-libs/boost-1.35:=
+   luajit? ( dev-lang/luajit:= )
+   !luajit? ( >=dev-lang/lua-5.1:= )
+   remote-logging? ( dev-libs/protobuf:= )
+   readline? ( sys-libs/readline:0= )
+   !readline? ( dev-libs/libedit:= )
+   regex? ( dev-libs/re2:= )
+   ssl? ( dev-libs/libsodium:= )
+"
+
+RDEPEND="${DEPEND}"
+
+[[ ${PV} ==  ]] && DEPEND+="
+   app-text/pandoc
+   dev-util/ragel
+"
+
+src_prepare() {
+   eapply "${FILESDIR}/${PN}-readline.patch"
+   eapply_user
+
+   [[ ${PV} ==  ]] && eautoreconf
+}
+
+src_configure() {
+   if use readline ; then
+   local -x LIBEDIT_CFLAGS="-I/usr/include/readline"
+   local -x LIBEDIT_LIBS="-lreadline -lcurses"
+   append-cxxflags -DREADLINE
+   fi
+
+   econf \
+   --sysconfdir=/etc/dnsdist \
+   $(use_enable ssl libsodium) \
+   $(use_with remote-logging protobuf) \
+   $(use_enable regex re2) \
+   $(use_enable dnscrypt) \
+   $(use_with luajit) \
+   $(use_enable test unit-tests)
+}
+
+src_install() {
+   default
+
+   insinto /etc/dnsdist
+   doins "${FILESDIR}"/dnsdist.conf.example
+
+   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
+   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
+}
+
+pkg_preinst() {
+   enewgroup dnsdist
+   enewuser dnsdist -1 -1 -1 dnsdist
+}
+
+pkg_postinst() {
+   elog "dnsdist provides multiple instances support. You can create more 
instances"
+   elog "by symlinking the dnsdist init script to another name."
+   elog
+   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
+   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
+
+   if use readline ; then
+   ewarn "dnsdist (GPLv2) was linked against readline (GPLv3)."
+   ewarn "A binary distribution should therefore not happen."
+   fi
+}

diff --git a/net-dns/dnsdist/dnsdist-.ebuild 
b/net-dns/dnsdist/dnsdist-.ebuild
new file mode 100644
index 000..a0571422096
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://github.com/PowerDNS/pdns.git;
+
+if [[ ${PV} =  ]]; then
+   ADDITIONAL_ECLASSES="autotools git-r3"
+fi
+
+inherit eutils flag-o-matic user