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

(-)www/pound/Makefile (-3 / +2 lines)
Lines 6-15 Link Here
6
#
6
#
7
7
8
PORTNAME=	pound
8
PORTNAME=	pound
9
PORTVERSION=	1.7
9
PORTVERSION=	1.8
10
CATEGORIES=	www net
10
CATEGORIES=	www net
11
MASTER_SITES=	http://www.apsis.ch/pound/ \
11
MASTER_SITES=	http://www.apsis.ch/pound/
12
		ftp://ftp.nuug.no/pub/anders/distfiles/
13
DISTNAME=	Pound-${PORTVERSION}
12
DISTNAME=	Pound-${PORTVERSION}
14
EXTRACT_SUFX=	.tgz
13
EXTRACT_SUFX=	.tgz
15
14
(-)www/pound/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (Pound-1.7.tgz) = ebd15a0ff4a1920a857239630c33e8f5
1
MD5 (Pound-1.8.tgz) = f8a15e9019ce778afae952a83c172145
2
SIZE (Pound-1.7.tgz) = 132879
2
SIZE (Pound-1.8.tgz) = 139707
(-)www/pound/files/patch-Makefile.in (-13 lines)
Lines 1-13 Link Here
1
--- Makefile.in	Wed Mar 24 11:03:14 2004
2
+++ Makefile.in	Sun Mar 28 15:01:40 2004
3
@@ -48,8 +48,8 @@
4
 $(OBJS):	pound.h
5
 
6
 install:	all
7
-		@INSTALL@ -o bin -g bin -m 555 -s -D pound @sbindir@/pound
8
-		@INSTALL@ -o bin -g bin -m 644 -D pound.8 @mandir@/man8/pound.8
9
+		@INSTALL@ -o bin -g bin -m 555 -s pound @sbindir@/pound
10
+		@INSTALL@ -o bin -g bin -m 644 pound.8 @mandir@/man8/pound.8
11
 
12
 clean:
13
 		rm -f pound $(OBJS)
(-)www/pound/files/patch-configure (-13 lines)
Lines 1-13 Link Here
1
--- configure.orig	Fri Apr 30 22:18:25 2004
2
+++ configure	Fri Apr 30 22:19:13 2004
3
@@ -2348,8 +2348,8 @@
4
 
5
 case $target_os in
6
 *BSD*|*bsd*)
7
-    CPPFLAGS="${CPPFLAGS} -pthread -DNEED_STACK -D_REENTRANT -D_THREAD_SAFE"
8
-    LDFLAGS="${LDFLAGS} -pthread"
9
+    CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS} -DNEED_STACK -D_REENTRANT -D_THREAD_SAFE"
10
+    LDFLAGS="${PTHREAD_LIBS} ${LDFLAGS}"
11
     ;;
12
 *)
13
     CPPFLAGS="${CPPFLAGS} -D_REENTRANT"
(-)www/pound/files/patch-pound.c (-30 lines)
Lines 1-30 Link Here
1
--- pound.c	Wed Mar 24 16:03:14 2004
2
+++ pound.c	Tue Mar 30 19:13:51 2004
3
@@ -742,10 +742,11 @@
4
                                     logmsg(LOG_WARNING, "HTTP arg: malloc");
5
                                     close(clnt);
6
                                 } else {
7
+                                    socklen_t namelen;
8
                                     arg->sock = clnt;
9
                                     arg->from_host = clnt_addr.sin_addr;
10
-                                    memset(&arg->to_host, 0, n = sizeof(arg->to_host));
11
-                                    getsockname(http_sock[i], (struct sockaddr *)&arg->to_host, &n);
12
+                                    memset(&arg->to_host, 0, namelen = sizeof(arg->to_host));
13
+                                    getsockname(http_sock[i], (struct sockaddr *)&arg->to_host, &namelen);
14
                                     arg->ctx = NULL;
15
                                     if(pthread_create(&thr, &attr, thr_http, (void *)arg)) {
16
                                         logmsg(LOG_WARNING, "HTTP pthread_create: %s", strerror(errno));
17
@@ -776,10 +777,11 @@
18
                                     logmsg(LOG_WARNING, "HTTPS arg: malloc");
19
                                     close(clnt);
20
                                 } else {
21
+                                    socklen_t namelen;
22
                                     arg->sock = clnt;
23
                                     arg->from_host = clnt_addr.sin_addr;
24
-                                    memset(&arg->to_host, 0, n = sizeof(arg->to_host));
25
-                                    getsockname(https_sock[i], (struct sockaddr *)&arg->to_host, &n);
26
+                                    memset(&arg->to_host, 0, namelen = sizeof(arg->to_host));
27
+                                    getsockname(https_sock[i], (struct sockaddr *)&arg->to_host, &namelen);
28
                                     arg->ctx = ctx[i];
29
                                     if(pthread_create(&thr, &attr, thr_http, (void *)arg)) {
30
                                         logmsg(LOG_WARNING, "HTTPS pthread_create: %s", strerror(errno));

Return to bug 73923