3
# Sample debian/rules that uses debhelper.
4
# GNU copyright 1997 to 1999 by Joey Hess.
6
# Uncomment this to turn on verbose mode.
9
PACKAGE = nagios-plugins
11
include /usr/share/dpatch/dpatch.make
13
# These are used for cross-compiling and for saving the configure script
14
# from having to guess our platform (since we know it already)
15
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
16
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
20
PATH = /bin:/sbin:/usr/bin:/usr/sbin
23
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
28
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
32
config.status: configure
35
# Add here commands to configure the package.
36
CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --libexecdir=/usr/lib/nagios/plugins --with-nagios-user=nagios --with-nagios-group=nagios --with-trusted-path=/bin:/sbin:/usr/bin:/usr/sbin --with-df-command="/bin/df -Pk" --with-ping-command='/bin/ping %s -n -c %d'
38
build: patch-stamp build-stamp
40
build-stamp: config.status
43
# Add here commands to compile the package.
45
#/usr/bin/docbook-to-man debian/nagios-plugins.sgml > nagios-plugins.1
49
clean: really-clean unpatch
56
# Add here commands to clean up after the build process.
58
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
59
cp -f /usr/share/misc/config.sub config.sub
61
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
62
cp -f /usr/share/misc/config.guess config.guess
74
# Add here commands to install the package into debian/nagios-plugins.
75
$(MAKE) install DESTDIR=$(CURDIR)/debian/nagios-plugins
76
cp $(CURDIR)/debian/pluginconfig/* $(CURDIR)/debian/nagios-plugins/etc/nagios-plugins/config/
79
# Build architecture-independent files here.
80
binary-indep: build install
81
# We have nothing to do by default.
83
# Build architecture-dependent files here.
84
binary-arch: build install
87
dh_installchangelogs ChangeLog
89
dh_installexamples command.cfg
114
binary: binary-indep binary-arch
115
.PHONY: build clean binary-indep binary-arch binary install