1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Update to 0.13. Corrects a directory traversal issue in non-chrooted FTP mode.

Feature safe: yes
This commit is contained in:
David Thiel 2012-12-10 06:52:30 +00:00
parent 443baa7981
commit a99ba07fc9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=308589
4 changed files with 16 additions and 27 deletions

View File

@ -6,21 +6,21 @@
#
PORTNAME= gatling
PORTVERSION= 0.12
PORTVERSION= 0.13
CATEGORIES= www benchmarks ftp ipv6
MASTER_SITES= http://dl.fefe.de/
MAINTAINER= tmseck@netcologne.de
COMMENT= A high performance webserver with scalability benchmark tools
BUILD_DEPENDS= libowfat>=0.25:${PORTSDIR}/devel/libowfat
BUILD_DEPENDS= libowfat>=0.29:${PORTSDIR}/devel/libowfat
USE_BZIP2= yes
USE_GMAKE= yes
USE_OPENSSL= yes
USE_RC_SUBR= gatling
CFLAGS+= -I${LOCALBASE}/include/libowfat -I${OPENSSLINC}
CFLAGS+= -I${LOCALBASE}/include/libowfat -I${OPENSSLINC} -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -L${OPENSSLLIB}
MAKEFILE= GNUmakefile

View File

@ -1,2 +1,2 @@
SHA256 (gatling-0.12.tar.bz2) = ffe4dbff99404eb80e6aac215fdf6bf8174355edc33dd1848a51fc1093296a7c
SIZE (gatling-0.12.tar.bz2) = 99540
SHA256 (gatling-0.13.tar.bz2) = b42145fdf7b66602fa8bc64661c2762172f6d33dbd9d53efebf821cd81e89245
SIZE (gatling-0.13.tar.bz2) = 108128

View File

@ -1,6 +1,6 @@
--- GNUmakefile.orig 2010-04-11 07:49:08.000000000 +0200
+++ GNUmakefile 2010-04-14 18:29:35.000000000 +0200
@@ -1,24 +1,23 @@
--- GNUmakefile.orig 2012-12-07 12:27:09.595489622 -0800
+++ GNUmakefile 2012-12-07 12:35:03.890478583 -0800
@@ -1,24 +1,22 @@
-#DEBUG=1
-ZLIB=1
-prefix=/opt/diet
@ -9,11 +9,10 @@
MANDIR=${prefix}/man
man1dir=$(MANDIR)/man1
-TARGETS=gatling httpbench bindbench dl ioerr bench tlsgatling \
-pthreadbench cgi
-TARGETS=gatling httpbench bindbench dl ioerr bench tlsgatling_nofail \
-pthreadbench cgi ptlsgatling_nofail
-TARGETS2=mktestdata mmapbench manymapbench forkbench forksbench
+TARGETS=gatling dl \
+cgi
+TARGETS=gatling dl cgi
+TARGETS2=
+ifdef BENCHMARKS
+TARGETS+=httpbench bindbench ioerr bench pthreadbench
@ -33,10 +32,10 @@
-CFLAGS=-pipe -Wall
-LDFLAGS=
-
#CFLAGS+=-DSTATE_DEBUG -DMOREDEBUG -DDEBUG_EVENTS -DSMDEBUG
path = $(subst :, ,$(PATH))
diet_path = $(foreach dir,$(path),$(wildcard $(dir)/diet))
ifeq ($(strip $(diet_path)),)
@@ -34,15 +33,11 @@
@@ -36,15 +34,11 @@
# to build without diet libc support, use $ make DIET=
# see http://www.fefe.de/dietlibc/ for details about the diet libc
@ -54,7 +53,7 @@
endif
LDLIBS=-lowfat
@@ -68,7 +63,7 @@
@@ -70,7 +64,7 @@
CC:=$(DIET) $(CC)
pthreadbench: pthreadbench.o
@ -63,7 +62,7 @@
forksbench: forkbench.o
$(CC) -static -o $@ forkbench.o $(LDFLAGS) $(LDLIBS)
@@ -121,11 +116,13 @@
@@ -136,11 +130,13 @@
rm -f trysocket
libiconv: tryiconv.c

View File

@ -1,10 +0,0 @@
--- rellink.c.orig 2010-04-15 22:07:47.000000000 +0200
+++ rellink.c 2010-04-15 22:07:55.000000000 +0200
@@ -17,6 +17,7 @@
#include <fcntl.h>
#include <sys/mman.h>
#include <utime.h>
+#include <string.h>
#include "havealloca.h"
static int canonicalize(stralloc* url,const char* baseurl) {