Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/knot/
Date: Tue, 04 Dec 2018 21:20:55
Message-Id: 1543956004.615381d703f9bd94193224d4da27bb2449a201cb.mgorny@gentoo
1 commit: 615381d703f9bd94193224d4da27bb2449a201cb
2 Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re>
3 AuthorDate: Thu Nov 15 22:19:05 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 4 20:40:04 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=615381d7
7
8 net-dns/knot: bump to 2.7.4
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.11
11 Signed-off-by: Pierre-Olivier Mercier <nemunaire <AT> nemunai.re>
12 Closes: https://github.com/gentoo/gentoo/pull/10427
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14
15 net-dns/knot/Manifest | 1 +
16 net-dns/knot/knot-2.7.4.ebuild | 106 +++++++++++++++++++++++++++++++++++++++++
17 2 files changed, 107 insertions(+)
18
19 diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest
20 index 59229819312..dccc263e41f 100644
21 --- a/net-dns/knot/Manifest
22 +++ b/net-dns/knot/Manifest
23 @@ -1,3 +1,4 @@
24 DIST knot-2.6.9.tar.xz 1126872 BLAKE2B c15b7e61ccad5417ce53f3d3895014931a2825835958735bdd9459634d9d9f39d6bb3681036772e6a510570a7f6a8afc8b0de5e77e67778831dc6415378889fe SHA512 80fcbef17c3e6685c09eb57e59001a5f298a083c18ce077dc2f2d1fadbe7c36e543c205c0820bc7971a8ed7547897aec408f51e1a9555a50dae82d047fac471b
25 DIST knot-2.7.2.tar.xz 1148880 BLAKE2B bf3042d762d2b66f47dbd27a1c9ecd03d111259c7db82254c1175e660497fd8343c3f1cf1cc14e6068cb3d3618931b659888a7b97d7d6e4ba9d0e74c00540e31 SHA512 e09f8a38e975ff4f90db59db9ae8a6baaca9b0cbc9c2ecd37225febfe718b7c2038ae45481ed830dc66f2b70d8312266e2dc7cb54a0aa0fdc02c87ca42bac96d
26 DIST knot-2.7.3.tar.xz 1146456 BLAKE2B d584db01b2354c259cf5e5cdfeb2dff677b04e76b68156a2c672fffe95ee8c6516f82b8e199d8ec8cacfcd93f15b370a25172826460b82c5964f38207c9818f2 SHA512 ba735eb06d99f8cb41619f44413f6450178ab249ef9ff282bae36e8e965cb421f082852bbf0ae5814e3e3148f27431fc1f2b4ed30e21bfd0cbea1be189bdadfd
27 +DIST knot-2.7.4.tar.xz 1148652 BLAKE2B 081a23a0429b4fec1feebbe417bc95fe24d11404a2a6b9e4e71d89f99bc9cf2a5ed2bdc3a0fd2727cc4d45629b71faefda179e68c4781f8b21c475a7b1fe8bdd SHA512 e5f60a23817503468b18eaea517c5936945b901f568c56cb1ca67a208cc6206ff103e9ca03f1bf05018d13a688f54580ae816a5d70510f28a98ae31116a3f674
28
29 diff --git a/net-dns/knot/knot-2.7.4.ebuild b/net-dns/knot/knot-2.7.4.ebuild
30 new file mode 100644
31 index 00000000000..ce8659e1fd1
32 --- /dev/null
33 +++ b/net-dns/knot/knot-2.7.4.ebuild
34 @@ -0,0 +1,106 @@
35 +# Copyright 1999-2018 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
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 +BDEPEND="${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 +}