8 override_dh_auto_clean:
9 ifeq ($(shell test -d .git && echo "git"),git) # verify we are in a GIT repo
10 # ensure icinga-version.h.fallback to be present
11 rm -rf debian-prebuild/
13 cd debian-prebuild/ && cmake ../debian/
14 cp debian-prebuild/icinga-version.h.fallback .
15 rm -rf debian-prebuild/
22 override_dh_auto_configure:
23 dh_auto_configure -- \
24 -DCMAKE_INSTALL_LOCALSTATEDIR=/var \
25 -DCMAKE_INSTALL_SYSCONFDIR=/etc \
26 -DICINGA2_USER=nagios \
27 -DICINGA2_GROUP=nagios \
28 -DICINGA2_COMMAND_USER=nagios \
29 -DICINGA2_COMMAND_GROUP=www-data
31 override_dh_auto_install:
33 # remove features-enabled - these will be activated by postinst later
34 rm -r debian/tmp/etc/icinga2/features-enabled/*
38 # remove ido files from other packages
39 if [ -d debian/icinga2-common/ ]; then rm debian/icinga2-common/etc/icinga2/features-available/ido-*; fi
40 rm debian/icinga2-bin/usr/lib/*/icinga2/libdb_ido_*
42 override_dh_installinit:
43 dh_installinit --name=icinga2
45 .PHONY: override_dh_strip
47 dh_strip --dbg-package=icinga2-dbg