Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/knot/
Date: Wed, 24 Aug 2022 09:28:38
Message-Id: 1661333171.ad7bd93acc2e502af05886af309ab2fe7e5f0093.flow@gentoo
1 commit: ad7bd93acc2e502af05886af309ab2fe7e5f0093
2 Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re>
3 AuthorDate: Tue Aug 23 07:30:18 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 24 09:26:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad7bd93a
7
8 net-dns/knot: Bump to 3.2.0
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Pierre-Olivier Mercier <nemunaire <AT> nemunai.re>
12 Closes: https://github.com/gentoo/gentoo/pull/26997
13 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
14
15 net-dns/knot/Manifest | 1 +
16 net-dns/knot/knot-3.2.0.ebuild | 115 +++++++++++++++++++++++++++++++++++++++++
17 2 files changed, 116 insertions(+)
18
19 diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest
20 index 43317be44a48..2608747b2b6b 100644
21 --- a/net-dns/knot/Manifest
22 +++ b/net-dns/knot/Manifest
23 @@ -2,3 +2,4 @@ DIST knot-3.1.5.tar.xz 1414500 BLAKE2B c05fcd9e99d4c7dba03ad9fd9a1131ca4c2556d49
24 DIST knot-3.1.7.tar.xz 1418944 BLAKE2B d0e5c999c1b4bca89b86ad956dd91643f795fcba94757e34c44e3e6b925030c332da9cb0bfd72d6ae0f32b3016a8c50d821cfcc513268682dd6b5715714d9047 SHA512 4b6982e8b44addbc77f42d0a1c435dd257cc8a8f112677c371d16063ee8e769b646a6425d54ef338cd21555f276d8d6f4faad2da2f24bf92437ce4af9ff1fb44
25 DIST knot-3.1.8.tar.xz 1439912 BLAKE2B bcc089d547a7cad8150e93d70da036273a60b0e740df9693bc38813c3d7ed1968b8f97ce4d32c2359ba509fdfcd8403e73eed1f0107d470e6cd4ba4e7012f96d SHA512 af72cbcc5b511dad148e7ce990819df00bdf99c110b44b3b521eddd8690a6ebd4c76c24e63d843956971d5f158bbfa851804616630d34f3a0ec06888c78ecf2c
26 DIST knot-3.1.9.tar.xz 1441408 BLAKE2B 383829107bef6b35cbef3c531bc91050e7742ca930bf6645c25cab04203ee360837808c3b5342089ce9ba9ee704290ab95b2f76172577d251c6a9c18796245a0 SHA512 e4ba1c006edcde2dc820e74c39df7a8b8983dfb2d8b8845ac759c6c67dfaabc5aae38282995ed92879a683665c0c179502858631c89ad53c2738f79df951eef7
27 +DIST knot-3.2.0.tar.xz 1665720 BLAKE2B 851f8278e2936459ca8bf4f06332d6a49e89152e634aaa94235d180c91a073c648797f8e42e371f563bbeb708289fdf3839f66508fbd41b7e045efbbe5d72374 SHA512 e007d633f1debb559d47a7646b055dc970502be11a1849063da3e3d28355f77e6cba41e34f06726bc5945e4e2ba3ecb84a4b39813a8079514d3bf584d7d565a2
28
29 diff --git a/net-dns/knot/knot-3.2.0.ebuild b/net-dns/knot/knot-3.2.0.ebuild
30 new file mode 100644
31 index 000000000000..77cbe56a39d2
32 --- /dev/null
33 +++ b/net-dns/knot/knot-3.2.0.ebuild
34 @@ -0,0 +1,115 @@
35 +# Copyright 1999-2022 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=8
39 +
40 +inherit flag-o-matic systemd
41 +
42 +DESCRIPTION="High-performance authoritative-only DNS server"
43 +HOMEPAGE="https://www.knot-dns.cz/"
44 +SRC_URI="https://secure.nic.cz/files/knot-dns/${P/_/-}.tar.xz"
45 +
46 +LICENSE="GPL-3"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~riscv ~x86"
49 +
50 +KNOT_MODULES=(
51 + "+cookies"
52 + "+dnsproxy"
53 + "dnstap"
54 + "geoip"
55 + "+noudp"
56 + "+onlinesign"
57 + "+queryacl"
58 + "+rrl"
59 + "+stats"
60 + "+synthrecord"
61 + "+whoami"
62 +)
63 +IUSE="doc caps doh +fastparser idn +libidn2 systemd +utils xdp ${KNOT_MODULES[@]}"
64 +
65 +RDEPEND="
66 + acct-group/knot
67 + acct-user/knot
68 + dev-db/lmdb:=
69 + dev-libs/libedit
70 + dev-libs/userspace-rcu:=
71 + dev-python/lmdb:=
72 + net-libs/gnutls:=
73 + caps? ( sys-libs/libcap-ng )
74 + dnstap? (
75 + dev-libs/fstrm
76 + dev-libs/protobuf-c:=
77 + )
78 + doh? ( net-libs/nghttp2:= )
79 + geoip? ( dev-libs/libmaxminddb:= )
80 + idn? (
81 + !libidn2? ( net-dns/libidn:0= !net-dns/libidn2 )
82 + libidn2? ( net-dns/libidn2:= )
83 + )
84 + systemd? ( sys-apps/systemd:= )
85 + xdp? (
86 + dev-libs/libbpf:=
87 + net-libs/libmnl:=
88 + )
89 +"
90 +DEPEND="${RDEPEND}"
91 +BDEPEND="
92 + virtual/pkgconfig
93 + doc? ( dev-python/sphinx )
94 +"
95 +
96 +S="${WORKDIR}/${P/_/-}"
97 +
98 +src_configure() {
99 + local u
100 + local my_conf=(
101 + --with-storage="${EPREFIX}/var/lib/${PN}"
102 + --with-rundir="${EPREFIX}/var/run/${PN}"
103 + $(use_enable fastparser)
104 + $(use_enable dnstap)
105 + $(use_enable doc documentation)
106 + $(use_enable utils utilities)
107 + $(use_enable xdp)
108 + --enable-systemd=$(usex systemd)
109 + $(use_with idn libidn)
110 + $(use_with doh libnghttp2)
111 + )
112 +
113 + for u in "${KNOT_MODULES[@]#+}"; do
114 + my_conf+=("$(use_with ${u} module-${u})")
115 + done
116 +
117 + if use riscv; then
118 + append-libs -latomic
119 + fi
120 +
121 + econf "${my_conf[@]}"
122 +}
123 +
124 +src_compile() {
125 + default
126 +
127 + use doc && emake -C doc html
128 +}
129 +
130 +src_test() {
131 + emake check
132 +}
133 +
134 +src_install() {
135 + use doc && local HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} )
136 +
137 + default
138 +
139 + rmdir "${D}/var/run/${PN}" "${D}/var/run/" || die
140 +
141 + newinitd "${FILESDIR}/knot.init" knot
142 + if use systemd; then
143 + systemd_newunit "${FILESDIR}/knot-1.service" knot.service
144 + fi
145 +
146 + find "${D}" -name '*.la' -delete || die
147 +
148 + keepdir /var/lib/knot
149 +}