[20930] trunk/dports/www/pound

source_changes at macosforge.org source_changes at macosforge.org
Mon Dec 11 16:04:54 PST 2006


Revision: 20930
          http://trac.macosforge.org/projects/macports/changeset/20930
Author:   pguyot at kallisys.net
Date:     2006-12-11 16:04:53 -0800 (Mon, 11 Dec 2006)

Log Message:
-----------
www/pound: update to 2.1.8

Modified Paths:
--------------
    trunk/dports/www/pound/Portfile

Added Paths:
-----------
    trunk/dports/www/pound/files/patch-svc.c

Removed Paths:
-------------
    trunk/dports/www/pound/files/patch-Makefile.in

Modified: trunk/dports/www/pound/Portfile
===================================================================
--- trunk/dports/www/pound/Portfile	2006-12-11 22:50:33 UTC (rev 20929)
+++ trunk/dports/www/pound/Portfile	2006-12-12 00:04:53 UTC (rev 20930)
@@ -2,7 +2,7 @@
 
 PortSystem        1.0
 name              pound
-version           1.9.5
+version           2.1.8
 categories        www
 maintainers       rcavanaugh at gmail.com
 description       A reverse proxy, load balancer and HTTPS front-end for Web server(s)
@@ -16,12 +16,14 @@
 distname          Pound-${version}
 extract.suffix    .tgz
 master_sites      ${homepage}
-checksums         sha1 6a47f7d6cccd6144cd67b32854fa39a6e4741978
-patchfiles        patch-Makefile.in
+checksums         md5 1693d2b49491d52406f496001e7e97d2 \
+                  sha1 995f410eead732e795cd0713a6d976a606647eba \
+                  rmd160 a9b12834858ab49456ed360f5fa33abab6f1c0b9 
 depends_lib       port:openssl
 configure.args    --mandir=\\\$\\{prefix\\}/share/man \
                   --infodir=\\\$\\{prefix\\}/share/info \
                   --with-ssl=${prefix}/include/openssl
+patchfiles        patch-svc.c
 
 destroot.destdir  prefix=${destroot}${prefix}
 

Deleted: trunk/dports/www/pound/files/patch-Makefile.in
===================================================================
--- trunk/dports/www/pound/files/patch-Makefile.in	2006-12-11 22:50:33 UTC (rev 20929)
+++ trunk/dports/www/pound/files/patch-Makefile.in	2006-12-12 00:04:53 UTC (rev 20930)
@@ -1,19 +0,0 @@
---- Makefile.in	2005-12-07 10:58:28.000000000 +0100
-+++ Makefile.in	2006-01-31 18:23:38.000000000 +0100
-@@ -26,6 +26,7 @@
- #
- # $Id: patch-Makefile.in,v 1.1 2006/01/31 17:33:05 mww Exp $
- 
-+CC=@CC@
- CFLAGS=-DF_CONF=\"$(F_CONF)\" @CFLAGS@ @CPPFLAGS@
- 
- LIBS=@LIBS@
-@@ -41,7 +42,7 @@
- all:	pound pound.8
- 
- pound:	$(OBJS)
--		@CC@ @LDFLAGS@ -o pound $(OBJS) $(LIBS)
-+		$(CC) @LDFLAGS@ -o pound $(OBJS) $(LIBS)
- 
- $(OBJS):	pound.h
- 

Added: trunk/dports/www/pound/files/patch-svc.c
===================================================================
--- trunk/dports/www/pound/files/patch-svc.c	                        (rev 0)
+++ trunk/dports/www/pound/files/patch-svc.c	2006-12-12 00:04:53 UTC (rev 20930)
@@ -0,0 +1,22 @@
+--- svc.c	2006-12-12 09:04:50.000000000 +0900
++++ svc.c	2006-12-09 17:39:26.000000000 +0900
+@@ -625,6 +625,7 @@
+ }
+ 
+ static pthread_mutex_t  host_mut;       /* mutex to protect gethostbyname */
++static int              host_mut_initialized = 0;
+ 
+ /*
+  * Find if a redirect needs rewriting
+@@ -667,6 +668,11 @@
+     memset(&addr, 0, sizeof(addr));
+     addr.sin_family = AF_INET;
+     /* this is to avoid the need for gethostbyname_r */
++    if(!host_mut_initialized) {
++        host_mut_initialized = 1; 
++        if(ret_val = pthread_mutex_init(&host_mut, NULL))
++            logmsg(LOG_WARNING, "need_rewrite() create: %s", strerror(ret_val));
++    }
+     if(ret_val = pthread_mutex_lock(&host_mut))
+         logmsg(LOG_WARNING, "need_rewrite() lock: %s", strerror(ret_val));
+     if((he = gethostbyname(host)) == NULL || he->h_addr_list[0] == NULL) {

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061211/65819d5b/attachment.html


More information about the macports-changes mailing list