#!/usr/bin/make -f

#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	# CVE-2026-54371: keep the new --restore safety warnings out of the
	# stable release; the -P (--physical) hardening itself is unaffected.
	dh_auto_configure -- --disable-unsafe-restore-warnings

override_dh_auto_test:
	dh_auto_test || true

override_dh_installchangelogs:
	dh_installchangelogs doc/CHANGES

override_dh_makeshlibs:
	dh_makeshlibs -N libattr1
	dh_makeshlibs -p libattr1 -V 'libattr1 (>= 1:2.4.48)'
