2013-11-01 21:35:55 +01:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
2013-11-02 01:18:58 +01:00
|
|
|
export NOCONFIGURE=1
|
2013-11-01 21:35:55 +01:00
|
|
|
|
|
|
|
%:
|
2013-11-02 01:18:58 +01:00
|
|
|
dh $@ --with autotools-dev
|
2013-11-01 21:35:55 +01:00
|
|
|
|
|
|
|
override_dh_auto_clean:
|
|
|
|
dh_auto_clean
|
|
|
|
rm -f config.log
|
|
|
|
rm -f config.status
|
|
|
|
|
|
|
|
override_dh_auto_configure:
|
2013-11-02 01:18:58 +01:00
|
|
|
./autogen.sh
|
2013-11-01 21:35:55 +01:00
|
|
|
dh_auto_configure -- --enable-python \
|
|
|
|
--with-icinga-user=root \
|
|
|
|
--with-icinga-group=bin \
|
|
|
|
--with-icingacmd-user=root \
|
|
|
|
--with-icingacmd-group=bin
|
|
|
|
|
|
|
|
override_dh_auto_install:
|
|
|
|
dh_auto_install
|
|
|
|
# cleanup dependencies in .la files
|
|
|
|
sed -i "/dependency_libs/ s/'.*'/''/" `find debian/tmp/ -name '*.la'`
|
|
|
|
|
|
|
|
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-mysql*; fi
|
|
|
|
rm debian/icinga2-bin/usr/lib/*/icinga2/libdb_ido_mysql*
|
|
|
|
|
|
|
|
override_dh_installinit:
|
|
|
|
dh_installinit --name=icinga2
|
|
|
|
|
|
|
|
# vi: noexpandtab :
|