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 0873C139694 for ; Thu, 25 May 2017 15:05:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9BB8621C132; Thu, 25 May 2017 15:04:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6865121C132 for ; Thu, 25 May 2017 15:04:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 0C5D03416D2 for ; Thu, 25 May 2017 15:04:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 458A27465 for ; Thu, 25 May 2017 15:04:55 +0000 (UTC) From: "Sven Wegener" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Wegener" Message-ID: <1495724686.38f6898fabe5d0954bed1b965a9217679b5b43d7.swegener@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/pdns-recursor/, net-dns/pdns-recursor/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/pdns-recursor/files/pdns-recursor-r1 net-dns/pdns-recursor/pdns-recursor-4.0.4-r1.ebuild X-VCS-Directories: net-dns/pdns-recursor/files/ net-dns/pdns-recursor/ X-VCS-Committer: swegener X-VCS-Committer-Name: Sven Wegener X-VCS-Revision: 38f6898fabe5d0954bed1b965a9217679b5b43d7 X-VCS-Branch: master Date: Thu, 25 May 2017 15:04:55 +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: afa4691e-d475-49e0-bdf6-ed2bd6608984 X-Archives-Hash: a57e69d59e12eed5e75a2f29b7cb9113 commit: 38f6898fabe5d0954bed1b965a9217679b5b43d7 Author: Sven Wegener gentoo org> AuthorDate: Sun May 14 13:26:33 2017 +0000 Commit: Sven Wegener gentoo org> CommitDate: Thu May 25 15:04:46 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38f6898f net-dns/pdns-recursor: Update init script Package-Manager: Portage-2.3.5, Repoman-2.3.2 net-dns/pdns-recursor/files/pdns-recursor-r1 | 37 +++++++++++ .../pdns-recursor/pdns-recursor-4.0.4-r1.ebuild | 75 ++++++++++++++++++++++ 2 files changed, 112 insertions(+) diff --git a/net-dns/pdns-recursor/files/pdns-recursor-r1 b/net-dns/pdns-recursor/files/pdns-recursor-r1 new file mode 100644 index 00000000000..57c9df1eaa4 --- /dev/null +++ b/net-dns/pdns-recursor/files/pdns-recursor-r1 @@ -0,0 +1,37 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +PDNS_CONFIGDIR="${PDNS_CONFIGDIR:-/etc/powerdns}" + +PDNS_CONFIG="${PDNS_CONFIGDIR}/recursor.conf" +PDNS_CHROOTDIR="$( awk -F = '$1 == "chroot" { print $2 }' "${PDNS_CONFIG}" )" +PDNS_SOCKETDIR="$( awk -F = '$1 == "socket-dir" { print $2 }' "${PDNS_CONFIG}" )" +[ -z "${PDNS_SOCKETDIR}" -a -z "${PDNS_CHROOTDIR}" ] && PDNS_SOCKETDIR="/var/run" + +name="PowerDNS Recursor" +description="Recursive name server" + +extra_started_commands="ping" +description_ping="Ping the PowerDNS instance" + +command="/usr/sbin/pdns_recursor" +command_args="--config-dir=${PDNS_CONFIGDIR}" +command_args_foreground="--daemon=no" +command_args_background="--daemon=yes" +yesno ${rc_verbose} || command_args_background="${command_args_background} >/dev/null 2>&1" + +pidfile="${PDNS_CHROOTDIR}/${PDNS_SOCKETDIR}/pdns_recursor.pid" + +control_command="/usr/bin/rec_control" +control_command_args="${command_args}" + +depend() { + need net +} + +ping() { + ebegin "Pinging ${name}" + ${control_command} ${control_command_args} ping >/dev/null 2>&1 + eend $? +} diff --git a/net-dns/pdns-recursor/pdns-recursor-4.0.4-r1.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.0.4-r1.ebuild new file mode 100644 index 00000000000..b748e27b710 --- /dev/null +++ b/net-dns/pdns-recursor/pdns-recursor-4.0.4-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs flag-o-matic eutils versionator + +DESCRIPTION="The PowerDNS Recursor" +HOMEPAGE="https://www.powerdns.com/" +SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="lua luajit protobuf systemd" +REQUIRED_USE="?? ( lua luajit )" + +DEPEND="lua? ( >=dev-lang/lua-5.1:= ) + luajit? ( dev-lang/luajit:= ) + protobuf? ( + dev-libs/protobuf + >=dev-libs/boost-1.42 + ) + systemd? ( sys-apps/systemd:0= ) + >=dev-libs/boost-1.35" +RDEPEND="${DEPEND} + !