File: rules

package info (click to toggle)
nagios-plugin-check-multi 0.26-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 768 kB
  • sloc: perl: 2,278; makefile: 410; sh: 239
file content (28 lines) | stat: -rwxr-xr-x 1,056 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f
# -*- makefile -*-

DEB_VERSION := $(shell dpkg-parsechangelog --format rfc822 | grep-dctrl -ensVersion -S .)

%:
	dh  $@

override_dh_auto_clean:
	[ -e "Makefile" ] && make clean || true
	rm -f debian/check_multi.8 plugins/t/testopts.pm

override_dh_auto_configure:
	dh_auto_configure -- \
		--libexecdir=/usr/lib/nagios/plugins \
		--localstatedir=/var/cache/nagios3

override_dh_auto_install:
	make install        DESTDIR=$(CURDIR)/debian/nagios-plugin-check-multi
	make install-config DESTDIR=$(CURDIR)/debian/nagios-plugin-check-multi \
			    CFGDIR=/usr/share/doc/nagios-plugin-check-multi/examples
	find $(CURDIR)/debian/nagios-plugin-check-multi/usr/share/doc/nagios-plugin-check-multi/examples \
	     -type f -print0 | xargs -0 -r chmod 644
	# Make a man page
	help2man --no-info --section=8 --version-string="check_multi $(DEB_VERSION)" \
		-n "nagios plugin to combine multiple service checks in one run" \
		$(CURDIR)/debian/nagios-plugin-check-multi/usr/lib/nagios/plugins/check_multi \
		> $(CURDIR)/debian/check_multi.8