From 1093f54c02c0d80f9d8cdeb9437942350068a1d3 Mon Sep 17 00:00:00 2001 From: Niels Horn Date: Wed, 8 Sep 2010 18:18:04 -0400 Subject: network/nagios: Updated for version 3.2.2. Signed-off-by: dsomero --- network/nagios/nagios.SlackBuild | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'network/nagios/nagios.SlackBuild') diff --git a/network/nagios/nagios.SlackBuild b/network/nagios/nagios.SlackBuild index 7e3e73c26116a..5b6f9ac9cb28b 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 +# 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 -- cgit v1.2.3