]> granicus.if.org Git - icinga2/blob - debian/rules
Fix the .bundle validation.
[icinga2] / debian / rules
1 #!/usr/bin/make -f
2
3 export DH_VERBOSE=1
4
5 %:
6         dh $@
7
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/
12         mkdir debian-prebuild
13         cd debian-prebuild/ && cmake ../debian/
14         cp debian-prebuild/icinga-version.h.fallback .
15         rm -rf debian-prebuild/
16 endif
17         # now clean build dir
18         dh_auto_clean
19         rm -f config.log
20         rm -f config.status
21
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
30
31 override_dh_auto_install:
32         dh_auto_install
33         # remove features-enabled - these will be activated by postinst later
34         rm -r debian/tmp/etc/icinga2/features-enabled/*
35
36 override_dh_install:
37         dh_install
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_*
41
42 override_dh_installinit:
43         dh_installinit --name=icinga2
44
45 .PHONY: override_dh_strip
46 override_dh_strip:
47         dh_strip --dbg-package=icinga2-dbg
48
49 # vi: noexpandtab :