aboutsummaryrefslogtreecommitdiff
path: root/www/http_load
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-15 21:51:10 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-15 21:51:10 +0000
commit3b07b583e3390732c9597c3e4430ed104d50b154 (patch)
tree93b61538611d78d1afab883e6fe6dc5f443669e7 /www/http_load
parent2f1065d8ee4ee4c85bcc1695c31256f174972f03 (diff)
downloadports-3b07b583e3390732c9597c3e4430ed104d50b154.tar.gz
ports-3b07b583e3390732c9597c3e4430ed104d50b154.zip
Notes
Diffstat (limited to 'www/http_load')
-rw-r--r--www/http_load/Makefile2
-rw-r--r--www/http_load/files/patch-aa38
2 files changed, 37 insertions, 3 deletions
diff --git a/www/http_load/Makefile b/www/http_load/Makefile
index 917450a1edce..79a568ea81c2 100644
--- a/www/http_load/Makefile
+++ b/www/http_load/Makefile
@@ -7,7 +7,7 @@
PORTNAME= http_load
PORTVERSION= 20020104
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= http://www.acme.com/software/http_load/
DISTNAME= ${PORTNAME}-04jan2002
diff --git a/www/http_load/files/patch-aa b/www/http_load/files/patch-aa
index c4f1622eb8cf..5342a50b59ab 100644
--- a/www/http_load/files/patch-aa
+++ b/www/http_load/files/patch-aa
@@ -1,5 +1,39 @@
---- http_load.c.old Tue Dec 9 02:22:07 2003
-+++ http_load.c Tue Dec 9 03:43:39 2003
+--- http_load.c.bak Fri Jul 15 23:49:26 2005
++++ http_load.c Fri Jul 15 23:49:33 2005
+@@ -655,11 +655,11 @@
+ (void) memset( &hints, 0, sizeof(hints) );
+ hints.ai_family = PF_UNSPEC;
+ hints.ai_socktype = SOCK_STREAM;
+- (void) snprintf( portstr, sizeof(portstr), "%d", (int) urls[url_num].port );
+- if ( (gaierr = getaddrinfo( urls[url_num].hostname, portstr, &hints, &ai )) != 0 )
++ (void) snprintf( portstr, sizeof(portstr), "%d", (int) port );
++ if ( (gaierr = getaddrinfo( hostname, portstr, &hints, &ai )) != 0 )
+ {
+ (void) fprintf(
+- stderr, "%s: getaddrinfo %s - %s\n", argv0, urls[url_num].hostname,
++ stderr, "%s: getaddrinfo %s - %s\n", argv0, hostname,
+ gai_strerror( gaierr ) );
+ exit( 1 );
+ }
+@@ -724,15 +724,15 @@
+
+ (void) fprintf(
+ stderr, "%s: no valid address found for host %s\n", argv0,
+- urls[url_num].hostname );
++ hostname );
+ exit( 1 );
+
+ #else /* USE_IPV6 */
+
+- he = gethostbyname( urls[url_num].hostname );
++ he = gethostbyname( hostname );
+ if ( he == (struct hostent*) 0 )
+ {
+- (void) fprintf( stderr, "%s: unknown host - %s\n", argv0, urls[url_num].hostname );
++ (void) fprintf( stderr, "%s: unknown host - %s\n", argv0, hostname );
+ exit( 1 );
+ }
+ urls[url_num].sock_family = urls[url_num].sa.sin_family = he->h_addrtype;
@@ -825,6 +825,7 @@
ClientData client_data;
int flags;