aboutsummaryrefslogtreecommitdiff
path: root/network/nagios/nagios.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/nagios/nagios.SlackBuild')
-rw-r--r--network/nagios/nagios.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/network/nagios/nagios.SlackBuild b/network/nagios/nagios.SlackBuild
index 1814152377c4..317d2741cb4f 100644
--- a/network/nagios/nagios.SlackBuild
+++ b/network/nagios/nagios.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for nagios
# Copyright 2009-2013 Niels Horn, Rio de Janeiro, RJ, Brazil
-# Copyright 2014, 2015 Mario Preksavec, Zagreb, HR
+# Copyright 2014, 2015 Mario Preksavec, Zagreb, Croatia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
PRGNAM=nagios
VERSION=${VERSION:-4.0.8}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -128,6 +128,10 @@ make install-exfoliation
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# Use monitoring-plugins instead of nagios-plugins
+sed -i 's#\($USER1$=/usr/libexec/\)nagios#\1monitoring-plugins#' \
+ $PKG/etc/nagios/resource.cfg
+
# Change configuration files to .new
find $PKG/etc/$PRGNAM/ -name *.cfg | while read cfg ; do mv $cfg $cfg.new ; done
mv $PKG/etc/httpd/extra/nagios.conf $PKG/etc/httpd/extra/nagios.conf.new