Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/knot/
Date: Thu, 18 Oct 2018 21:40:52
Message-Id: 1539898835.d55ae9761124fbf70898391ea6830659eb116b98.monsieurp@gentoo
1 commit: d55ae9761124fbf70898391ea6830659eb116b98
2 Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re>
3 AuthorDate: Sat Oct 13 12:58:47 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 18 21:40:35 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d55ae976
7
8 net-dns/knot: bump to 2.7.3.
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11 Signed-off-by: Pierre-Olivier Mercier <nemunaire <AT> nemunai.re>
12 Closes: https://github.com/gentoo/gentoo/pull/10145
13 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
14
15 net-dns/knot/Manifest | 1 +
16 net-dns/knot/knot-2.7.3.ebuild | 106 +++++++++++++++++++++++++++++++++++++++++
17 net-dns/knot/metadata.xml | 3 ++
18 3 files changed, 110 insertions(+)
19
20 diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest
21 index 13cc7888076..59229819312 100644
22 --- a/net-dns/knot/Manifest
23 +++ b/net-dns/knot/Manifest
24 @@ -1,2 +1,3 @@
25 DIST knot-2.6.9.tar.xz 1126872 BLAKE2B c15b7e61ccad5417ce53f3d3895014931a2825835958735bdd9459634d9d9f39d6bb3681036772e6a510570a7f6a8afc8b0de5e77e67778831dc6415378889fe SHA512 80fcbef17c3e6685c09eb57e59001a5f298a083c18ce077dc2f2d1fadbe7c36e543c205c0820bc7971a8ed7547897aec408f51e1a9555a50dae82d047fac471b
26 DIST knot-2.7.2.tar.xz 1148880 BLAKE2B bf3042d762d2b66f47dbd27a1c9ecd03d111259c7db82254c1175e660497fd8343c3f1cf1cc14e6068cb3d3618931b659888a7b97d7d6e4ba9d0e74c00540e31 SHA512 e09f8a38e975ff4f90db59db9ae8a6baaca9b0cbc9c2ecd37225febfe718b7c2038ae45481ed830dc66f2b70d8312266e2dc7cb54a0aa0fdc02c87ca42bac96d
27 +DIST knot-2.7.3.tar.xz 1146456 BLAKE2B d584db01b2354c259cf5e5cdfeb2dff677b04e76b68156a2c672fffe95ee8c6516f82b8e199d8ec8cacfcd93f15b370a25172826460b82c5964f38207c9818f2 SHA512 ba735eb06d99f8cb41619f44413f6450178ab249ef9ff282bae36e8e965cb421f082852bbf0ae5814e3e3148f27431fc1f2b4ed30e21bfd0cbea1be189bdadfd
28
29 diff --git a/net-dns/knot/knot-2.7.3.ebuild b/net-dns/knot/knot-2.7.3.ebuild
30 new file mode 100644
31 index 00000000000..28488683ca8
32 --- /dev/null
33 +++ b/net-dns/knot/knot-2.7.3.ebuild
34 @@ -0,0 +1,106 @@
35 +# Copyright 1999-2018 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +inherit systemd user
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 ~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 +fastparser idn libidn2 systemd +utils ${KNOT_MODULES[@]}"
64 +
65 +RDEPEND="
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:* )
79 + libidn2? ( net-dns/libidn2 )
80 + )
81 + systemd? ( sys-apps/systemd )
82 +"
83 +DEPEND="${RDEPEND}
84 + virtual/pkgconfig
85 + doc? ( dev-python/sphinx )
86 +"
87 +
88 +S="${WORKDIR}/${P/_/-}"
89 +
90 +src_configure() {
91 + local u
92 + local my_conf=(
93 + --with-storage="${EPREFIX}/var/lib/${PN}"
94 + --with-rundir="${EPREFIX}/var/run/${PN}"
95 + $(use_enable fastparser)
96 + $(use_enable dnstap)
97 + $(use_enable doc documentation)
98 + $(use_enable utils utilities)
99 + --enable-systemd=$(usex systemd)
100 + $(use_with idn libidn)
101 + )
102 +
103 + for u in "${KNOT_MODULES[@]#+}"; do
104 + my_conf+=("$(use_with ${u} module-${u})")
105 + done
106 +
107 + econf "${my_conf[@]}"
108 +}
109 +
110 +src_compile() {
111 + default
112 +
113 + if use doc; then
114 + emake -C doc html
115 + HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} )
116 + fi
117 +}
118 +
119 +src_test() {
120 + emake check
121 +}
122 +
123 +src_install() {
124 + default
125 +
126 + rmdir "${D}var/run/${PN}" "${D}var/run/" || die
127 + keepdir /var/lib/${PN}
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 +}
136 +
137 +pkg_postinst() {
138 + enewgroup knot 53
139 + enewuser knot 53 -1 /var/lib/knot knot
140 +}
141
142 diff --git a/net-dns/knot/metadata.xml b/net-dns/knot/metadata.xml
143 index b4c4ececc73..d03b90100dd 100644
144 --- a/net-dns/knot/metadata.xml
145 +++ b/net-dns/knot/metadata.xml
146 @@ -39,6 +39,9 @@
147 Enable the module that sign zones on the fly instead of
148 pre-signing zone
149 </flag>
150 + <flag name="queryacl">
151 + Enable the module for query access control
152 + </flag>
153 <flag name="rosedb">
154 Enable the module that staticaly override certain
155 responses