summaryrefslogtreecommitdiffstats
path: root/network/siege
diff options
context:
space:
mode:
Diffstat (limited to 'network/siege')
-rw-r--r--network/siege/README13
-rw-r--r--network/siege/siege-verbosity.patch28
-rw-r--r--network/siege/siege.SlackBuild52
-rw-r--r--network/siege/siege.info8
4 files changed, 73 insertions, 28 deletions
diff --git a/network/siege/README b/network/siege/README
index 5ec3a5fccf..0123ce68c9 100644
--- a/network/siege/README
+++ b/network/siege/README
@@ -1,6 +1,7 @@
-Siege is an http regression testing and benchmarking utility. It was designed
-to let web developers measure the performance of their code under duress,
-to see how it will stand up to load on the internet. Siege supports basic
-authentication, cookies, HTTP and HTTPS protocols. It allows the user to hit
-a web server with a configurable number of concurrent simulated users. Those
-users place the webserver "under siege."
+Siege is an http regression testing and benchmarking utility. It was
+designed to let web developers measure the performance of their code
+under duress, to see how it will stand up to load on the internet.
+Siege supports basic authentication, cookies, HTTP and HTTPS
+protocols. It allows the user to hit a web server with a configurable
+number of concurrent simulated users. Those users place the webserver
+"under siege."
diff --git a/network/siege/siege-verbosity.patch b/network/siege/siege-verbosity.patch
new file mode 100644
index 0000000000..fec188f1b2
--- /dev/null
+++ b/network/siege/siege-verbosity.patch
@@ -0,0 +1,28 @@
+From b7900fbc0e929f2f340a44ed2881018a29a9a86f Mon Sep 17 00:00:00 2001
+From: Josue Abarca <jmaslibre@gmail.com>
+Date: Sun, 9 Aug 2020 15:48:15 -0600
+Subject: [PATCH] Allow the command line verbose option to override the
+ configuration file
+
+Since the default configuration file has json_output set to true and
+the json_output monopolizes stdout, superceding verbose, this change
+allows the user to activate the verbose mode using the command line
+parameter even when json_output is set to true in the configuration
+file.
+---
+ src/main.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/main.c b/src/main.c
+index 4bad685..2541cee 100644
+--- a/src/main.c
++++ b/src/main.c
+@@ -256,6 +256,8 @@ parse_cmdline(int argc, char *argv[])
+ break;
+ case 'v':
+ my.verbose = TRUE;
++ my.json_output = FALSE;
++ my.quiet = FALSE;
+ break;
+ case 'r':
+ if(strmatch(optarg, "once")){
diff --git a/network/siege/siege.SlackBuild b/network/siege/siege.SlackBuild
index ad9c26d709..1173fc115a 100644
--- a/network/siege/siege.SlackBuild
+++ b/network/siege/siege.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for Siege
-# Copyright 2011-2018 Heinz Wiesinger, Amsterdam, The Netherlands
+# Copyright 2011-2021 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -11,39 +11,49 @@
# 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.
+# 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.
# Originally written by Menno Duursma <druiloor@zonnet.nl>
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=siege
-VERSION=${VERSION:-4.0.4}
+VERSION=${VERSION:-4.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"
@@ -71,6 +81,12 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Allow the command line verbose option to override the configuration file
+# https://github.com/JoeDog/siege/pull/182
+patch -p1 -i $CWD/siege-verbosity.patch
+
+utils/bootstrap
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -103,4 +119,4 @@ 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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/network/siege/siege.info b/network/siege/siege.info
index 48e21fb9fb..f0c4bee6fc 100644
--- a/network/siege/siege.info
+++ b/network/siege/siege.info
@@ -1,10 +1,10 @@
PRGNAM="siege"
-VERSION="4.0.4"
+VERSION="4.1.1"
HOMEPAGE="http://www.joedog.org/index/siege-home"
-DOWNLOAD="http://download.joedog.org/siege/siege-4.0.4.tar.gz"
-MD5SUM="aed6db62c4bf199f86218bd7b2fda14f"
+DOWNLOAD="https://github.com/JoeDog/siege/archive/v4.1.1/siege-4.1.1.tar.gz"
+MD5SUM="375a584bc1c1085613854c45e6b3ae99"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Heinz Wiesinger"
-EMAIL="pprkut@liwjatan.at"
+EMAIL="pprkut@slackbuilds.org"