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 EF9E413832E for ; Tue, 19 Jul 2016 22:03:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02B3821C065; Tue, 19 Jul 2016 22:03:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 85B0621C01D for ; Tue, 19 Jul 2016 22:03:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8C2B0340D11 for ; Tue, 19 Jul 2016 22:03:45 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ACFE57D2 for ; Tue, 19 Jul 2016 22:03:42 +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: <1468965769.5150f75e101d89f146fb2286e768b12ac0c823d0.swegener@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/pdns-recursor/files/, net-dns/pdns-recursor/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/pdns-recursor/files/pdns-recursor net-dns/pdns-recursor/pdns-recursor-4.0.0.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: 5150f75e101d89f146fb2286e768b12ac0c823d0 X-VCS-Branch: master Date: Tue, 19 Jul 2016 22:03:42 +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: d9c575e0-347d-460f-8ff0-73a76735f0a1 X-Archives-Hash: fb507ce7e984e2b71ec8a32da5400c2a commit: 5150f75e101d89f146fb2286e768b12ac0c823d0 Author: Sven Wegener gentoo org> AuthorDate: Tue Jul 19 21:23:10 2016 +0000 Commit: Sven Wegener gentoo org> CommitDate: Tue Jul 19 22:02:49 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5150f75e net-dns/pdns-recursor: Rename init script, bug #322581 Package-Manager: portage-2.2.28 Signed-off-by: Sven Wegener gentoo.org> net-dns/pdns-recursor/files/pdns-recursor | 28 ++++++++++++++++++++++++ net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/net-dns/pdns-recursor/files/pdns-recursor b/net-dns/pdns-recursor/files/pdns-recursor new file mode 100644 index 0000000..151176b --- /dev/null +++ b/net-dns/pdns-recursor/files/pdns-recursor @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +extra_started_commands="ping" + +depend() { + need net +} + +start() { + ebegin "Starting PowerDNS Recursor" + /usr/sbin/pdns_recursor --daemon=yes &>/dev/null + eend $? +} + +stop() { + ebegin "Stopping PowerDNS Recursor" + /usr/sbin/rec_control quit &>/dev/null + eend $? +} + +ping() { + ebegin "Pinging PowerDNS Recursor" + /usr/sbin/rec_control ping &>/dev/null + eend $? +} diff --git a/net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild index ac2fe3d..4fd1a47 100644 --- a/net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild +++ b/net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild @@ -50,7 +50,7 @@ src_install() { insinto /etc/powerdns doins "${FILESDIR}"/recursor.conf - doinitd "${FILESDIR}"/precursor + doinitd "${FILESDIR}"/pdns-recursor # Pretty ugly, uh? dodir /var/lib/powerdns/var/lib