#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	    -Dsystemd=enabled \
	    -Dlatency-stats=enabled \
	    -Doidc-auth=enabled \
	    -Dlocal-llhttp=false \
	    -Dtun-tests=false \
	    -Droot-tests=false

override_dh_installsystemd:
	dh_installsystemd --no-stop-on-upgrade --no-enable --no-start ocserv.service

override_dh_auto_test:
	# Run the suite for smoke coverage but do not fail the build on it,
	# enforcement happens in autopkgtest (debian/tests).
	-dh_auto_test
