File: rules

package info (click to toggle)
nrpe-ng 0.2.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 268 kB
  • sloc: python: 895; sh: 95; makefile: 25
file content (24 lines) | stat: -rwxr-xr-x 664 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

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

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

%:
	dh $@ --with python3 --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/