From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 345021396D2 for ; Tue, 22 Aug 2017 09:07:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80A27E0E33; Tue, 22 Aug 2017 09:07:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 608BDE0E3A for ; Tue, 22 Aug 2017 09:07:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 575F1341ADA for ; Tue, 22 Aug 2017 09:07:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 456647E77 for ; Tue, 22 Aug 2017 09:07:13 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1503392819.39c7aed0eb459dc9a3b91dbca053e50acc577fe3.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/knot/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/knot/knot-2.5.3-r1.ebuild X-VCS-Directories: net-dns/knot/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 39c7aed0eb459dc9a3b91dbca053e50acc577fe3 X-VCS-Branch: master Date: Tue, 22 Aug 2017 09:07:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 513c8e8e-4b2a-4d14-98cf-33f46745d5f7 X-Archives-Hash: 8390bd36bf79206d26e9fad855bb1a27 commit: 39c7aed0eb459dc9a3b91dbca053e50acc577fe3 Author: Pierre-Olivier Mercier nemunai re> AuthorDate: Wed Aug 16 11:32:37 2017 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Aug 22 09:06:59 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39c7aed0 net-dns/knot: clean the ebuild and fix QA issues net-dns/knot/knot-2.5.3-r1.ebuild | 76 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/net-dns/knot/knot-2.5.3-r1.ebuild b/net-dns/knot/knot-2.5.3-r1.ebuild new file mode 100644 index 00000000000..5ffb533485e --- /dev/null +++ b/net-dns/knot/knot-2.5.3-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit systemd user + +DESCRIPTION="High-performance authoritative-only DNS server" +HOMEPAGE="http://www.knot-dns.cz/" +SRC_URI="https://secure.nic.cz/files/knot-dns/${P/_/-}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dnstap doc caps +fastparser idn systemd" + +RDEPEND=" + >=net-libs/gnutls-3.3:= + >=dev-db/lmdb-0.9.15 + >=dev-libs/userspace-rcu-0.5.4 + caps? ( >=sys-libs/libcap-ng-0.6.4 ) + dnstap? ( + dev-libs/fstrm + dev-libs/protobuf-c + ) + idn? ( || ( net-dns/libidn >=net-dns/libidn2-2.0.0 ) ) + dev-libs/libedit + systemd? ( sys-apps/systemd ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( dev-python/sphinx ) +" + +S="${WORKDIR}/${P/_/-}" + +src_configure() { + econf \ + --with-storage="${EPREFIX}/var/lib/${PN}" \ + --with-rundir="${EPREFIX}/var/run/${PN}" \ + $(use_enable fastparser) \ + $(use_enable dnstap) \ + $(use_enable doc documentation) \ + $(use_with idn libidn) \ + --enable-systemd=$(usex systemd) +} + +src_compile() { + default + + if use doc; then + emake -C doc html + HTML_DOCS=( doc/_build/html/{*.html,*.js,_sources,_static} ) + fi +} + +src_test() { + emake check +} + +src_install() { + default + + rmdir "${D}var/run/${PN}" "${D}var/run/" || die + keepdir /var/lib/${PN} + + newinitd "${FILESDIR}/knot.init" knot + systemd_dounit "${FILESDIR}/knot.service" + + find "${D}" -name '*.la' -delete || die +} + +pkg_postinst() { + enewgroup knot 53 + enewuser knot 53 -1 /var/lib/knot knot +}