diff options
author | Sven Wegener <swegener@gentoo.org> | 2024-08-11 22:17:04 +0200 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2024-08-11 22:30:01 +0200 |
commit | a810d43b4f65c1159e25636f393634eac81ec810 (patch) | |
tree | 6083190119c22a8990542444783ae83cbdf5b62e /net-dns/pdns-recursor/files/pdns-recursor-r3 | |
parent | net-dns/pdns: drop 4.8.4, 4.9.0 (diff) | |
download | gentoo-a810d43b4f65c1159e25636f393634eac81ec810.tar.gz gentoo-a810d43b4f65c1159e25636f393634eac81ec810.tar.bz2 gentoo-a810d43b4f65c1159e25636f393634eac81ec810.zip |
net-dns/pdns-recursor: add 5.1.1
This version uses the new yaml configuration format. The old configuration file
format is still supported for now, but existing configurations should be updated.
Bug: https://bugs.gentoo.org/927991
Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'net-dns/pdns-recursor/files/pdns-recursor-r3')
-rw-r--r-- | net-dns/pdns-recursor/files/pdns-recursor-r3 | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net-dns/pdns-recursor/files/pdns-recursor-r3 b/net-dns/pdns-recursor/files/pdns-recursor-r3 new file mode 100644 index 000000000000..02f8408e275b --- /dev/null +++ b/net-dns/pdns-recursor/files/pdns-recursor-r3 @@ -0,0 +1,31 @@ +#!/sbin/openrc-run +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +PDNS_CONFIGDIR="${PDNS_CONFIGDIR:-/etc/powerdns}" +[ "${RC_SVCNAME}" != "pdns-recursor" ] && PDNS_INSTANCE="${RC_SVCNAME#pdns-recursor.}" || PDNS_INSTANCE="" + +name="PowerDNS Recursor" +description="Recursive name server" + +extra_started_commands="ping" +description_ping="Ping the PowerDNS instance" + +command="/usr/sbin/pdns_recursor" +command_args="--config-dir=${PDNS_CONFIGDIR}${PDNS_INSTANCE:+ --config-name=${PDNS_INSTANCE}} --write-pid=yes" +command_args_foreground="--daemon=no" +command_args_background="--daemon=yes" +yesno ${rc_verbose} || command_args_background="${command_args_background} >/dev/null 2>&1" + +control_command="/usr/bin/rec_control" +control_command_args="${command_args}" + +depend() { + need net +} + +ping() { + ebegin "Pinging ${name}" + ${control_command} ${control_command_args} ping >/dev/null 2>&1 + eend $? +} |