* make package build fail if /proc is not mounted, before I end up

filing that bug a fourth time. Closes: #344389, #354215, #372316
This commit is contained in:
Marc Haber 2006-06-09 13:43:27 +00:00
parent 7665456a9c
commit 37db2d68a0
2 changed files with 11 additions and 1 deletions

4
debian/changelog vendored
View file

@ -1,8 +1,10 @@
nagios-plugins (1.4.3-1.0) UNRELEASED; urgency=low nagios-plugins (1.4.3-1.0) UNRELEASED; urgency=low
* NOT RELEASED YET * NOT RELEASED YET
* make package build fail if /proc is not mounted, before I end up
filing that bug a fourth time. Closes: #344389, #354215
-- sean finney <sean@localhost.localdomain> Sun, 28 May 2006 21:40:55 +0200 -- Marc Haber <mh+debian-packages@zugschlus.de> Fri, 9 Jun 2006 13:18:50 +0000
nagios-plugins (1.4.3-1) unstable; urgency=low nagios-plugins (1.4.3-1) unstable; urgency=low

8
debian/rules vendored
View file

@ -44,6 +44,14 @@ endif
config.status: configure config.status: configure
export PATH=$(PATH) export PATH=$(PATH)
dh_testdir dh_testdir
# if /proc is not mounted, check_nagios and check_procs are
# silently omitted from build.
@if ! [ -d /proc/1 ]; then \
echo "nagios-plugins needs a mounted /proc to correctly build"; \
exit 1; \
fi
ln -sf /usr/share/misc/config.sub . ln -sf /usr/share/misc/config.sub .
ln -sf /usr/share/misc/config.guess . ln -sf /usr/share/misc/config.guess .
rm -f config.cache rm -f config.cache