View | Details | Raw Unified | Return to bug 59738
Collapse All | Expand All

(-)siege/Makefile (-14 / +18 lines)
Lines 6-34 Link Here
6
#
6
#
7
7
8
PORTNAME=	siege
8
PORTNAME=	siege
9
PORTVERSION=	2.56
9
PORTVERSION=	2.57
10
CATEGORIES=	benchmarks
10
CATEGORIES=	benchmarks
11
MASTER_SITES=	ftp://sid.joedog.org/pub/siege/ \
11
MASTER_SITES=	ftp://sid.joedog.org/pub/siege/ \
12
		http://www.cus.org.uk/~dom/distfiles/siege/
12
		http://www.cus.org.uk/~dom/distfiles/siege/
13
13
14
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	sheepkiller@cultdeadsheep.org
15
COMMENT=	A http regression testing and benchmarking utility
15
COMMENT=	A http regression testing and benchmarking utility
16
16
17
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
18
GNU_CONFIGURE=	yes
17
GNU_CONFIGURE=	yes
19
CONFIGURE_ARGS=	--with-ssl=/usr --disable-shared
18
USE_OPENSSL=	YES
20
MAN1=	siege.1 siege.config.1 layingsiege.1 urls_txt.1 bombardment.1 \
19
21
	siege2csv.1
20
CONFIGURE_ARGS=	--with-ssl=${OPENSSLBASE} --disable-shared
21
22
MAN1=		siege.1 siege.config.1 layingsiege.1 urls_txt.1 bombardment.1 \
23
		siege2csv.1
22
24
23
do-install:
25
do-install:
24
	${INSTALL_PROGRAM} ${WRKSRC}/src/siege ${PREFIX}/bin
26
	@${INSTALL_PROGRAM} ${WRKSRC}/src/siege ${PREFIX}/bin
25
	${INSTALL_SCRIPT} ${WRKSRC}/utils/bombardment ${PREFIX}/bin
27
	@${INSTALL_SCRIPT} ${WRKSRC}/utils/bombardment ${PREFIX}/bin
26
	${INSTALL_SCRIPT} ${WRKSRC}/utils/siege.config ${PREFIX}/bin
28
	@${CP} ${WRKSRC}/utils/siege2csv.pl ${WRKSRC}/utils/siege2csv
27
	@${MV} ${WRKSRC}/utils/siege2csv.pl ${WRKSRC}/utils/siege2csv
29
	@${INSTALL_SCRIPT} ${WRKSRC}/utils/siege2csv ${PREFIX}/bin
28
	${INSTALL_SCRIPT} ${WRKSRC}/utils/siege2csv ${PREFIX}/bin
30
.for F in ${MAN1}
29
.for F in bombardment.1 layingsiege.1 siege.1 siege.config.1 \
31
	@${INSTALL_MAN} ${WRKSRC}/doc/${F} ${PREFIX}/man/man1
30
	siege2csv.1 urls_txt.1
31
	${INSTALL_MAN} ${WRKSRC}/doc/${F} ${PREFIX}/man/man1
32
.endfor
32
.endfor
33
	@${MKDIR} ${DATADIR}
34
	@${INSTALL_DATA} ${WRKSRC}/doc/siegerc ${DATADIR}
35
	@${SED} -e "s,%%DATADIR%%,${DATADIR}," ${FILESDIR}/siege.config.in > ${PREFIX}/bin/siege.config
36
	@${CHMOD} 555 ${PREFIX}/bin/siege.config
33
37
34
.include <bsd.port.mk>
38
.include <bsd.port.mk>
(-)siege/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (siege-2.56.tar.gz) = 65b309582e95f334be70b62705135457
1
MD5 (siege-2.57.tar.gz) = c197450e97405bae3b1592979cb493ba
(-)siege/pkg-plist (+2 lines)
Lines 2-4 Link Here
2
bin/bombardment
2
bin/bombardment
3
bin/siege2csv
3
bin/siege2csv
4
bin/siege.config
4
bin/siege.config
5
%%DATADIR%%/siegerc
6
@dirrm %%DATADIR%%
(-)siege/files/patch-src::hash.h (+10 lines)
Added Link Here
1
--- src/hash.h.orig	Thu Nov 27 00:33:32 2003
2
+++ src/hash.h	Thu Nov 27 00:35:25 2003
3
@@ -23,6 +23,7 @@
4
 #define HASH_H
5
 
6
 #include <stdio.h>
7
+#include <unistd.h>
8
 
9
 typedef struct HASH_T *HASH;
10
 
(-)siege/files/patch-src::main.c (+15 lines)
Added Link Here
1
--- src/main.c.orig	Thu Jul 17 21:50:43 2003
2
+++ src/main.c	Thu Nov 27 01:27:55 2003
3
@@ -301,6 +301,12 @@
4
    */
5
   fprintf( stderr, "** " ); 
6
   display_version( FALSE );
7
+  /* prevents from segfaulting */
8
+  if ( my.cusers == 0) {
9
+		fprintf(stderr, "\nERROR: concurrent users is not set or set to 0.\n");
10
+		display_help();
11
+		exit (EXIT_FAILURE);
12
+	};
13
   fprintf( stderr, "** Preparing %d concurrent users for battle.\n", my.cusers );
14
   fprintf( stderr, "The server is now under siege..." );
15
   if( my.verbose ){ fprintf( stderr, "\n" ); }
(-)siege/files/siege.config.in (+27 lines)
Added Link Here
1
#!/bin/sh
2
# SCRIPT: siege.config
3
# AUTHOR: Jeffrey Fulmer <jdfulmer@armstrong.com>
4
# DATE:   Mon May 28 11:40:28 EDT 2001
5
# SYNOP:  This script generates  an $HOME/.siegerc 
6
#         file from the  doc/siegerc.in  template.
7
#         Its contents are added to this script by
8
#         configure.  The siegerc file template is
9
#         maintained once in $(top_srcdir)/doc.
10
11
rcfile="$HOME/.siegerc"
12
13
if test -f $rcfile; then
14
  echo "siege.config"
15
  echo "usage: siege.config [no arguments]"
16
  echo "----------------------------------"
17
  echo "Resource file already install as $rcfile"
18
  echo "Use your favorite editor to change your configuration by"
19
  echo "editing the values in that file."
20
  echo ""
21
  exit
22
fi
23
cp %%DATADIR%%/siegerc ${rcfile}
24
echo "New configuration template added to $rcfile"
25
echo "Run siege -C to view the current settings in that file"
26
exit
27

Return to bug 59738