1 |
commit: 3bd117cbc2edb7426b8f6212fd755b8313f9fc56 |
2 |
Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re> |
3 |
AuthorDate: Tue Mar 3 17:12:00 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 8 12:57:56 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bd117cb |
7 |
|
8 |
net-dns/knot: bump to 2.9.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.79, Repoman-2.3.16 |
11 |
Signed-off-by: Pierre-Olivier Mercier <nemunaire <AT> nemunai.re> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/14828 |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
net-dns/knot/Manifest | 1 + |
16 |
net-dns/knot/knot-2.9.3.ebuild | 102 +++++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 103 insertions(+) |
18 |
|
19 |
diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest |
20 |
index c6eec7b1075..d24b5dca32f 100644 |
21 |
--- a/net-dns/knot/Manifest |
22 |
+++ b/net-dns/knot/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST knot-2.8.5.tar.xz 1209076 BLAKE2B 7454499745caa04a9454f023bed0ce6d8ccc54fc2c264aada72a842c39b056a91caee908eb1b036fe77b97d8cea4f03b9afcd084a69846a2632e717f7c3591fd SHA512 f45e62816ddc1f534e724d2fa71831100efc01b415ec2ea8301d02cf44d8f104a248deccdb706ebad6853404aee2a209c2bf51b07076aa69340af6812e5a79de |
25 |
DIST knot-2.9.2.tar.xz 1181860 BLAKE2B 4c4a54624cc0c107517596efb3d4a4dc205dac488e293b594e93f8e73b1face3c0ac4ca94d5def68576f7b801540468a355e5b4bd06d7992edc3bce122952fd3 SHA512 7e09cd6e587342b0a213f7a108704fff7535d02dd47d662e60b96ae5d75d9745d659131622253f964deb1607f28d172d1d46dc3b5f61e2f6c70e5002e746da68 |
26 |
+DIST knot-2.9.3.tar.xz 1214512 BLAKE2B a4545ba32827a1866046fd42a5819963607d5d7d1fd1e73b17b08dca9c3aeb3b8ecbad67ef3293f4a417ac2b25c7540e299cf914d90d6a659bcc58f809f178c7 SHA512 69186b0d83ab548e46a7eed2703b1c3e29de36123c39a7ca461a8728488433bcc27dd5564ff3cb55d8490d4515098cebdd72aa732742fb0b9fceaca27f456e08 |
27 |
|
28 |
diff --git a/net-dns/knot/knot-2.9.3.ebuild b/net-dns/knot/knot-2.9.3.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..2cc9e9753df |
31 |
--- /dev/null |
32 |
+++ b/net-dns/knot/knot-2.9.3.ebuild |
33 |
@@ -0,0 +1,102 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+inherit 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 ~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 |
+ econf "${my_conf[@]}" |
110 |
+} |
111 |
+ |
112 |
+src_compile() { |
113 |
+ default |
114 |
+ |
115 |
+ use doc && emake -C doc html |
116 |
+} |
117 |
+ |
118 |
+src_test() { |
119 |
+ emake check |
120 |
+} |
121 |
+ |
122 |
+src_install() { |
123 |
+ use doc && local HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} ) |
124 |
+ |
125 |
+ default |
126 |
+ |
127 |
+ rmdir "${D}/var/run/${PN}" "${D}/var/run/" || die |
128 |
+ |
129 |
+ newinitd "${FILESDIR}/knot.init" knot |
130 |
+ if use systemd; then |
131 |
+ systemd_newunit "${FILESDIR}/knot-1.service" knot.service |
132 |
+ fi |
133 |
+ |
134 |
+ find "${D}" -name '*.la' -delete || die |
135 |
+} |