diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:26:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:26:01 +0000 |
commit | ef03469fec14f1f0358b690934fc173d744f4e7d (patch) | |
tree | 8be439d7b2f1d7c8283b745919b9e66481a950e7 /debian/rules | |
parent | Adding upstream version 5.6.0. (diff) | |
download | knot-resolver-ef03469fec14f1f0358b690934fc173d744f4e7d.tar.xz knot-resolver-ef03469fec14f1f0358b690934fc173d744f4e7d.zip |
Adding debian version 5.6.0-1.debian/5.6.0-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..44e6bc4 --- /dev/null +++ b/debian/rules @@ -0,0 +1,57 @@ +#!/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 \ + -Dmalloc=jemalloc + +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 |