#!/usr/bin/make -f # Enable compiler hardening flags. export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow # Set the user environment variable required by the test suite. export USER=testuser # Get vendorarch path ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}') PACKAGE := $(shell dh_listpackages) override_dh_auto_configure: dh_auto_configure -- LIBS="-lsasl2" DEFINE="-DSASL2" override_dh_auto_test: dh_auto_test override_dh_fixperms: chmod 644 debian/$(PACKAGE)$(ARCHLIB)/Authen/SASL/Cyrus.pod dh_fixperms %: dh $@