icinga2/debian/rules

44 lines
1.1 KiB
Plaintext
Raw Normal View History

#!/usr/bin/make -f
export DH_VERBOSE=1
%:
dh $@
override_dh_auto_clean:
# ensure icinga-version.h.fallback to be present
rm -rf debian-prebuild/
mkdir debian-prebuild
cd debian-prebuild/ && cmake ../debian/
cp debian-prebuild/icinga-version.h.fallback .
rm -rf debian-prebuild/
# now clean build dir
dh_auto_clean
rm -f config.log
rm -f config.status
override_dh_auto_configure:
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
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/*
override_dh_install:
dh_install
# remove ido files from other packages
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_*
override_dh_installinit:
dh_installinit --name=icinga2
# vi: noexpandtab :