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