libraries/rrdtool: Updated for version 1.4.2

This commit is contained in:
Niels Horn 2010-05-13 00:33:31 +02:00 committed by Erik Hanson
parent 94bae28e45
commit 2d856c0be7
4 changed files with 29 additions and 18 deletions

View File

@ -1,3 +1,4 @@
RRDTool is the industry standard data logging and graphing application. RRDTool is the industry standard data logging and graphing application.
This package makes all bindings that are supported on the system. This package makes all bindings that are supported on the system.

View File

@ -2,14 +2,16 @@
# Slackware build script for RRDTool # Slackware build script for RRDTool
# Written by <youngmug@animeneko.net> # Originally written by <youngmug@animeneko.net>
# Modified by the SlackBuilds.org team. # Modified by the SlackBuilds.org team.
# Versions >= 1.4.2 maintained by Niels Horn <niels.horn@gmail.com>
# revision date: 2009/12/08
# Exit on most errors # Exit on most errors
set -e set -e
PRGNAM=rrdtool PRGNAM=rrdtool
VERSION=1.2.19 VERSION=1.4.2
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -23,8 +25,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
rm -rf $PKG rm -rf $PKG
@ -36,18 +43,17 @@ cd $TMP/$PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
chmod -R a-s,u+w,go+r-w . chmod -R a-s,u+w,go+r-w .
# The python library is not added by default in the linking stage
sed -i -r "s/^(LIBS = .*)/\0 -lpython${PYTHON}/" bindings/python/Makefile.in
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
RRDDOCDIR=/usr/doc/$PRGNAM-$VERSION \ RRDDOCDIR=/usr/doc/$PRGNAM-$VERSION \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--mandir=/usr/man \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--disable-static \ --disable-static \
--with-perl-options='INSTALLDIRS=vendor' --with-perl-options='INSTALLDIRS=vendor'
make make
# Correct man paths in the Perl bindings. # Correct man paths in the Perl bindings.
sed -r -i 's|/usr/share/man|/usr/man|g' bindings/perl-piped/Makefile sed -r -i 's|/usr/share/man|/usr/man|g' bindings/perl-piped/Makefile
@ -56,8 +62,10 @@ sed -r -i 's|/usr/share/man|/usr/man|g' bindings/perl-shared/Makefile
make install DESTDIR=$PKG make install DESTDIR=$PKG
( cd $PKG ( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
) )
( cd $PKG/usr/man ( cd $PKG/usr/man
@ -76,8 +84,8 @@ make install DESTDIR=$PKG
) )
# And remove the directory leftovers # And remove the directory leftovers
rm -rf $PKG/usr/lib/perl5/${PERL} rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/perl5/${PERL}
rm -rf $PKG/usr/lib/perl5/site_perl/${PERL}/i486-linux/auto/RRDp rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/perl5/site_perl/${PERL}/$ARCH-linux/auto/RRDp
# Set correct permissions (mostly on the Perl bindings) # Set correct permissions (mostly on the Perl bindings)
( cd $PKG ( cd $PKG
@ -94,4 +102,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -1,8 +1,10 @@
PRGNAM="rrdtool" PRGNAM="rrdtool"
VERSION="1.2.19" VERSION="1.4.2"
HOMEPAGE="http://www.rrdtool.org/" HOMEPAGE="http://www.rrdtool.org/"
DOWNLOAD="http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.2.19.tar.gz" DOWNLOAD="http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.2.tar.gz"
MD5SUM="df625d12e0585042a398ff946e32e3e7" DOWNLOAD_x86_64=""
MAINTAINER="Michael Johnson" MD5SUM="9318d3b4016dd9dd9897f1eac7548032"
EMAIL="youngmug@animeneko.net" MD5SUM_x86_64=""
APPROVED="danieldk,alien" MAINTAINER="Niels Horn"
EMAIL="niels.horn@gmail.com"
APPROVED="Erik Hanson"

View File

@ -12,7 +12,7 @@ rrdtool: RRD is the acronym for Round Robin Database. It is a system to
rrdtool: store and display time-series data (i.e. network bandwidth, rrdtool: store and display time-series data (i.e. network bandwidth,
rrdtool: machine-room temperature, server load average). rrdtool: machine-room temperature, server load average).
rrdtool: rrdtool:
rrdtool: rrdtool: http://oss.oetiker.ch/rrdtool/
rrdtool: rrdtool:
rrdtool: rrdtool:
rrdtool: rrdtool: