system/pcp-gui: Added to 13.0 repository

This commit is contained in:
Roman Revyakin 2010-05-13 01:01:01 +02:00 committed by Robby Workman
parent 5f1f9ed0d2
commit b00e3b5c06
5 changed files with 118 additions and 0 deletions

6
system/pcp-gui/README Normal file
View File

@ -0,0 +1,6 @@
PCP-Gui (Performance Co-Pilot Visualisation)
The PCP GUI package primarily includes visualisation tools for monitoring
systems using live and archived Performance Co-Pilot sources. Its purpose
is to provide pmchart, pmtime, pmview and any other graphical tools that
form part of the PCP monitoring infrastructure.

4
system/pcp-gui/doinst.sh Normal file
View File

@ -0,0 +1,4 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

View File

@ -0,0 +1,79 @@
#!/bin/sh
# Slackware build script for pcp-gui
# Roman Revyakin <rrevyakin@aconex.com>
# ver 1.0 2009-10-05
PRGNAM=pcp-gui
VERSION=1.4.5
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.src.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
autoconf
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var/lib/pcp \
--mandir=/usr/man \
--sysconfdir=/etc \
--build=$ARCH-slackware-linux
make
make install DIST_ROOT="$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 "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
)
( 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
)
mv $PKG/usr/share/doc $PKG/usr
mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Create a symlink because some parts of pcp-gui expect the unversioned dir
( cd $PKG/usr/doc ; ln -s $PRGNAM-$VERSION $PRGNAM )
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -0,0 +1,10 @@
PRGNAM="pcp-gui"
VERSION="1.4.5"
HOMEPAGE="http://oss.sgi.com/projects/pcp/pcp-gui.html"
DOWNLOAD="ftp://oss.sgi.com/www/projects/pcp/download/pcp-gui-1.4.5.src.tar.gz"
MD5SUM="7a9789fb1c561fa0f31a06202d270aa3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Roman Revyakin"
EMAIL="rrevyakin@aconex.com"
APPROVED="rworkman"

19
system/pcp-gui/slack-desc Normal file
View File

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
pcp-gui: PCP-Gui (Performance Co-Pilot Visualisation)
pcp-gui:
pcp-gui: The PCP GUI package primarily includes visualisation tools for
pcp-gui: monitoring systems using live and archived Performance Co-Pilot
pcp-gui: sources. Its purpose is to provide pmchart, pmtime, pmview and any
pcp-gui: other graphical tools that form part of the PCP monitoring
pcp-gui: infrastructure.
pcp-gui:
pcp-gui:
pcp-gui:
pcp-gui: