summaryrefslogtreecommitdiffstats
path: root/network/wrk
diff options
context:
space:
mode:
Diffstat (limited to 'network/wrk')
-rw-r--r--network/wrk/README11
-rw-r--r--network/wrk/wrk.SlackBuild22
-rw-r--r--network/wrk/wrk.info2
3 files changed, 23 insertions, 12 deletions
diff --git a/network/wrk/README b/network/wrk/README
index 3194c9b6ce..47874b9c33 100644
--- a/network/wrk/README
+++ b/network/wrk/README
@@ -1,11 +1,12 @@
wrk (HTTP benchmarking tool)
-A modern HTTP benchmarking tool capable of generating significant load when run
-on a single multi-core CPU. It combines a multithreaded design with scalable
-event notification systems such as epoll and kqueue.
+A modern HTTP benchmarking tool capable of generating significant
+load when run on a single multi-core CPU. It combines a multithreaded
+design with scalable event notification systems such as epoll and
+kqueue.
An optional LuaJIT script can perform HTTP request generation, response
processing, and custom reporting.
-Note: Lua and LuaJIT are not required here; wrk is statically-linked against
-the LuaJIT version bundled in the upstream tarball.
+Note: Lua and LuaJIT are not required here; wrk is statically-linked
+against the LuaJIT version bundled in the upstream tarball.
diff --git a/network/wrk/wrk.SlackBuild b/network/wrk/wrk.SlackBuild
index 8f08b38ac5..157d1a326c 100644
--- a/network/wrk/wrk.SlackBuild
+++ b/network/wrk/wrk.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for wrk.
@@ -22,26 +22,36 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=wrk
VERSION=${VERSION:-3.1.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$(uname -m) ;;
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -90,4 +100,4 @@ 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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/network/wrk/wrk.info b/network/wrk/wrk.info
index 03be669eef..38cbe22a3b 100644
--- a/network/wrk/wrk.info
+++ b/network/wrk/wrk.info
@@ -1,7 +1,7 @@
PRGNAM="wrk"
VERSION="3.1.1"
HOMEPAGE="https://github.com/wg/wrk"
-DOWNLOAD="https://github.com/wg/wrk/archive/3.1.1.tar.gz"
+DOWNLOAD="https://github.com/wg/wrk/archive/3.1.1/wrk-3.1.1.tar.gz"
MD5SUM="bf25e174845bad36fefd66f9be71889e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""