From: Otto Moerbeek Date: Mon, 24 Jun 2024 07:12:58 +0000 (+0200) Subject: rec: tweak debian install, as suggested by @zeha X-Git-Tag: rec-5.2.0-alpha0^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fc89e6a3801f530aa46935f907685355c90bd7d3;p=thirdparty%2Fpdns.git rec: tweak debian install, as suggested by @zeha --- diff --git a/builder-support/debian/recursor/debian-buster/pdns-recursor.maintscript b/builder-support/debian/recursor/debian-buster/pdns-recursor.maintscript new file mode 100644 index 0000000000..da8d7e4e69 --- /dev/null +++ b/builder-support/debian/recursor/debian-buster/pdns-recursor.maintscript @@ -0,0 +1,3 @@ +# must support Ubuntu focal, with dpkg 1.19.7 +rm_conffile /etc/powerdns/recursor.lua 5.1~ + diff --git a/builder-support/debian/recursor/debian-buster/recursor.lua b/builder-support/debian/recursor/debian-buster/recursor.lua deleted file mode 100644 index 1d670a572e..0000000000 --- a/builder-support/debian/recursor/debian-buster/recursor.lua +++ /dev/null @@ -1,7 +0,0 @@ --- Debian default Lua configuration file for PowerDNS Recursor - --- Load DNSSEC root keys from dns-root-data package. --- Note: If you provide your own Lua configuration file, consider --- running rootkeys.lua too. -dofile("/usr/share/pdns-recursor/lua-config/rootkeys.lua") - diff --git a/builder-support/debian/recursor/debian-buster/rules b/builder-support/debian/recursor/debian-buster/rules index 2806c456a8..519d9ef6d9 100755 --- a/builder-support/debian/recursor/debian-buster/rules +++ b/builder-support/debian/recursor/debian-buster/rules @@ -34,26 +34,23 @@ override_dh_auto_configure: override_dh_auto_install: dh_auto_install - install -d debian/pdns-recursor/usr/share/pdns-recursor/lua-config - install -m 644 -t debian/pdns-recursor/usr/share/pdns-recursor/lua-config debian/lua-config/rootkeys.lua - install -m 644 -t debian/pdns-recursor/etc/powerdns debian/recursor.lua install -d debian/pdns-recursor/usr/share/pdns-recursor/snmp install -m 644 -t debian/pdns-recursor/usr/share/pdns-recursor/snmp RECURSOR-MIB.txt rm -f debian/pdns-recursor/etc/powerdns/recursor.conf-dist rm -f debian/pdns-recursor/etc/powerdns/recursor.yml-dist @echo "\ dnssec:\n\ - # validation: process\n\ + # validation: process # default\n\ + trustanchorfile: /usr/share/dns/root.key\n\ recursor:\n\ hint_file: /usr/share/dns/root.hints\n\ include_dir: /etc/powerdns/recursor.d\n\ - lua_config_file: /etc/powerdns/recursor.lua\n\ incoming:\n\ # listen:\n\ - # - 127.0.0.1\n\ + # - 127.0.0.1 # default\n\ outgoing:\n\ # source_address:\n\ - # - 0.0.0.0\n\ + # - 0.0.0.0 # default\n\ " > debian/pdns-recursor/etc/powerdns/recursor.conf override_dh_auto_test: