summaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <bosth@alumni.sfu.ca>2012-12-14 22:09:14 +0100
committerMatteo Bernardini <ponce@slackbuilds.org>2012-12-15 15:13:39 +0100
commit71ce863a6565d1fdc42bb11a075a86ff18404914 (patch)
tree8005899e8abaa7a821c13fef3e9343435f04bd23 /development
parentcc319011499697c80b8f0819ee3e57838f80dbbf (diff)
downloadslackbuilds-71ce863a6565d1fdc42bb11a075a86ff18404914.tar.gz
development/apache-jmeter: Added (Java-based testing tool).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/apache-jmeter/README12
-rw-r--r--development/apache-jmeter/apache-jmeter.SlackBuild75
-rw-r--r--development/apache-jmeter/apache-jmeter.info10
-rw-r--r--development/apache-jmeter/slack-desc19
4 files changed, 116 insertions, 0 deletions
diff --git a/development/apache-jmeter/README b/development/apache-jmeter/README
new file mode 100644
index 0000000000..6317b03271
--- /dev/null
+++ b/development/apache-jmeter/README
@@ -0,0 +1,12 @@
+Apache JMeter is a Java-based load testing tool.
+
+JMeter is pure Java application designed to load test functional behavior
+and measure performance. It was originally designed for testing web
+applications but has since expanded to other test functions.
+
+The directory /usr/share/jmeter/bin contains additional scripts for
+managing JMeter.
+
+Set API_DOCS=yes to include the full documentation. This will make the
+package much larger, and the standard package already includes user
+documentation.
diff --git a/development/apache-jmeter/apache-jmeter.SlackBuild b/development/apache-jmeter/apache-jmeter.SlackBuild
new file mode 100644
index 0000000000..8ebf0bac95
--- /dev/null
+++ b/development/apache-jmeter/apache-jmeter.SlackBuild
@@ -0,0 +1,75 @@
+#!/bin/sh
+
+# Slackware build script for apache-jmeter
+# Benjamin Trigona-Harany
+
+#
+# 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=apache-jmeter
+VERSION=2.8
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+ARCH=noarch
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+API_DOCS=${API_DOCS:-no}
+JMETER_HOME=usr/share/$(echo $PRGNAM | cut -d- -f2)
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG/$JMETER_HOME $PKG/usr/bin $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tgz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+
+rm bin/*.bat
+rm bin/*.cmd
+cp -a bin extras lib $PKG/$JMETER_HOME/
+
+# set the path to the jmeter jar in the startup script
+sed -i "s_\`dirname \$0\`_/$JMETER_HOME/bin_" $PKG/$JMETER_HOME/bin/jmeter
+sed -i "s_\`dirname \$0\`_/$JMETER_HOME/bin_" $PKG/$JMETER_HOME/bin/jmeter-server
+cd $PKG/usr/bin
+ ln -s /$JMETER_HOME/bin/jmeter
+ ln -s /$JMETER_HOME/bin/jmeter-server
+cd $TMP/$PRGNAM-$VERSION
+
+mkdir -p $PKG/usr/share/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/jmeter/bin/examples $PKG/usr/share/doc/$PRGNAM-$VERSION
+cp -a LICENSE NOTICE README printable_docs/* $PKG/usr/share/doc/$PRGNAM-$VERSION
+
+if [ "$API_DOCS" = "yes" ]; then
+ cp -a docs/* $PKG/usr/share/doc/$PRGNAM-$VERSION
+fi
+
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/share/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/development/apache-jmeter/apache-jmeter.info b/development/apache-jmeter/apache-jmeter.info
new file mode 100644
index 0000000000..aa4cc1d994
--- /dev/null
+++ b/development/apache-jmeter/apache-jmeter.info
@@ -0,0 +1,10 @@
+PRGNAM="apache-jmeter"
+VERSION="2.8"
+HOMEPAGE="http://jmeter.apache.org/"
+DOWNLOAD="http://apache.mirror.rafal.ca/jmeter/binaries/apache-jmeter-2.8.tgz"
+MD5SUM="ea9f8919d584e052830b2ea08624fb40"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="jdk"
+MAINTAINER="Benjamin Trigona-Harany"
+EMAIL="bosth@alumni.sfu.ca"
diff --git a/development/apache-jmeter/slack-desc b/development/apache-jmeter/slack-desc
new file mode 100644
index 0000000000..2db501673c
--- /dev/null
+++ b/development/apache-jmeter/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------------------------------------------------------|
+apache-jmeter: Apache JMeter (Java-based testing tool)
+apache-jmeter:
+apache-jmeter: JMeter is a pure Java application designed to load test functional
+apache-jmeter: behavior and measure performance. It was originally designed for
+apache-jmeter: testing web applications but has since expanded to other test
+apache-jmeter: functions.
+apache-jmeter:
+apache-jmeter: Homepage: http://jmeter.apache.org/
+apache-jmeter:
+apache-jmeter:
+apache-jmeter: