diff options
author | Niels Heinen <niels@FreeBSD.org> | 2010-04-15 20:32:54 +0000 |
---|---|---|
committer | Niels Heinen <niels@FreeBSD.org> | 2010-04-15 20:32:54 +0000 |
commit | baa1dea55818046bb0bcb68a005430ee9a6d3083 (patch) | |
tree | fc344446ef003aecb9dce38f5f1d074aee0786b7 /www/gatling | |
parent | 0026576e29ec85296492e52e905f74d1ade7e632 (diff) | |
download | ports-baa1dea55818046bb0bcb68a005430ee9a6d3083.tar.gz ports-baa1dea55818046bb0bcb68a005430ee9a6d3083.zip |
Update port to version 0.12
PR: ports/145705
Submitted by: Thomas-Martin Seck <tmseck@netcologne.de> (maintainer)
Approved by: itetcu (mentor)
Notes
Notes:
svn path=/head/; revision=252723
Diffstat (limited to 'www/gatling')
-rw-r--r-- | www/gatling/Makefile | 2 | ||||
-rw-r--r-- | www/gatling/distinfo | 6 | ||||
-rw-r--r-- | www/gatling/files/patch-GNUmakefile | 38 | ||||
-rw-r--r-- | www/gatling/files/patch-bench.c | 10 | ||||
-rw-r--r-- | www/gatling/files/patch-dl.c | 13 | ||||
-rw-r--r-- | www/gatling/files/patch-http.c | 9 | ||||
-rw-r--r-- | www/gatling/files/patch-matchiprange.c | 10 | ||||
-rw-r--r-- | www/gatling/files/patch-rellink.c | 6 | ||||
-rw-r--r-- | www/gatling/files/patch-strndup.c | 65 |
9 files changed, 15 insertions, 144 deletions
diff --git a/www/gatling/Makefile b/www/gatling/Makefile index 8bd20391a64e..120f7a6e681b 100644 --- a/www/gatling/Makefile +++ b/www/gatling/Makefile @@ -6,7 +6,7 @@ # PORTNAME= gatling -PORTVERSION= 0.11 +PORTVERSION= 0.12 CATEGORIES= www benchmarks ftp ipv6 MASTER_SITES= http://dl.fefe.de/ diff --git a/www/gatling/distinfo b/www/gatling/distinfo index c3711d98e2b4..a1f73c66c027 100644 --- a/www/gatling/distinfo +++ b/www/gatling/distinfo @@ -1,3 +1,3 @@ -MD5 (gatling-0.11.tar.bz2) = a0fb49ccb6b910bdbd7e76a9960394e3 -SHA256 (gatling-0.11.tar.bz2) = 9e1cb18612905b63755b0f463e6c5268789b3ab47db364bebe1ad077583e7571 -SIZE (gatling-0.11.tar.bz2) = 93269 +MD5 (gatling-0.12.tar.bz2) = 38ed634965af837142918f631f204e1b +SHA256 (gatling-0.12.tar.bz2) = ffe4dbff99404eb80e6aac215fdf6bf8174355edc33dd1848a51fc1093296a7c +SIZE (gatling-0.12.tar.bz2) = 99540 diff --git a/www/gatling/files/patch-GNUmakefile b/www/gatling/files/patch-GNUmakefile index 0ecb695d3c39..bfdcf8f0084d 100644 --- a/www/gatling/files/patch-GNUmakefile +++ b/www/gatling/files/patch-GNUmakefile @@ -1,5 +1,5 @@ ---- GNUmakefile.orig 2009-04-09 19:00:23.000000000 +0200 -+++ GNUmakefile 2009-04-10 17:46:56.000000000 +0200 +--- GNUmakefile.orig 2010-04-11 07:49:08.000000000 +0200 ++++ GNUmakefile 2010-04-14 18:29:35.000000000 +0200 @@ -1,24 +1,23 @@ -#DEBUG=1 -ZLIB=1 @@ -46,7 +46,7 @@ CFLAGS+=-g LDFLAGS+=-g -else --CFLAGS+=-O2 -fomit-frame-pointer +-CFLAGS+=-O2 -fomit-frame-pointer -I/usr/local/include -LDFLAGS+=-s -ifneq ($(DIET),) -DIET+=-Os @@ -63,26 +63,15 @@ forksbench: forkbench.o $(CC) -static -o $@ forkbench.o $(LDFLAGS) $(LDLIBS) -@@ -86,9 +81,11 @@ - gatling: gatling.o $(OBJS) md5lib - $(CC) $(LDFLAGS) $@.o $(OBJS) -o $@ $(LDLIBS) `cat md5lib` - -+dl: dl.c havestrndup havestrndup.h -+ $(CC) $(CFLAGS) dl.c `cat havestrndup` $(LDFLAGS) -lowfat -o $@ -+ - httpbench: httpbench.o - bindbench: bindbench.o --dl: dl.o - ioerr: ioerr.o - bench: bench.o - getlinks: getlinks.o -@@ -121,9 +118,13 @@ +@@ -121,11 +116,13 @@ rm -f trysocket libiconv: tryiconv.c - if $(CC) $(CFLAGS) -o tryiconv tryiconv.c >/dev/null 2>&1; then echo ""; else \ -- if $(CC) $(CFLAGS) -o tryiconv tryiconv.c -liconv >/dev/null 2>&1; then echo "-liconv"; \ -- fi; fi > libiconv +- if $(CC) $(CFLAGS) -o tryiconv tryiconv.c -liconv >/dev/null 2>&1; then echo "-liconv"; else \ +- if $(CC) $(CFLAGS) -o tryiconv tryiconv.c -L/usr/local/lib -liconv >/dev/null 2>&1; then \ +- echo "-L/usr/local/lib -liconv"; \ +- fi; fi; fi > libiconv +ifdef ICONV + if $(CC) $(CFLAGS) $(LDFLAGS) -o tryiconv tryiconv.c -liconv >/dev/null 2>&1; then echo "-L$(LDFLAGS) -liconv"; else \ + echo ""; \ @@ -93,14 +82,3 @@ rm -f tryiconv libcrypt: trycrypt.c -@@ -144,6 +145,10 @@ - if $(CC) $(CFLAGS) -o tryresuid $^ >/dev/null 2>&1; then echo "#define LIBC_HAS_SETRESUID"; fi > $@ - -rm -f tryresuid - -+havestrndup havestrndup.h: trystrndup.c -+ if $(CC) $(CFLAGS) -o trystrndup $^ >/dev/null 2>&1; then echo "">havestrndup; echo "#define LIBC_HAS_STRNDUP">havestrndup.h; else echo "strndup.c">havestrndup; echo "">havestrndup.h; fi -+ rm -f trystrndup -+ - dummy.c: - touch $@ - diff --git a/www/gatling/files/patch-bench.c b/www/gatling/files/patch-bench.c deleted file mode 100644 index e833944cc33c..000000000000 --- a/www/gatling/files/patch-bench.c +++ /dev/null @@ -1,10 +0,0 @@ ---- bench.c.orig 2009-04-10 18:15:06.000000000 +0200 -+++ bench.c 2009-04-10 18:15:19.000000000 +0200 -@@ -13,6 +13,7 @@ - #include <errno.h> - #include <buffer.h> - #include <fcntl.h> -+#include <string.h> - - void usage() { - die(0,"usage: bench [-n requests] [-c concurrency] [-t timeout] [-k] [-K count]\n" diff --git a/www/gatling/files/patch-dl.c b/www/gatling/files/patch-dl.c deleted file mode 100644 index e2828dc78ef7..000000000000 --- a/www/gatling/files/patch-dl.c +++ /dev/null @@ -1,13 +0,0 @@ ---- dl.c.orig 2009-04-10 17:51:59.000000000 +0200 -+++ dl.c 2009-04-10 17:56:31.000000000 +0200 -@@ -37,6 +37,10 @@ - #include <assert.h> - #include <ctype.h> - #include <string.h> -+#include "havestrndup.h" -+#ifndef LIBC_HAS_STRNDUP -+char* strndup(const char*, size_t); -+#endif - - int dostats; - diff --git a/www/gatling/files/patch-http.c b/www/gatling/files/patch-http.c deleted file mode 100644 index 13e52e79d9dd..000000000000 --- a/www/gatling/files/patch-http.c +++ /dev/null @@ -1,9 +0,0 @@ ---- http.c.orig 2009-04-10 16:01:37.000000000 +0200 -+++ http.c 2009-04-10 16:01:57.000000000 +0200 -@@ -1,4 +1,6 @@ -+/* this define breaks the build on FreeBSD: - #define _XOPEN_SOURCE 500 -+*/ - - #include "gatling.h" - diff --git a/www/gatling/files/patch-matchiprange.c b/www/gatling/files/patch-matchiprange.c deleted file mode 100644 index c12afc7486c3..000000000000 --- a/www/gatling/files/patch-matchiprange.c +++ /dev/null @@ -1,10 +0,0 @@ ---- matchiprange.c.orig 2009-04-10 18:17:38.000000000 +0200 -+++ matchiprange.c 2009-04-10 18:17:58.000000000 +0200 -@@ -17,6 +17,7 @@ - #include <fmt.h> - #include <ctype.h> - #include <ip6.h> -+#include <string.h> - - char _buf[8192]; - diff --git a/www/gatling/files/patch-rellink.c b/www/gatling/files/patch-rellink.c index 8503f2edd933..571253586e0d 100644 --- a/www/gatling/files/patch-rellink.c +++ b/www/gatling/files/patch-rellink.c @@ -1,10 +1,10 @@ ---- rellink.c.orig 2009-04-10 18:15:33.000000000 +0200 -+++ rellink.c 2009-04-10 18:15:46.000000000 +0200 +--- 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) { - /* for the comments, assume baseurl is "http://www.fefe.de/x/y.html" */ diff --git a/www/gatling/files/patch-strndup.c b/www/gatling/files/patch-strndup.c deleted file mode 100644 index 0993ebceca87..000000000000 --- a/www/gatling/files/patch-strndup.c +++ /dev/null @@ -1,65 +0,0 @@ ---- /dev/null 2009-04-10 17:44:00.000000000 +0200 -+++ trystrndup.c 2009-04-10 17:01:00.000000000 +0200 -@@ -0,0 +1,6 @@ -+#include <string.h> -+int main() { -+char* s; -+s=strndup("foo",3); -+return 0; -+} ---- /dev/null 2009-04-10 16:55:00.000000000 +0200 -+++ strndup.c 2009-01-08 10:50:20.000000000 +0100 -@@ -0,0 +1,53 @@ -+/* $NetBSD: strndup.c,v 1.3 2007/01/14 23:41:24 cbiere Exp $ */ -+ -+/* -+ * Copyright (c) 1988, 1993 -+ * The Regents of the University of California. All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * 4. Neither the name of the University nor the names of its contributors -+ * may be used to endorse or promote products derived from this software -+ * without specific prior written permission. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``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 REGENTS OR CONTRIBUTORS 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. -+ */ -+ -+#include <sys/cdefs.h> -+__FBSDID("$FreeBSD: /tmp/pcvs/ports/www/gatling/files/Attic/patch-strndup.c,v 1.1 2009-05-28 17:21:46 dhn Exp $"); -+ -+#include <stddef.h> -+#include <stdlib.h> -+#include <string.h> -+ -+char * -+strndup(const char *str, size_t n) -+{ -+ size_t len; -+ char *copy; -+ -+ for (len = 0; len < n && str[len]; len++) -+ continue; -+ -+ if ((copy = malloc(len + 1)) == NULL) -+ return (NULL); -+ memcpy(copy, str, len); -+ copy[len] = '\0'; -+ return (copy); -+} |