summaryrefslogtreecommitdiff
path: root/network/nagios/nagios.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/nagios/nagios.SlackBuild')
-rw-r--r--network/nagios/nagios.SlackBuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/network/nagios/nagios.SlackBuild b/network/nagios/nagios.SlackBuild
index 7e3e73c261..5b6f9ac9cb 100644
--- a/network/nagios/nagios.SlackBuild
+++ b/network/nagios/nagios.SlackBuild
@@ -3,12 +3,12 @@
# Slackware build script for nagios:
# IT infrastructure monitoring system
-# Written by Niels Horn - niels.horn@gmail.com
-# revision date 2010/07/10
+# Written by Niels Horn <niels.horn@gmail.com>
+# revision date 2010/09/04
PRGNAM=nagios
-VERSION=${VERSION:-3.2.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-3.2.2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -78,8 +78,8 @@ CFLAGS="$SLKCFLAGS" \
--sbindir=/usr/sbin/$PRGNAM \
--datadir=$DOCROOT/$PRGNAM \
--libdir=/usr/lib${LIBDIRSUFFIX} \
- --libexecdir=/usr/libexec/nagios \
- --sysconfdir=/etc/nagios \
+ --libexecdir=/usr/libexec/$PRGNAM \
+ --sysconfdir=/etc/$PRGNAM \
--localstatedir=/var/$PRGNAM \
--mandir=/usr/man \
--build=$ARCH-slackware-linux$ARCHQUADLET \
@@ -105,6 +105,8 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
# 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
+# cfg files may contain passwords, so we don't want 'others' to read them
+chmod -R g-w,o-rx $PKG/etc/$PRGNAM
# Create directory for lock-file
mkdir -p $PKG/var/run/nagios