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: Sun, 18 Feb 2018 17:17:04
Message-Id: 1518974122.6b995e8923977c31e654d463397fe4666d6d789d.monsieurp@gentoo
1 commit: 6b995e8923977c31e654d463397fe4666d6d789d
2 Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re>
3 AuthorDate: Tue Feb 13 11:11:09 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 18 17:15:22 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b995e89
7
8 net-dns/knot: version bump to 2.6.5.
9
10 Package-Manager: Portage-2.3.13, Repoman-2.3.3
11 Closes: https://github.com/gentoo/gentoo/pull/7180
12
13 net-dns/knot/Manifest | 1 +
14 net-dns/knot/knot-2.6.5.ebuild | 102 +++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 103 insertions(+)
16
17 diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest
18 index c485149c96c..18ea9bcebbf 100644
19 --- a/net-dns/knot/Manifest
20 +++ b/net-dns/knot/Manifest
21 @@ -1,2 +1,3 @@
22 DIST knot-2.5.7.tar.xz 1084656 BLAKE2B c2d583625a19f6a61248b3b42cdf14f5bb2bdbafdb20be6b0813744095a4016a4be2eb5e2dfaff0628238c60153480175a86706db0b88569d76156f86ba33968 SHA512 96e375f556309bb89cea982dda169cef70c23d03c48282110e47a44849c1102cd37d98aa7650781b399f5d932b724b8a935f0b9e55e4920465ae7b74a0d1d55a
23 DIST knot-2.6.4.tar.xz 1116928 BLAKE2B 7914addec8ff1826c81c2de098ed4e3b7686c877d40c727286d2d9c8c477fb02c1d0ad38befa77ccc92c5e068d6bc4c86e5df8ad9f5541cc0e3dc6f63192af58 SHA512 7242ef76bd3a379f574ca9af8fec96b0419c2209b6d8114c3b8e675cb5459ec70dab928a5a9ba9850fe1d7201729c9ff7e4c8800674e840e1cf04544c32a6f78
24 +DIST knot-2.6.5.tar.xz 1118084 BLAKE2B 941d90803e51c5af003fcdaaaa22ffede326492cf60836efc09a06e18740743cc9f806e4750934f6959ced88616f46fc5dbc6667099d53eb4a21fae524497c9c SHA512 ed0d1d30e6d8d802e669aac12c4fd0cec8e315eb0e2c05b722f49ada434c82b8caebf12568881e5fbba2f61a5027c44fbde42b543c9086ff2e9614caf42a6d12
25
26 diff --git a/net-dns/knot/knot-2.6.5.ebuild b/net-dns/knot/knot-2.6.5.ebuild
27 new file mode 100644
28 index 00000000000..63edc2b56df
29 --- /dev/null
30 +++ b/net-dns/knot/knot-2.6.5.ebuild
31 @@ -0,0 +1,102 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit systemd user
38 +
39 +DESCRIPTION="High-performance authoritative-only DNS server"
40 +HOMEPAGE="https://www.knot-dns.cz/"
41 +SRC_URI="https://secure.nic.cz/files/knot-dns/${P/_/-}.tar.xz"
42 +
43 +LICENSE="GPL-3"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +
47 +KNOT_MODULES=(
48 + "+dnsproxy"
49 + "dnstap"
50 + "+noudp"
51 + "+onlinesign"
52 + "rosedb"
53 + "+rrl"
54 + "+stats"
55 + "+synthrecord"
56 + "+whoami"
57 +)
58 +IUSE="doc caps +fastparser idn libidn2 systemd +utils ${KNOT_MODULES[@]}"
59 +
60 +RDEPEND="
61 + >=dev-db/lmdb-0.9.15
62 + dev-libs/libedit
63 + >=dev-libs/userspace-rcu-0.5.4
64 + dev-python/lmdb
65 + >=net-libs/gnutls-3.3:=
66 + caps? ( >=sys-libs/libcap-ng-0.6.4 )
67 + dnstap? (
68 + dev-libs/fstrm
69 + dev-libs/protobuf-c
70 + )
71 + idn? (
72 + !libidn2? ( net-dns/libidn )
73 + libidn2? ( >=net-dns/libidn2-2.0.0 )
74 + )
75 + systemd? ( >=sys-apps/systemd-229 )
76 +"
77 +DEPEND="${RDEPEND}
78 + virtual/pkgconfig
79 + doc? ( dev-python/sphinx )
80 +"
81 +
82 +S="${WORKDIR}/${P/_/-}"
83 +
84 +src_configure() {
85 + local u
86 + local my_conf=()
87 + for u in "${KNOT_MODULES[@]#+}"; do
88 + my_conf+=("$(use_with $u module-$u)")
89 + done
90 +
91 + econf \
92 + --with-storage="${EPREFIX}/var/lib/${PN}" \
93 + --with-rundir="${EPREFIX}/var/run/${PN}" \
94 + $(use_enable fastparser) \
95 + $(use_enable dnstap) \
96 + $(use_enable doc documentation) \
97 + $(use_enable utils utilities) \
98 + --enable-systemd=$(usex systemd) \
99 + $(use_with idn libidn) \
100 + "${my_conf[@]}"
101 +}
102 +
103 +src_compile() {
104 + default
105 +
106 + if use doc; then
107 + emake -C doc html
108 + HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} )
109 + fi
110 +}
111 +
112 +src_test() {
113 + emake check
114 +}
115 +
116 +src_install() {
117 + default
118 +
119 + rmdir "${D}var/run/${PN}" "${D}var/run/" || die
120 + keepdir /var/lib/${PN}
121 +
122 + newinitd "${FILESDIR}/knot.init" knot
123 + if use systemd; then
124 + systemd_newunit "${FILESDIR}/knot-1.service" knot.service
125 + fi
126 +
127 + find "${D}" -name '*.la' -delete || die
128 +}
129 +
130 +pkg_postinst() {
131 + enewgroup knot 53
132 + enewuser knot 53 -1 /var/lib/knot knot
133 +}