diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-19 23:39:38 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-19 23:39:38 +0000 |
commit | cc5ddec0bbae3bf2151f62ef22d19b5e85cb8f35 (patch) | |
tree | 0ecbd113fafef1c07a494eb72954a4768ea4040a /net-dns/dnsdist | |
parent | 9aa795a0179b29f7489bd04584bc8d2914da467b (diff) |
gentoo auto-resync : 19:02:2024 - 23:39:38
Diffstat (limited to 'net-dns/dnsdist')
-rw-r--r-- | net-dns/dnsdist/Manifest | 3 | ||||
-rw-r--r-- | net-dns/dnsdist/dnsdist-1.9.0-r1.ebuild | 111 | ||||
-rw-r--r-- | net-dns/dnsdist/metadata.xml | 21 |
3 files changed, 129 insertions, 6 deletions
diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest index 1922d54d420a..8a5c9e9bb404 100644 --- a/net-dns/dnsdist/Manifest +++ b/net-dns/dnsdist/Manifest @@ -7,5 +7,6 @@ DIST dnsdist-1.8.1.tar.bz2 1492793 BLAKE2B 84fdf2f360c41ea235f3989d2bc14ad05e98d DIST dnsdist-1.9.0.tar.bz2 1620891 BLAKE2B 9e14f275d83429ab3e83bdbbd6fe8d97b3212763398798d704adcc18d07ad8aebe16c5345425cdb589f6166155717d9649c16546bf981eb265e1349e74d11134 SHA512 32c0b9b3a1b58839da6dbde05eee382b78fbe58d68aed14f4927dc172dfcb15ba68b6d2246a8305b709e136e0e0c8666b6dd139ac258c8209083ff3b5673b997 EBUILD dnsdist-1.8.0.ebuild 2237 BLAKE2B 0ceb0e09c542ebd775c93d1adbcd4630ee82f64f90318a6764e54a80eaac0ccc28702bd9bf581064ac64c7cf1debfe25e4565e6357d33aa42d543e49045b557f SHA512 6d531a84be771b5e1913bba6daa2acba9dc8af28196d70b2446efee85d9fcf10e5da43b38d867af2c93eb7fd12dbd3573a774b46529f76b970b622a4964fc486 EBUILD dnsdist-1.8.1.ebuild 2237 BLAKE2B 0ceb0e09c542ebd775c93d1adbcd4630ee82f64f90318a6764e54a80eaac0ccc28702bd9bf581064ac64c7cf1debfe25e4565e6357d33aa42d543e49045b557f SHA512 6d531a84be771b5e1913bba6daa2acba9dc8af28196d70b2446efee85d9fcf10e5da43b38d867af2c93eb7fd12dbd3573a774b46529f76b970b622a4964fc486 +EBUILD dnsdist-1.9.0-r1.ebuild 2710 BLAKE2B 087a17ad4310caa1efa1d2ba556d9c4047b6274a10cf994c7e351fe4f4f9d4e92155b29862db99816a62f53da2cb91e6743dec57b03265d847fccea0c4c83708 SHA512 1aa36c259f650b13d3c9a628de08423722ec23690947f8a817575a6d1716c340c8ca1b808bb55cf9fa9eb00058043a3f3a114515b7de417cef07c8eb1a5f98bd EBUILD dnsdist-1.9.0.ebuild 2570 BLAKE2B f3a226e925582c144280e2e2d7e1133c53e88372ba98398c017ea23d1092f0b8278b5903c06cab3b3d398417063b773b3944065786c77c284c6f99fa03e4e80a SHA512 f98551e7935deab841167977cd479c72dc2c90dcc45d66317c3011704cb683780797fe7cae0830a80035e4a2a28dec07b62b285e4bbb386b8721e022fccfa84a -MISC metadata.xml 1484 BLAKE2B 256c522270f2b5f35c7d6e50e395d0d989c68eb61bdacf32f4a4aa5881018e7cad5e4d89e9fc15d35ac48a3a6b610627b8a532ac83d94858d6d545b5e69c1b2a SHA512 53b08bb3f387ab45f26a58d0e1f1cda3aab51c73912c5412f65ccb5a6106becdf89efea83d331a413b62dec9a355d49315a5e0e33391e0d0e0396bac56f1c1d5 +MISC metadata.xml 1965 BLAKE2B c45e150d13af41f787befd5775596b83073e7041be244ba99240106d07f044bcbfd24a46165e04ca48990e24870402322fe496578ef784252a2973434cfee76d SHA512 83ced0072f306d0e296f66ce83cdc8e3b94e9a1c6946bb01722a3139b49dde27bc4ee4df5b4816755c412aa05c83278ba5f072741bb078f25cb3ac8c843949cc 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.<suffix> and dnsdist will use the" + elog "/etc/dnsdist/dnsdist-<suffix>.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 @@ <email>nativemad@gentoo.org</email> <name>Andreas Schuerch</name> </maintainer> + <maintainer type="person" proxied="yes"> + <email>holger@applied-asynchrony.com</email> + <name>Holger Hoffstätte</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> <longdescription lang="en"> 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. </longdescription> <use> + <flag name="bpf">Enable support for eBPF socket filtering</flag> <flag name="dnscrypt">Enable the ability to act as a DNSCrypt server</flag> - <flag name="regex">Enable support for regular expression matching via <pkg>dev-libs/re2</pkg></flag> - <flag name="remote-logging">Enable support for remote logging via <pkg>dev-libs/protobuf</pkg></flag> - <flag name="ssl">Enable support for and encrypted client-server communication via <pkg>dev-libs/libsodium</pkg></flag> + <flag name="dnstap">Enable support for dnstap</flag> <flag name="doh">Enable support for dns over http via <pkg>net-libs/nghttp2</pkg></flag> <flag name="doh3">Enable support for dns over http3 via <pkg>net-libs/quiche</pkg></flag> - <flag name="dnstap">Enable support for dnstap</flag> + <flag name="ipcipher">Enable support for ipcipher via <pkg>dev-libs/openssl</pkg></flag> <flag name="lmdb">Enable support for lmdb</flag> <flag name="quic">Enable support for dns over quic via <pkg>net-libs/quiche</pkg></flag> - <flag name="ipcipher">Enable support for ipcipher via <pkg>dev-libs/openssl</pkg></flag> + <flag name="regex">Enable support for regular expression matching via <pkg>dev-libs/re2</pkg></flag> + <flag name="remote-logging">Enable support for remote logging via <pkg>dev-libs/protobuf</pkg></flag> + <flag name="ssl">Enable support for and encrypted client-server communication via <pkg>dev-libs/libsodium</pkg></flag> + <flag name="web">Enable support for the web UI</flag> + <flag name="xdp">Enable support for AF_XDP high performance packet processing</flag> </use> <upstream> <remote-id type="github">PowerDNS/pdns</remote-id> |