#!/usr/bin/make -f

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_clean:
	dh_clean
	rm -rf build dist MANIFEST

override_dh_auto_install:
	dh_auto_install
	mv debian/openxcap/etc/openxcap/config.ini.sample debian/openxcap/etc/openxcap/config.ini

override_dh_installsystemd:
	dh_installsystemd --no-start

override_dh_fixperms:
	dh_fixperms
	chmod 600 debian/openxcap/etc/openxcap/config.ini

override_dh_auto_test:
        # do not run tests as they require a configured openxcap server running

