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, 07 Jan 2020 06:20:27
Message-Id: 1578378001.5fc31439d81445ad3a6545bfd26099175a99fc68.juippis@gentoo
1 commit: 5fc31439d81445ad3a6545bfd26099175a99fc68
2 Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re>
3 AuthorDate: Mon Jan 6 12:07:01 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 7 06:20:01 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fc31439
7
8 net-dns/knot: bump to 2.8.5
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.16
11 Signed-off-by: Pierre-Olivier Mercier <nemunaire <AT> nemunai.re>
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 net-dns/knot/Manifest | 1 +
15 net-dns/knot/knot-2.8.5.ebuild | 103 +++++++++++++++++++++++++++++++++++++++++
16 2 files changed, 104 insertions(+)
17
18 diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest
19 index 96ca8d84e75..5c6752b977a 100644
20 --- a/net-dns/knot/Manifest
21 +++ b/net-dns/knot/Manifest
22 @@ -1,4 +1,5 @@
23 DIST knot-2.8.4.tar.xz 1181812 BLAKE2B ff334ec3914ff682247b10719c9da28cdc1b353a24915204944ab2c010395a19d154ff1e1db399fa38df616c606574856f8ad69a144d56e4414a4c06dea9fe87 SHA512 8f826f0e2259b346c84212f9b58fe756044b2549ae84e42d929a0e01269d9f72bce1791c98327b02de375c739e77090d0ea9bacba9fa91ded5b2ea16154ac588
24 +DIST knot-2.8.5.tar.xz 1209076 BLAKE2B 7454499745caa04a9454f023bed0ce6d8ccc54fc2c264aada72a842c39b056a91caee908eb1b036fe77b97d8cea4f03b9afcd084a69846a2632e717f7c3591fd SHA512 f45e62816ddc1f534e724d2fa71831100efc01b415ec2ea8301d02cf44d8f104a248deccdb706ebad6853404aee2a209c2bf51b07076aa69340af6812e5a79de
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 DIST knot-2.9.2.tar.xz 1181860 BLAKE2B 4c4a54624cc0c107517596efb3d4a4dc205dac488e293b594e93f8e73b1face3c0ac4ca94d5def68576f7b801540468a355e5b4bd06d7992edc3bce122952fd3 SHA512 7e09cd6e587342b0a213f7a108704fff7535d02dd47d662e60b96ae5d75d9745d659131622253f964deb1607f28d172d1d46dc3b5f61e2f6c70e5002e746da68
28
29 diff --git a/net-dns/knot/knot-2.8.5.ebuild b/net-dns/knot/knot-2.8.5.ebuild
30 new file mode 100644
31 index 00000000000..d9559bbada8
32 --- /dev/null
33 +++ b/net-dns/knot/knot-2.8.5.ebuild
34 @@ -0,0 +1,103 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit systemd
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 + acct-group/knot
67 + acct-user/knot
68 + dev-db/lmdb
69 + dev-libs/libedit
70 + dev-libs/userspace-rcu:=
71 + dev-python/lmdb
72 + net-libs/gnutls:=
73 + caps? ( sys-libs/libcap-ng )
74 + dnstap? (
75 + dev-libs/fstrm
76 + dev-libs/protobuf-c:=
77 + )
78 + geoip? ( dev-libs/libmaxminddb:= )
79 + idn? (
80 + !libidn2? ( net-dns/libidn:0= !net-dns/libidn2 )
81 + libidn2? ( net-dns/libidn2:= )
82 + )
83 + systemd? ( sys-apps/systemd:= )
84 +"
85 +DEPEND="${RDEPEND}"
86 +BDEPEND="
87 + virtual/pkgconfig
88 + doc? ( dev-python/sphinx )
89 +"
90 +
91 +S="${WORKDIR}/${P/_/-}"
92 +
93 +src_configure() {
94 + local u
95 + local my_conf=(
96 + --with-storage="${EPREFIX}/var/lib/${PN}"
97 + --with-rundir="${EPREFIX}/var/run/${PN}"
98 + $(use_enable fastparser)
99 + $(use_enable dnstap)
100 + $(use_enable doc documentation)
101 + $(use_enable utils utilities)
102 + --enable-systemd=$(usex systemd)
103 + $(use_with idn libidn)
104 + )
105 +
106 + for u in "${KNOT_MODULES[@]#+}"; do
107 + my_conf+=("$(use_with ${u} module-${u})")
108 + done
109 +
110 + econf "${my_conf[@]}"
111 +}
112 +
113 +src_compile() {
114 + default
115 +
116 + if use doc; then
117 + emake -C doc html
118 + HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} )
119 + fi
120 +}
121 +
122 +src_test() {
123 + emake check
124 +}
125 +
126 +src_install() {
127 + default
128 +
129 + rmdir "${D}/var/run/${PN}" "${D}/var/run/" || die
130 +
131 + newinitd "${FILESDIR}/knot.init" knot
132 + if use systemd; then
133 + systemd_newunit "${FILESDIR}/knot-1.service" knot.service
134 + fi
135 +
136 + find "${D}" -name '*.la' -delete || die
137 +}