aboutsummaryrefslogtreecommitdiff
path: root/network/ganglia/ganglia.SlackBuild
diff options
context:
space:
mode:
authorCherife Li <cherife-#-dotimes.com>2010-05-12 17:43:24 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:43:24 +0200
commit00bd903dca21b801887095d5359d5e93707b671c (patch)
tree7167d50ab213b52ff61877f333bd8ef11a53208e /network/ganglia/ganglia.SlackBuild
parent61ce3145acc7400e27a405404748fbad7db6030c (diff)
network/ganglia: Updated for version 3.1.1
Diffstat (limited to 'network/ganglia/ganglia.SlackBuild')
-rw-r--r--network/ganglia/ganglia.SlackBuild36
1 files changed, 28 insertions, 8 deletions
diff --git a/network/ganglia/ganglia.SlackBuild b/network/ganglia/ganglia.SlackBuild
index c395255918cab..f953957ead3cc 100644
--- a/network/ganglia/ganglia.SlackBuild
+++ b/network/ganglia/ganglia.SlackBuild
@@ -1,11 +1,29 @@
#!/bin/sh
-
+#
# Slackware build script for ganglia
-# Written by Cherife Li <cherife@dotimes.com>
-# Modified by Robby Workman <rworkman@slackbuilds.org>
+#
+# Copyright 2008 Cherife Li <cherife-#-dotimes.com>
+# 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.
PRGNAM=ganglia
-VERSION=3.0.7
+VERSION=3.1.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -15,8 +33,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-WWWPATH=${WWWPATH:-/var/gweb}
-DOCUMENTATION="AUTHORS COPYING ChangeLog INSTALL NEWS ganglia.html README"
+WWWPATH=${WWWPATH:-/var/www/htdocs/gweb}
+DOCUMENTATION="AUTHORS COPYING ChangeLog INSTALL NEWS README*"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -48,7 +66,10 @@ CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-static=no \
--enable-gexeca \
+ --enable-status \
$OPT
make
@@ -65,7 +86,7 @@ fi
mkdir -p $PKG/$WWWPATH
mv web/* $PKG/$WWWPATH
-( cd $PKG/$WWWPATH ; rm -f AUTHORS COPYING ChangeLog Makefile.am version.php.in )
+( cd $PKG/$WWWPATH ; rm -f AUTHORS COPYING Makefile.am conf.php.in version.php.in )
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -78,7 +99,6 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/usr/man/man1
cp -a mans/*.1 $PKG/usr/man/man1
-
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done