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