Gentoo Archives: gentoo-commits

From: Andreas Schuerch <nativemad@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/
Date: Sat, 25 Jun 2022 09:03:10
Message-Id: 1656147761.8a5a743db0744a96d1eb0f79a6d2ae0b14a91371.nativemad@gentoo
1 commit: 8a5a743db0744a96d1eb0f79a6d2ae0b14a91371
2 Author: Andreas Schuerch <nativemad <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 24 09:32:13 2022 +0000
4 Commit: Andreas Schuerch <nativemad <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 25 09:02:41 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a5a743d
7
8 net-dns/dnsdist: add 1.7.2
9
10 Signed-off-by: Andreas Schuerch <nativemad <AT> gentoo.org>
11
12 net-dns/dnsdist/Manifest | 1 +
13 net-dns/dnsdist/dnsdist-1.7.2.ebuild | 84 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 85 insertions(+)
15
16 diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
17 index f53ad9476dcf..8f59268f9465 100644
18 --- a/net-dns/dnsdist/Manifest
19 +++ b/net-dns/dnsdist/Manifest
20 @@ -3,3 +3,4 @@ DIST dnsdist-1.6.0.tar.bz2 1328707 BLAKE2B d093142875882cacaa456d76d42e703e45577
21 DIST dnsdist-1.6.1.tar.bz2 1328069 BLAKE2B a9e9c0cb35ebc2ecd93d7fa0d6d3961b02d711da2df56240335786a5d2e529d4a7e8716f578b6e935edd3bc79dfed767d358b9feaff32dd9cd65993ef0b97b71 SHA512 68e114eeb1a7ae8a4ce52a7de31095c46d0ba8f572676a8ef1e858b97da199c04ec88656c7642160ba07b7db325cc2a49cd91794da8dd2e81a5301d089c34f90
22 DIST dnsdist-1.7.0.tar.bz2 1392585 BLAKE2B 3766da5f63df6390f555307d665efcbb2ad1462abae3af44503479d4c6ae6453e43527d2bcac718fabeb8b60ec989f264860532b480c465afc440405f9efac74 SHA512 abaed7aaa18f4acaf220dc938da6896e521373b1da3b6b9c4114467dd5d8b0e6cd9809534edbc6ba5b789ed8387fb47317c47bd4e00e66a6ccb035f6dd6068af
23 DIST dnsdist-1.7.1.tar.bz2 1392179 BLAKE2B 48189da6bceb1723b19bab7c42ec8cd834f3ef6d822b5da23fe2f4e02ec825d1566bce472f522fa9ac0b027d36f3089ce7c0c7eb1c7e1161c050dc50305dfdb6 SHA512 eee44a9994c6cab84977cad58539ca59882149d6898dfeed9e4190f06ddbc280b836bf426d22e6980d8acae1437290bddcc5166af165b6eb48c77c669281a310
24 +DIST dnsdist-1.7.2.tar.bz2 1391588 BLAKE2B cf2a9853be4c896b3909f871fad771d4298eb2586702a8a85eff2c612d275214cdad82e93961f4cfd58300f5629f06569c51a2c4f15de58188a69116bd5275de SHA512 2048ac0f861547fb103da1a128fd39a35ed689ccbf3c080232a3bd0550c9e7c7e01c95864d61e065e341a9f4111c974d2db2aba73eb8f7cba9bf8273da39b8a6
25
26 diff --git a/net-dns/dnsdist/dnsdist-1.7.2.ebuild b/net-dns/dnsdist/dnsdist-1.7.2.ebuild
27 new file mode 100644
28 index 000000000000..99404bcecece
29 --- /dev/null
30 +++ b/net-dns/dnsdist/dnsdist-1.7.2.ebuild
31 @@ -0,0 +1,84 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +LUA_COMPAT=( lua5-{1..4} luajit )
38 +
39 +inherit flag-o-matic lua-single
40 +
41 +DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
42 +HOMEPAGE="https://dnsdist.org"
43 +
44 +SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2"
45 +KEYWORDS="~amd64 ~x86"
46 +
47 +LICENSE="GPL-2"
48 +SLOT="0"
49 +IUSE="dnscrypt dnstap doh gnutls +lmdb regex remote-logging snmp +ssl systemd test"
50 +RESTRICT="!test? ( test )"
51 +REQUIRED_USE="${LUA_REQUIRED_USE}
52 + dnscrypt? ( ssl )
53 + gnutls? ( ssl )
54 + doh? ( ssl !gnutls )"
55 +
56 +RDEPEND="acct-group/dnsdist
57 + acct-user/dnsdist
58 + >=dev-libs/boost-1.35:=
59 + dev-libs/libedit:=
60 + >=dev-libs/protobuf-3:=
61 + dnscrypt? ( dev-libs/libsodium:= )
62 + dnstap? ( dev-libs/fstrm:= )
63 + doh? ( www-servers/h2o:=[libh2o] )
64 + lmdb? ( dev-db/lmdb:= )
65 + regex? ( dev-libs/re2:= )
66 + snmp? ( net-analyzer/net-snmp:= )
67 + ssl? (
68 + gnutls? ( net-libs/gnutls:= )
69 + !gnutls? ( dev-libs/openssl:= )
70 + )
71 + systemd? ( sys-apps/systemd:0= )
72 + ${LUA_DEPS}
73 + net-libs/nghttp2
74 +"
75 +
76 +DEPEND="${RDEPEND}"
77 +BDEPEND="virtual/pkgconfig"
78 +
79 +src_configure() {
80 + # bug #822855
81 + append-lfs-flags
82 +
83 + econf \
84 + --sysconfdir=/etc/dnsdist \
85 + --with-lua="${ELUA}" \
86 + $(use_enable doh dns-over-https) \
87 + $(use_enable dnscrypt) \
88 + $(use_enable dnstap) \
89 + $(use_with lmdb ) \
90 + $(use_with regex re2) \
91 + $(use_with snmp net-snmp) \
92 + $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls && use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
93 + $(use_enable systemd) \
94 + $(use_enable test unit-tests)
95 + sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
96 + -i "${S}/configure"
97 +}
98 +
99 +src_install() {
100 + default
101 +
102 + insinto /etc/dnsdist
103 + doins "${FILESDIR}"/dnsdist.conf.example
104 +
105 + newconfd "${FILESDIR}"/dnsdist.confd ${PN}
106 + newinitd "${FILESDIR}"/dnsdist.initd ${PN}
107 +}
108 +
109 +pkg_postinst() {
110 + elog "dnsdist provides multiple instances support. You can create more instances"
111 + elog "by symlinking the dnsdist init script to another name."
112 + elog
113 + elog "The name must be in the format dnsdist.<suffix> and dnsdist will use the"
114 + elog "/etc/dnsdist/dnsdist-<suffix>.conf configuration file instead of the default."
115 +}