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

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with autoreconf,systemd

override_dh_auto_test:
	echo "Skipping tests for now"

override_dh_auto_install:
	dh_auto_install
# we can't ship the upstream init script, it uses startproc
	rm -v debian/tmp/etc/init.d/booth-arbitrator
	rm -v debian/tmp/usr/share/doc/booth/COPYING

override_dh_install:
	dh_install --fail-missing --exclude=.md5

# 1) booth should be started through pacemaker. So, neither enable nor
#    start the service.
# 2) booth-arbitrator should be enabled manually to not conflict with
#    pacemaker setups.
override_dh_systemd_enable:
	dh_systemd_enable --no-enable

override_dh_systemd_start:
	dh_systemd_start --no-start
