From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 758E7158041 for ; Mon, 19 Feb 2024 18:53:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 74EE4E2B12; Mon, 19 Feb 2024 18:53:01 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 52919E2B12 for ; Mon, 19 Feb 2024 18:53:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 18B033430AC for ; Mon, 19 Feb 2024 18:53:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4F144118C for ; Mon, 19 Feb 2024 18:52:58 +0000 (UTC) From: "Andreas Schuerch" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Schuerch" Message-ID: <1708368637.cd27b48e1fbc51a086a41f1325b2fedb5b0e12f3.nativemad@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/dnsdist/dnsdist-1.9.0-r1.ebuild net-dns/dnsdist/metadata.xml X-VCS-Directories: net-dns/dnsdist/ X-VCS-Committer: nativemad X-VCS-Committer-Name: Andreas Schuerch X-VCS-Revision: cd27b48e1fbc51a086a41f1325b2fedb5b0e12f3 X-VCS-Branch: master Date: Mon, 19 Feb 2024 18:52:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1d921d1c-f7e2-4415-935d-273e713d7aa4 X-Archives-Hash: 539c2074c22b237ccaec2a6fb0d685ca commit: cd27b48e1fbc51a086a41f1325b2fedb5b0e12f3 Author: Andreas Schuerch gentoo org> AuthorDate: Mon Feb 19 18:47:12 2024 +0000 Commit: Andreas Schuerch gentoo org> CommitDate: Mon Feb 19 18:50:37 2024 +0000 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 000000000000..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 @@ nativemad@gentoo.org Andreas Schuerch + + holger@applied-asynchrony.com + Holger Hoffstätte + + + proxy-maint@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 to legitimate users while shunting or blocking abusive traffic. + Enable support for eBPF socket filtering Enable the ability to act as a DNSCrypt server - Enable support for regular expression matching via dev-libs/re2 - Enable support for remote logging via dev-libs/protobuf - Enable support for and encrypted client-server communication via dev-libs/libsodium + Enable support for dnstap Enable support for dns over http via net-libs/nghttp2 Enable support for dns over http3 via net-libs/quiche - Enable support for dnstap + Enable support for ipcipher via dev-libs/openssl Enable support for lmdb Enable support for dns over quic via net-libs/quiche - Enable support for ipcipher via dev-libs/openssl + Enable support for regular expression matching via dev-libs/re2 + Enable support for remote logging via dev-libs/protobuf + Enable support for and encrypted client-server communication via dev-libs/libsodium + Enable support for the web UI + Enable support for AF_XDP high performance packet processing PowerDNS/pdns