#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# Enable full hardening.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--prefix=/usr \
		--sysconfdir=/etc/duo \
		--libdir=/usr/lib \
		--includedir=/usr/include \
		--with-pam=/lib64/security \
		--enable-lib64=yes

# Disable testsuite completely -- it is very broken on buildds
override_dh_auto_test:

override_dh_dwz:

override_dh_fixperms:
	dh_fixperms
	chmod 0600 debian/duo-unix/etc/duo/pam_duo.conf
