#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@ --with openrc,runit,s6,66

override_dh_auto_configure:
	# upstream tarball is without configure. autogen.sh will create it
	NOCONFIGURE=1 ./autogen.sh
	dh_auto_configure $(DHFLAGS)

override_dh_auto_install:
	dh_auto_install
	rm -rf debian/nodm/usr/lib/systemd

override_dh_auto_test:
	#make check

override_dh_installinit:
	dh_installinit --no-scripts


get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..
