Gentoo Archives: gentoo-commits

From: Patrick Lauer <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/knot/
Date: Mon, 27 Feb 2017 11:12:27
Message-Id: 1488193939.d87974cf9dbb10870d3447e6f11459662a6b1135.patrick@gentoo
1 commit: d87974cf9dbb10870d3447e6f11459662a6b1135
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 27 11:12:00 2017 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 27 11:12:19 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d87974cf
7
8 net-dns/knot: Bump
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 net-dns/knot/Manifest | 1 +
13 net-dns/knot/knot-2.4.1.ebuild | 79 ++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 80 insertions(+)
15
16 diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest
17 index 8d39d5569e..686f20225a 100644
18 --- a/net-dns/knot/Manifest
19 +++ b/net-dns/knot/Manifest
20 @@ -1 +1,2 @@
21 DIST knot-2.3.3.tar.xz 1071160 SHA256 a929bce3b957a81776b1db7b43b0e4473339bf16be8dbba5abb4b0593bf43c94 SHA512 ed7b93c2d0ae15819d09a8bf77c2d12505a035dcd7777e9ac453b58c36d302c3cbaa2766e1f6d2163a71234d005494a7d9b5be436c0e16b443de4da97f7a5d9f WHIRLPOOL 4bdf92d537d90e2ad412bb0619a7b4b8f0752c9dc981b3522beece19514f22d88db083e59c0f833d9492b0a1f8d347e008350d108d4c7337c9ee748d007bbde7
22 +DIST knot-2.4.1.tar.xz 1104576 SHA256 c064ddf99bf5fc24dd3c6a3a523394760357e204c8b69f0e691e49bc0d9b704c SHA512 2b3e6c1a187538b218e3e915aaa91bc38ad4cdecb0f03f31b29bfa83c620d117c169a580ddcc8a33e6422109b422c72f3cf79f2a8d1e10e613edfe4437b4b29c WHIRLPOOL 538b8433efced9afe57d3d34216d3a4981a4c637e813b1601ca360f9eb8c7c903051ca5dbff3248b138129e80388a673e9177b8340e1e465b737686d4d2528e8
23
24 diff --git a/net-dns/knot/knot-2.4.1.ebuild b/net-dns/knot/knot-2.4.1.ebuild
25 new file mode 100644
26 index 0000000000..001d4eacac
27 --- /dev/null
28 +++ b/net-dns/knot/knot-2.4.1.ebuild
29 @@ -0,0 +1,79 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=6
35 +
36 +inherit bash-completion-r1 eutils systemd user
37 +
38 +DESCRIPTION="High-performance authoritative-only DNS server"
39 +HOMEPAGE="http://www.knot-dns.cz/"
40 +SRC_URI="https://secure.nic.cz/files/knot-dns/${P/_/-}.tar.xz"
41 +
42 +LICENSE="GPL-3"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="debug dnstap doc caps +fastparser idn systemd"
46 +
47 +RDEPEND="
48 + >=net-libs/gnutls-3.3:=
49 + >=dev-libs/jansson-2.3
50 + >=dev-db/lmdb-0.9.15
51 + >=dev-libs/userspace-rcu-0.5.4
52 + caps? ( >=sys-libs/libcap-ng-0.6.4 )
53 + dnstap? (
54 + dev-libs/fstrm
55 + dev-libs/protobuf-c
56 + )
57 + idn? ( net-dns/libidn )
58 + dev-libs/libedit
59 + systemd? ( sys-apps/systemd )
60 +"
61 +DEPEND="${RDEPEND}
62 + virtual/pkgconfig
63 + doc? ( dev-python/sphinx )
64 +"
65 +
66 +S="${WORKDIR}/${P/_/-}"
67 +
68 +src_configure() {
69 + econf \
70 + --with-storage="${EPREFIX}/var/lib/${PN}" \
71 + --with-rundir="${EPREFIX}/var/run/${PN}" \
72 + --with-lmdb \
73 + --with-bash-completions="$(get_bashcompdir)" \
74 + $(use_enable fastparser) \
75 + $(use_enable debug debug server,zones,ns,loader,dnssec) \
76 + $(use_enable debug debuglevel details) \
77 + $(use_enable dnstap) \
78 + $(use_enable doc documentation) \
79 + $(use_with idn libidn) \
80 + --enable-systemd=$(usex systemd)
81 +}
82 +
83 +src_compile() {
84 + default
85 +
86 + if use doc; then
87 + emake -C doc html
88 + HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} )
89 + fi
90 +}
91 +
92 +src_test() {
93 + emake check
94 +}
95 +
96 +src_install() {
97 + default
98 +
99 + keepdir /var/lib/${PN}
100 +
101 + newinitd "${FILESDIR}/knot.init" knot
102 + systemd_dounit "${FILESDIR}/knot.service"
103 +}
104 +
105 +pkg_postinst() {
106 + enewgroup knot 53
107 + enewuser knot 53 -1 /var/lib/knot knot
108 +}