public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sven Wegener" <swegener@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/pdns-recursor/, net-dns/pdns-recursor/files/
Date: Tue, 19 Jul 2016 22:03:42 +0000 (UTC)	[thread overview]
Message-ID: <1468965769.ff3fb60e40daf53c31d241107e8ffb3497d11583.swegener@gentoo> (raw)

commit:     ff3fb60e40daf53c31d241107e8ffb3497d11583
Author:     Sven Wegener <swegener <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 19 21:08:11 2016 +0000
Commit:     Sven Wegener <swegener <AT> gentoo <DOT> 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 <swegener <AT> 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
 


             reply	other threads:[~2016-07-19 22:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-19 22:03 Sven Wegener [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-11-20 21:08 [gentoo-commits] repo/gentoo:master commit in: net-dns/pdns-recursor/, net-dns/pdns-recursor/files/ Sven Wegener
2017-05-25 15:04 Sven Wegener
2017-10-30 13:27 Sven Wegener
2017-11-27 17:37 Sven Wegener
2017-12-03 22:42 Sven Wegener
2017-12-04 15:46 Sven Wegener
2020-03-11 13:43 Sven Wegener
2020-05-20 21:32 Sven Wegener
2020-07-22 19:38 Sven Wegener
2022-04-02 14:09 Sven Wegener
2022-04-04 12:01 Sven Wegener
2023-02-16 21:20 Sven Wegener
2023-04-02 19:07 Sven Wegener

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1468965769.ff3fb60e40daf53c31d241107e8ffb3497d11583.swegener@gentoo \
    --to=swegener@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox