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 39A9413832E for ; Tue, 19 Jul 2016 22:03:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AF93B21C07B; Tue, 19 Jul 2016 22:03:48 +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 D125E21C07B for ; Tue, 19 Jul 2016 22:03:47 +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 02764340D0D for ; Tue, 19 Jul 2016 22:03:47 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BE8BD7D9 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.ff3fb60e40daf53c31d241107e8ffb3497d11583.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 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: ff3fb60e40daf53c31d241107e8ffb3497d11583 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: 2e97502e-6082-403b-9910-b5beca642ce7 X-Archives-Hash: 20c6127a5d236d42901d38dcf5be7fe0 commit: ff3fb60e40daf53c31d241107e8ffb3497d11583 Author: Sven Wegener gentoo org> AuthorDate: Tue Jul 19 21:08:11 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=ff3fb60e net-dns/pdns-recursor: Switch src_install() to upstream automake Package-Manager: portage-2.2.28 Signed-off-by: Sven Wegener gentoo.org> net-dns/pdns-recursor/files/pdns-recursor | 4 ++-- net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild | 13 +++++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/net-dns/pdns-recursor/files/pdns-recursor b/net-dns/pdns-recursor/files/pdns-recursor index 151176b..f114d5b 100644 --- a/net-dns/pdns-recursor/files/pdns-recursor +++ b/net-dns/pdns-recursor/files/pdns-recursor @@ -17,12 +17,12 @@ start() { stop() { ebegin "Stopping PowerDNS Recursor" - /usr/sbin/rec_control quit &>/dev/null + /usr/bin/rec_control quit &>/dev/null eend $? } ping() { ebegin "Pinging PowerDNS Recursor" - /usr/sbin/rec_control ping &>/dev/null + /usr/bin/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 4fd1a47..3927726 100644 --- a/net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild +++ b/net-dns/pdns-recursor/pdns-recursor-4.0.0.ebuild @@ -44,11 +44,16 @@ src_configure() { } src_install() { - dosbin pdns_recursor rec_control - doman pdns_recursor.1 rec_control.1 + default - insinto /etc/powerdns - doins "${FILESDIR}"/recursor.conf + mv "${D}"/etc/powerdns/recursor.conf{-dist,} + + # set defaults: setuid=nobody, setgid=nobody + sed -i \ + -e 's/^# set\([ug]\)id=$/set\1id=nobody/' \ + -e 's/^# quiet=/quiet=on/' \ + -e 's/^# chroot=/chroot=\/var\/lib\/powerdns/' \ + "${D}"/etc/powerdns/recursor.conf doinitd "${FILESDIR}"/pdns-recursor