diff options
Diffstat (limited to 'network/cacti/cacti.SlackBuild')
-rw-r--r-- | network/cacti/cacti.SlackBuild | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/network/cacti/cacti.SlackBuild b/network/cacti/cacti.SlackBuild index 2af8d0a0b5..64edf55a4b 100644 --- a/network/cacti/cacti.SlackBuild +++ b/network/cacti/cacti.SlackBuild @@ -4,15 +4,16 @@ # a network graphing solution using rrdtool # Written by Niels Horn <niels.horn@gmail.com> -# revision date 2010/07/05 +# revision date 2010/07/16 PRGNAM=cacti -VERSION=${VERSION:-0.8.7e_p6} +VERSION=${VERSION:-0.8.7g} ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -SRCVERSION=$(echo $VERSION | cut -f1 -d_) +# Remove patch-level from $PRGNAM if it exists +SRCVERSION=$(echo "${VERSION}_" | cut -f1 -d_) DOCROOT=${DOCROOT:-/var/www/htdocs} PHPUSER=${PHPUSER:-root} @@ -24,14 +25,8 @@ for i in $(echo $DOCROOT | tr "/" " "); do RELPATH="${RELPATH}../" done -PATCHES="\ -cli_add_graph.patch \ -snmp_invalid_response.patch \ -template_duplication.patch \ -fix_icmp_on_windows_iis_servers.patch \ -cross_site_fix.patch \ -sql_injection_template_export.patch \ -" +# Current PATCHES (empty if none for now) +PATCHES="" CWD=$(pwd) TMP=${TMP:-/tmp/SBo} @@ -72,6 +67,9 @@ cd - mv $PKG/etc/$PRGNAM/config.php $PKG/etc/$PRGNAM/config.php.new chmod 600 $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 + # Copy docs & create symbolic link mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ @@ -90,7 +88,8 @@ 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} - |