#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --buildsystem=meson

override_dh_auto_configure:

	@# Don't build with SLP support for now, openslp-dfsg is
	@# orphaned (#565361), and will likely not be part of
	@# Stretch (#795428).
	dh_auto_configure -- \
		-Dsecurity=enabled \
		-Dslp=disabled \
		-Drundir=/run

override_dh_auto_test:
	echo 'dh_auto_test disabled due to meson test failing'

override_dh_installinit:
	dh_installinit -popen-isns-server --name=isnsd
	dh_installinit -popen-isns-discoveryd --name=isnsdd --no-start
	dh_installinit --remaining-packages

override_dh_makeshlibs:
	dh_makeshlibs -plibisns0t64 --add-udeb="libisns-udeb"
	dh_makeshlibs --remaining-packages
