diff options
author | Vincent Batts <vbatts@hashbangbash.com> | 2011-06-29 17:13:46 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-06-29 17:13:46 -0300 |
commit | a627994d350972bb3b164eb77d80310f8200ea15 (patch) | |
tree | 69a471f443afe337ea02b048b6f55621bd9f7566 /system | |
parent | 8c98b88979f2392522bcc5bd5459a3d712456f3d (diff) | |
download | slackbuilds-a627994d350972bb3b164eb77d80310f8200ea15.tar.gz |
system/stress: Added (stress test utility)
Diffstat (limited to 'system')
-rw-r--r-- | system/stress/README | 3 | ||||
-rw-r--r-- | system/stress/slack-desc | 19 | ||||
-rw-r--r-- | system/stress/stress.SlackBuild | 102 | ||||
-rw-r--r-- | system/stress/stress.info | 10 |
4 files changed, 134 insertions, 0 deletions
diff --git a/system/stress/README b/system/stress/README new file mode 100644 index 0000000000..382801acb2 --- /dev/null +++ b/system/stress/README @@ -0,0 +1,3 @@ +stress, stress test utility +imposes certain types of compute stress on your system. + ( cpu, io, vm, hdd ) diff --git a/system/stress/slack-desc b/system/stress/slack-desc new file mode 100644 index 0000000000..69cb679312 --- /dev/null +++ b/system/stress/slack-desc @@ -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------------------------------------------------------| +stress: stress (stress test utility) +stress: +stress: imposes certain types of compute stress +stress: on your system. +stress: ( cpu, io, vm, hdd ) +stress: +stress: +stress: http://weather.ou.edu/~apw/projects/stress/ +stress: +stress: +stress: diff --git a/system/stress/stress.SlackBuild b/system/stress/stress.SlackBuild new file mode 100644 index 0000000000..627f70bd18 --- /dev/null +++ b/system/stress/stress.SlackBuild @@ -0,0 +1,102 @@ +#!/bin/sh + +# Slackware build script for stress + +# Copyright 2008,2011 Vincent Batts, vbatts@hashbangbash.com, http://hashbangbash.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=stress +VERSION=${VERSION:-1.0.4} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + *) export ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "arm" ]; then + SLKCFLAGS="-O2 -march=armv4t" + LIBDIRSUFFIX="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT || exit 1 +cd $TMP || exit 1 +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +cd $PRGNAM-$VERSION || exit 1 +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --infodir=/usr/info \ + --mandir=/usr/man || exit 1 + +make || exit 1 +make install DESTDIR=$PKG || exit 1 + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +rm -f $PKG/usr/info/dir +gzip -9 $PKG/usr/info/*.info* + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING TODO README INSTALL ChangeLog NEWS $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/system/stress/stress.info b/system/stress/stress.info new file mode 100644 index 0000000000..0182b34d9b --- /dev/null +++ b/system/stress/stress.info @@ -0,0 +1,10 @@ +PRGNAM="stress" +VERSION="1.0.4" +HOMEPAGE="http://weather.ou.edu/~apw/projects/stress/" +DOWNLOAD="http://weather.ou.edu/~apw/projects/stress/stress-1.0.4.tar.gz" +MD5SUM="a607afa695a511765b40993a64c6e2f4" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Vincent Batts" +EMAIL="vbatts@hashbangbash.com" +APPROVED="Niels Horn" |