]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: keep Lua config as existing configs might use it 14384/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 25 Jun 2024 14:31:48 +0000 (16:31 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 26 Jun 2024 10:54:40 +0000 (12:54 +0200)
builder-support/debian/recursor/debian-buster/pdns-recursor.maintscript
builder-support/debian/recursor/debian-buster/recursor.lua [new file with mode: 0644]
builder-support/debian/recursor/debian-buster/rules

index da8d7e4e696e650119a6bdbb83277a89a89ab077..ce9c72d156ad78bc0ec8db2147bd054cebbc2b39 100644 (file)
@@ -1,3 +1,4 @@
 # must support Ubuntu focal, with dpkg 1.19.7
-rm_conffile /etc/powerdns/recursor.lua 5.1~
+# Enable the line below once we fully moved to YAML configuration
+#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
new file mode 100644 (file)
index 0000000..1d670a5
--- /dev/null
@@ -0,0 +1,7 @@
+-- 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")
+
index 519d9ef6d9cdf0c3fcd54afd70eb39ead9bc44fb..eee8834436c09cef4801d30331d6bb747b71c251 100755 (executable)
@@ -32,8 +32,12 @@ override_dh_auto_configure:
                --enable-dnstap \
                --enable-nod
 
+# Stop installing the Lua config files once we fully moved to YAML configuration
 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