#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--exec-prefix=/usr \
		--libexecdir=/usr/libexec \
		--with-bashcompletiondir=/usr/share/bash-completion/completions

override_dh_auto_install:
	dh_auto_install
	# debian/copyright references /usr/share/common-licenses/GPL-2
	# so don't ship a duplicate of the license text
	rm -f debian/mstpd/usr/share/doc/mstpd/LICENSE
