diff options
Diffstat (limited to 'network/cacti/cacti.SlackBuild')
-rw-r--r-- | network/cacti/cacti.SlackBuild | 44 |
1 files changed, 28 insertions, 16 deletions
diff --git a/network/cacti/cacti.SlackBuild b/network/cacti/cacti.SlackBuild index 4dcdbb5e2c..5d7a4f5401 100644 --- a/network/cacti/cacti.SlackBuild +++ b/network/cacti/cacti.SlackBuild @@ -3,11 +3,30 @@ # Slackware build script for cacti: # a network graphing solution using rrdtool -# Written by Niels Horn <niels.horn@gmail.com> -# revision date 2010/09/17 +# Copyright 2009-2011 Niels Horn, Rio de Janeiro, RJ, Brazil +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# revision date 2011/10/03 PRGNAM=cacti -VERSION=${VERSION:-0.8.7g_p7} +VERSION=${VERSION:-0.8.7h} ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -26,13 +45,7 @@ for i in $(echo $DOCROOT | tr "/" " "); do done # Current PATCHES (empty if none for now) -PATCHES="data_source_deactivate.patch \ -graph_list_view.patch \ -html_output.patch \ -ldap_group_authenication.patch \ -script_server_command_line_parse.patch \ -ping.patch \ -poller_interval.patch" +PATCHES="" CWD=$(pwd) TMP=${TMP:-/tmp/SBo} @@ -58,7 +71,7 @@ done mkdir -p $PKG/$DOCROOT/$PRGNAM cp -a \ *.php *.pl \ - include resource lib rra images cli scripts log install \ + include resource lib rra images cli scripts install \ $PKG/$DOCROOT/$PRGNAM/ chown -R $PHPUSER:$PHPGROUP $PKG/$DOCROOT/$PRGNAM @@ -71,10 +84,11 @@ cd - # Rename config file and set permissions to hide passwords mv $PKG/etc/$PRGNAM/config.php $PKG/etc/$PRGNAM/config.php.new -chmod 600 $PKG/etc/$PRGNAM/config.php.new +chmod 640 $PKG/etc/$PRGNAM/config.php.new -# Rename initial log file to avoid overwriting it during upgrades -mv $PKG/$DOCROOT/$PRGNAM/log/$PRGNAM.log $PKG/$DOCROOT/$PRGNAM/log/$PRGNAM.log.new +# Create empty log file +mkdir -p $PKG/var/log/cacti +touch $PKG/var/log/cacti/cacti.log.new # Copy docs & create symbolic link mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -94,8 +108,6 @@ cp cacti.sql $PKG/usr/share/$PRGNAM mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh -# include logfile rename to doinst.sh -echo "config .$DOCROOT/$PRGNAM/log/$PRGNAM.log.new" >> $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |