diff options
author | Niels Horn <niels.horn@gmail.com> | 2012-02-19 12:03:38 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-02-20 12:20:29 -0600 |
commit | 8fa125425aa6ebbd5c7b8cc097b01b21e04c4d54 (patch) | |
tree | 64f59b960d85a3145d7e3dc520364192e39f2cd1 /network/cacti | |
parent | 76561c544159d8233094b924a9bf20e1c1148390 (diff) |
network/cacti: Updated for version 0.8.7i_p1.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'network/cacti')
-rw-r--r-- | network/cacti/cacti.SlackBuild | 19 | ||||
-rw-r--r-- | network/cacti/cacti.info | 8 |
2 files changed, 19 insertions, 8 deletions
diff --git a/network/cacti/cacti.SlackBuild b/network/cacti/cacti.SlackBuild index 5d7a4f5401b40..f313556788d4c 100644 --- a/network/cacti/cacti.SlackBuild +++ b/network/cacti/cacti.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for cacti: # a network graphing solution using rrdtool -# Copyright 2009-2011 Niels Horn, Rio de Janeiro, RJ, Brazil +# Copyright 2009-2012 Niels Horn, Rio de Janeiro, RJ, Brazil # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,14 +23,17 @@ # 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 +# revision date 2012/02/17 PRGNAM=cacti -VERSION=${VERSION:-0.8.7h} +VERSION=${VERSION:-0.8.7i_p1} ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PATCHLEVEL=$(echo "${VERSION}p" | cut -f2 -dp) +[ "x$PATCHLEVEL" = "x" ] && PATCHLEVEL=0 + # Remove patch-level from $PRGNAM if it exists SRCVERSION=$(echo "${VERSION}_" | cut -f1 -d_) @@ -45,7 +48,7 @@ for i in $(echo $DOCROOT | tr "/" " "); do done # Current PATCHES (empty if none for now) -PATCHES="" +PATCHES="settings_checkbox.patch" CWD=$(pwd) TMP=${TMP:-/tmp/SBo} @@ -63,9 +66,15 @@ chown -R root:root . chmod -R u+w,go+r-w,a-s . # Apply patches from upstream +patchfound=0 for patch in $PATCHES; do - patch -p1 < $CWD/$patch + patch -p1 < $CWD/$patch && let patchfound=$patchfound+1 done +# Test if we processed all patches +if [ $patchfound -ne $PATCHLEVEL ]; then + echo "Incorrect number of patches: level = $PATCHLEVEL / found = $patchfound" + exit 1 +fi # "Install" to $DOCROOT/cacti mkdir -p $PKG/$DOCROOT/$PRGNAM diff --git a/network/cacti/cacti.info b/network/cacti/cacti.info index df49e58752525..e140c4ce91801 100644 --- a/network/cacti/cacti.info +++ b/network/cacti/cacti.info @@ -1,8 +1,10 @@ PRGNAM="cacti" -VERSION="0.8.7h" +VERSION="0.8.7i_p1" HOMEPAGE="http://www.cacti.net/" -DOWNLOAD="http://www.cacti.net/downloads/cacti-0.8.7h.tar.gz" -MD5SUM="58c9371341f49a190ae11a85118e598d" +DOWNLOAD="http://www.cacti.net/downloads/cacti-0.8.7i.tar.gz \ + http://www.cacti.net/downloads/patches/0.8.7i/settings_checkbox.patch" +MD5SUM="07fd1da6b0ac4912410df3aa4e451a4b \ + 930e6c18b692fb94a19ddbd95a529a8b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Niels Horn" |