#!/usr/bin/make -f
# -*- makefile -*-

export DH_VERBOSE=1

%:
	dh $@

override_dh_auto_configure:
	dh_testdir
	dh_auto_configure -- --sysconfdir=/etc/burp --localstatedir=/var --sbindir=\$${prefix}/sbin

override_dh_auto_test:
	# disable unit test ('check' framework) to avoid FTBFS in the Debian Package Auto-Building.
	# These test are executed with the Debian continuous integration system (debci).

override_dh_auto_install:
	dh_auto_install -- install-configs
	# remove duplicate files
	rm debian/burp/usr/share/doc/burp/LICENSE
	rm debian/burp/usr/share/doc/burp/CHANGELOG

override_dh_fixperms:
	dh_fixperms
	chmod 0600 debian/burp/etc/burp/burp.conf
	chmod 0600 debian/burp/etc/burp/burp-server.conf
	chmod 0700 debian/burp/etc/burp/clientconfdir
	chmod 0700 debian/burp/var/spool/burp

override_dh_installinit:
	# this package not use SysV anymore

override_dh_systemd_enable:
	dh_systemd_enable --no-enable
