]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: fix reproducibility issue in debian package build
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Mon, 24 Feb 2025 11:46:39 +0000 (12:46 +0100)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 4 Mar 2025 12:47:04 +0000 (13:47 +0100)
See http://bugs.debian.org/1098691

Apparently there are no guarantees on the shell behaviour.

builder-support/debian/recursor/debian-buster/recursor.conf [new file with mode: 0644]
builder-support/debian/recursor/debian-buster/rules

diff --git a/builder-support/debian/recursor/debian-buster/recursor.conf b/builder-support/debian/recursor/debian-buster/recursor.conf
new file mode 100644 (file)
index 0000000..c01dd0d
--- /dev/null
@@ -0,0 +1,12 @@
+dnssec:
+  # validation: process # default
+  trustanchorfile: /usr/share/dns/root.key
+recursor:
+  hint_file: /usr/share/dns/root.hints
+  include_dir: /etc/powerdns/recursor.d
+incoming:
+ # listen:
+ # - 127.0.0.1 # default
+outgoing:
+ # source_address:
+ # - 0.0.0.0 # default
index 0d9c68cc71304478661bb6d40a541b91b37cd2e4..4e9b72d7f6d79907e588cf7bddeb807190b6428d 100755 (executable)
@@ -47,20 +47,7 @@ override_dh_auto_install:
        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 # 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\
-       incoming:\n\
-        # listen:\n\
-        # - 127.0.0.1 # default\n\
-       outgoing:\n\
-        # source_address:\n\
-        # - 0.0.0.0 # default\n\
-       " > debian/pdns-recursor/etc/powerdns/recursor.conf
+       install -m 644 -t debian/pdns-recursor/etc/powerdns debian/recursor.conf
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))