File: rules

package info (click to toggle)
nrpe-ng 0.2.0-1.3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 264 kB
  • sloc: python: 895; sh: 95; makefile: 25
file content (26 lines) | stat: -rwxr-xr-x 690 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
#!/usr/bin/make -f

PACKAGE = $(firstword $(shell dh_listpackages))
PKG_DIR = $(CURDIR)/debian/$(PACKAGE)

export PYBUILD_NAME=nrpe-ng
export PYBUILD_TEST_ARGS=-c $(CURDIR)/setup.cfg

%:
	dh $@ --buildsystem=pybuild

override_dh_install:
	dh_install
	cp $(CURDIR)/config/nagios_check_nrpe_ng.cfg \
		$(PKG_DIR)/etc/nagios-plugins/config/check_nrpe_ng.cfg
	mv $(PKG_DIR)/usr/bin/check_nrpe_ng $(PKG_DIR)/usr/lib/nagios/plugins/
	mv $(PKG_DIR)/usr/bin/nrpe-ng $(PKG_DIR)/usr/sbin/
	rmdir $(PKG_DIR)/usr/bin/
	find $(PKG_DIR)/ -type f -name .coverage -delete

override_dh_auto_clean:
	dh_auto_clean
	rm -rf nrpe_ng.egg-info/

override_dh_auto_test:
	# no test included & project dead upstream