aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/siege/files
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2003-12-04 18:22:32 +0800
committerpav <pav@FreeBSD.org>2003-12-04 18:22:32 +0800
commite0286f13ee8a5c58dd5c18925aa431f4c5f4b8a4 (patch)
tree0e7c4304d3526a0d782a77f006679b8e44d80e9e /benchmarks/siege/files
parent1c992d96a84c4466f7060db28f8e58eadf563e2d (diff)
downloadfreebsd-ports-gnome-e0286f13ee8a5c58dd5c18925aa431f4c5f4b8a4.tar.gz
freebsd-ports-gnome-e0286f13ee8a5c58dd5c18925aa431f4c5f4b8a4.tar.zst
freebsd-ports-gnome-e0286f13ee8a5c58dd5c18925aa431f4c5f4b8a4.zip
- Update to 2.57
- Give maintainership to submitter PR: ports/59738 Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org> Approved by: adamw (mentor)
Diffstat (limited to 'benchmarks/siege/files')
-rw-r--r--benchmarks/siege/files/patch-src::hash.h10
-rw-r--r--benchmarks/siege/files/patch-src::main.c15
-rw-r--r--benchmarks/siege/files/siege.config.in27
3 files changed, 52 insertions, 0 deletions
diff --git a/benchmarks/siege/files/patch-src::hash.h b/benchmarks/siege/files/patch-src::hash.h
new file mode 100644
index 000000000000..4bbd872c160b
--- /dev/null
+++ b/benchmarks/siege/files/patch-src::hash.h
@@ -0,0 +1,10 @@
+--- src/hash.h.orig Thu Nov 27 00:33:32 2003
++++ src/hash.h Thu Nov 27 00:35:25 2003
+@@ -23,6 +23,7 @@
+ #define HASH_H
+
+ #include <stdio.h>
++#include <unistd.h>
+
+ typedef struct HASH_T *HASH;
+
diff --git a/benchmarks/siege/files/patch-src::main.c b/benchmarks/siege/files/patch-src::main.c
new file mode 100644
index 000000000000..fb1139a47fff
--- /dev/null
+++ b/benchmarks/siege/files/patch-src::main.c
@@ -0,0 +1,15 @@
+--- src/main.c.orig Thu Jul 17 21:50:43 2003
++++ src/main.c Thu Nov 27 01:27:55 2003
+@@ -301,6 +301,12 @@
+ */
+ fprintf( stderr, "** " );
+ display_version( FALSE );
++ /* prevents from segfaulting */
++ if ( my.cusers == 0) {
++ fprintf(stderr, "\nERROR: concurrent users is not set or set to 0.\n");
++ display_help();
++ exit (EXIT_FAILURE);
++ };
+ fprintf( stderr, "** Preparing %d concurrent users for battle.\n", my.cusers );
+ fprintf( stderr, "The server is now under siege..." );
+ if( my.verbose ){ fprintf( stderr, "\n" ); }
diff --git a/benchmarks/siege/files/siege.config.in b/benchmarks/siege/files/siege.config.in
new file mode 100644
index 000000000000..9da3df97e82f
--- /dev/null
+++ b/benchmarks/siege/files/siege.config.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+# SCRIPT: siege.config
+# AUTHOR: Jeffrey Fulmer <jdfulmer@armstrong.com>
+# DATE: Mon May 28 11:40:28 EDT 2001
+# SYNOP: This script generates an $HOME/.siegerc
+# file from the doc/siegerc.in template.
+# Its contents are added to this script by
+# configure. The siegerc file template is
+# maintained once in $(top_srcdir)/doc.
+
+rcfile="$HOME/.siegerc"
+
+if test -f $rcfile; then
+ echo "siege.config"
+ echo "usage: siege.config [no arguments]"
+ echo "----------------------------------"
+ echo "Resource file already install as $rcfile"
+ echo "Use your favorite editor to change your configuration by"
+ echo "editing the values in that file."
+ echo ""
+ exit
+fi
+cp %%DATADIR%%/siegerc ${rcfile}
+echo "New configuration template added to $rcfile"
+echo "Run siege -C to view the current settings in that file"
+exit
+