Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/knot/
Date: Tue, 26 Nov 2019 14:59:31
Message-Id: 1574780345.e7e0ca9a59fbcda69262542c577a2c872c96e09f.juippis@gentoo
1 commit: e7e0ca9a59fbcda69262542c577a2c872c96e09f
2 Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re>
3 AuthorDate: Thu Nov 14 11:09:00 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 26 14:59:05 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7e0ca9a
7
8 net-dns/knot: bump to 2.9.1
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.16
11 Signed-off-by: Pierre-Olivier Mercier <nemunaire <AT> nemunai.re>
12 Closes: https://github.com/gentoo/gentoo/pull/13646
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 net-dns/knot/Manifest | 1 +
16 net-dns/knot/knot-2.9.1.ebuild | 102 +++++++++++++++++++++++++++++++++++++++++
17 2 files changed, 103 insertions(+)
18
19 diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest
20 index 364a30bd372..96da8be7566 100644
21 --- a/net-dns/knot/Manifest
22 +++ b/net-dns/knot/Manifest
23 @@ -1,2 +1,3 @@
24 DIST knot-2.8.4.tar.xz 1181812 BLAKE2B ff334ec3914ff682247b10719c9da28cdc1b353a24915204944ab2c010395a19d154ff1e1db399fa38df616c606574856f8ad69a144d56e4414a4c06dea9fe87 SHA512 8f826f0e2259b346c84212f9b58fe756044b2549ae84e42d929a0e01269d9f72bce1791c98327b02de375c739e77090d0ea9bacba9fa91ded5b2ea16154ac588
25 DIST knot-2.9.0.tar.xz 1210236 BLAKE2B 1cc461feff60ed15bb04438767b2d0fa069bec5f649fc703127950672af2235ec3cb5a84c900c4fc42acdc40ef55f8f17605077eafbb0c4a9aabfe3bd3ea2c83 SHA512 7584152d4fd01cea40a254b05d59971c7341cf612976104ddd857c4a1c637fc83ad93669fc943de3c1514122be793b78f8cc26fef4cc98f5a693640bb766f2b9
26 +DIST knot-2.9.1.tar.xz 1212460 BLAKE2B 7b025ab7fffddd6860cf4fa04386746c1e900d28bfc4322a021807c27f6c4621c0a19becbba07f9519c8fbb663b70c59b815ca566f6952edc3deb56b5658ae86 SHA512 467de157894c6d09f5ba0864f6c637f31f2cf4bcc612e1aa94a9f72395ce2f42dfe024818f84be5f3519af3d6421c771ad08f2dbf7ede6ff9ec7ec2a885178ff
27
28 diff --git a/net-dns/knot/knot-2.9.1.ebuild b/net-dns/knot/knot-2.9.1.ebuild
29 new file mode 100644
30 index 00000000000..832d155aba2
31 --- /dev/null
32 +++ b/net-dns/knot/knot-2.9.1.ebuild
33 @@ -0,0 +1,102 @@
34 +# Copyright 1999-2019 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 +}