From ff3fb60e40daf53c31d241107e8ffb3497d11583 Mon Sep 17 00:00:00 2001 From: Sven Wegener Date: Tue, 19 Jul 2016 21:08:11 +0000 Subject: net-dns/pdns-recursor: Switch src_install() to upstream automake Package-Manager: portage-2.2.28 Signed-off-by: Sven Wegener --- 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(-) (limited to 'net-dns/pdns-recursor') diff --git a/net-dns/pdns-recursor/files/pdns-recursor b/net-dns/pdns-recursor/files/pdns-recursor index 151176b5ad0e..f114d5be4a2d 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 4fd1a47d7d59..392772611d4b 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 -- cgit v1.2.3-65-gdbad