#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --with-openssl --with-gnutls --without-cuse \
		--with-tss-user=swtpm --with-tss-group=swtpm

override_dh_install:
	dh_install
	# deploy swtpm's apparmor profile
	dh_apparmor -pswtpm --profile-name=usr.bin.swtpm

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	SWTPM_TEST_SECCOMP_OPT="--seccomp action=none" make -j4 check VERBOSE=1
endif
