Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/knot/
Date: Sun, 31 Oct 2021 03:43:18
Message-Id: 1635651738.a2c695c24749c62dfe75474880a32ef32e2f0578.sam@gentoo
1 commit: a2c695c24749c62dfe75474880a32ef32e2f0578
2 Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re>
3 AuthorDate: Mon Oct 18 23:45:10 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 31 03:42:18 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2c695c2
7
8 net-dns/knot: bump to 3.1.3
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Pierre-Olivier Mercier <nemunaire <AT> nemunai.re>
12 Closes: https://github.com/gentoo/gentoo/pull/22632
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 net-dns/knot/Manifest | 1 +
16 net-dns/knot/knot-3.1.3.ebuild | 106 +++++++++++++++++++++++++++++++++++++++++
17 2 files changed, 107 insertions(+)
18
19 diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest
20 index bfedc551fa4..6c122ea04df 100644
21 --- a/net-dns/knot/Manifest
22 +++ b/net-dns/knot/Manifest
23 @@ -1,2 +1,3 @@
24 DIST knot-3.1.1.tar.xz 1402352 BLAKE2B d6f9d29de153b5bdea8a294ae3d65131a0bdcc339ecdc507a9e1429a9cc50752e91f14ea84a7446de76869c6f129d571e9b6b4f9b048618941c4f4c0d667dbff SHA512 44c2973025e752f73ebd6bc78dad5c48c1c1432b62ec3b6d75b5876af4dd21aeed94f78523ef85cd6a986ff27789143a0a67450819c0b75ffa627d06b98e1b0b
25 DIST knot-3.1.2.tar.xz 1406684 BLAKE2B a849bf651357e462c5a0afb16e42bcd85bb310980c83b4c642bcf99ddfd17a59e5f5fd5f9fd58b21bcac2e287c57351b3b09cf3f4054ef51243b5226bf0bcc88 SHA512 e72f249f6291980cc69f90dca54cd8ba3ffbc617a1e69e441a48bdcbf46afb9fc202bbb1f88a93887fd264ddb59ad42ff6765c9bd0c1fa4789f035a902a3907a
26 +DIST knot-3.1.3.tar.xz 1407576 BLAKE2B 03cde89e32ac2440e721157db1af9b9cbb40ad2d8d813b0d8bc26fe1feb28f59055a3cbe287d50adb13f5190ce3ed532521189997d03b4fe9e4264f309032e23 SHA512 537013e914c3f00615a384c92da06c40bb33871e7dbd28e987280d62d91df42026774cfe0596ac72a218dafa650d8d600b1d831dd0a5c28a9fd796c5cd799838
27
28 diff --git a/net-dns/knot/knot-3.1.3.ebuild b/net-dns/knot/knot-3.1.3.ebuild
29 new file mode 100644
30 index 00000000000..4b7058faa52
31 --- /dev/null
32 +++ b/net-dns/knot/knot-3.1.3.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 +}