2013-11-01 21:35:55 +01:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2013-11-08 13:07:20 +01:00
|
|
|
export DH_VERBOSE=1
|
2013-11-01 21:35:55 +01:00
|
|
|
|
|
|
|
%:
|
2013-11-08 13:07:20 +01:00
|
|
|
dh $@
|
2013-11-01 21:35:55 +01:00
|
|
|
|
|
|
|
override_dh_auto_clean:
|
2013-11-27 14:55:14 +01:00
|
|
|
# configure icinga2 to get icinga-version.h
|
|
|
|
dh_auto_configure
|
|
|
|
# now clean build dir
|
2013-11-01 21:35:55 +01:00
|
|
|
dh_auto_clean
|
|
|
|
rm -f config.log
|
|
|
|
rm -f config.status
|
|
|
|
|
|
|
|
override_dh_auto_configure:
|
2013-11-08 13:07:20 +01:00
|
|
|
dh_auto_configure -- \
|
|
|
|
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
|
|
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
|
|
|
-DICINGA2_USER=nagios \
|
|
|
|
-DICINGA2_GROUP=nagios \
|
|
|
|
-DICINGA2_COMMAND_USER=nagios \
|
|
|
|
-DICINGA2_COMMAND_GROUP=www-data
|
2013-11-01 21:35:55 +01:00
|
|
|
|
2013-12-04 19:06:43 +01:00
|
|
|
override_dh_auto_install:
|
|
|
|
dh_auto_install
|
|
|
|
# remove features-enabled - these will be activated by postinst later
|
|
|
|
rm -r debian/tmp/etc/icinga2/features-enabled/*
|
|
|
|
|
2013-11-01 21:35:55 +01:00
|
|
|
override_dh_install:
|
|
|
|
dh_install
|
|
|
|
# remove ido files from other packages
|
2013-11-08 13:07:20 +01:00
|
|
|
if [ -d debian/icinga2-common/ ]; then rm debian/icinga2-common/etc/icinga2/features-available/ido-*; fi
|
|
|
|
rm debian/icinga2-bin/usr/lib/*/icinga2/libdb_ido_*
|
2013-11-01 21:35:55 +01:00
|
|
|
|
|
|
|
override_dh_installinit:
|
|
|
|
dh_installinit --name=icinga2
|
|
|
|
|
|
|
|
# vi: noexpandtab :
|