mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-dns/pdns-recursor: Switch src_install() to upstream automake
Package-Manager: portage-2.2.28 Signed-off-by: Sven Wegener <swegener@gentoo.org>
This commit is contained in:
@@ -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 $?
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user