summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:41:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:41:59 +0000
commitbe05184b2324848b4f33e6e5d9c716bc95f581f3 (patch)
tree4da6fcfe204d1694377e90c44b02f1b0790aabe8 /debian/rules
parentAdding upstream version 5.3.1. (diff)
downloadknot-resolver-2624c95abbe9afe0ae24d70d39754a8b4956d9ae.tar.xz
knot-resolver-2624c95abbe9afe0ae24d70d39754a8b4956d9ae.zip
Adding debian version 5.3.1-1+deb11u1.debian/5.3.1-1+deb11u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules56
1 files changed, 56 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..589b4a0
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,56 @@
+#!/usr/bin/make -f
+
+# see FEATURE AREAS in dpkg-buildflags(1)
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# see ENVIRONMENT in dpkg-buildflags(1)
+# package maintainers to append CFLAGS
+export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -fno-omit-frame-pointer
+# package maintainers to append LDFLAGS
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/default.mk
+
+ifneq (,$(findstring arm64,$(DEB_TARGET_ARCH)))
+ CONFIG_TESTS=disabled
+else
+ CONFIG_TESTS=enabled
+endif
+
+%:
+ dh $@
+
+override_dh_auto_configure:
+ dh_auto_configure -- \
+ -Dkeyfile_default=/usr/share/dns/root.key \
+ -Dinstall_root_keys=disabled \
+ -Dmanaged_ta=disabled \
+ -Droot_hints=/usr/share/dns/root.hints \
+ -Dinstall_kresd_conf=enabled \
+ -Dsystemd_files=enabled \
+ -Dclient=enabled \
+ -Dutils=enabled \
+ -Ddoc=enabled \
+ -Ddnstap=enabled \
+ -Dunit_tests=enabled \
+ -Dconfig_tests=$(CONFIG_TESTS) \
+ -Dextra_tests=disabled
+
+override_dh_auto_build:
+ dh_auto_build -- doc
+ dh_auto_build
+
+override_dh_auto_install:
+ sed -e's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' <debian/knot-resolver.postinst.in >debian/knot-resolver.postinst
+ dh_auto_install
+
+override_dh_installinit:
+ dh_installinit -pknot-resolver --name=kresd --no-start
+
+override_dh_missing:
+ dh_missing --fail-missing
+
+override_dh_installchangelogs:
+ dh_installchangelogs NEWS