diff options
author | Niels Horn <niels.horn@gmail.com> | 2010-09-08 18:18:04 -0400 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2010-09-08 18:18:04 -0400 |
commit | 1093f54c02c0d80f9d8cdeb9437942350068a1d3 (patch) | |
tree | 891726273f590b6362d5c3b91c506b14ffcfd216 /network/nagios/nagios.SlackBuild | |
parent | efbcbe15fe20550a3391fcfa37ff7440521cf0db (diff) | |
download | slackbuilds-1093f54c02c0d80f9d8cdeb9437942350068a1d3.tar.gz |
network/nagios: Updated for version 3.2.2.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/nagios/nagios.SlackBuild')
-rw-r--r-- | network/nagios/nagios.SlackBuild | 14 |
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 |