diff options
author | Volker Stolz <vs@FreeBSD.org> | 2005-10-12 09:27:17 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2005-10-12 09:27:17 +0000 |
commit | e11b8d2e26b0cf89950835742674f9c49e078f4e (patch) | |
tree | 78a06006c820d7343a3e475dbe001a2f6f53b65d /ftp | |
parent | USE_INC_LIBTOOL instead of local patch (diff) |
Update to 1.3.7.4
PR: ports/87177
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=145084
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/prozilla/Makefile | 25 | ||||
-rw-r--r-- | ftp/prozilla/distinfo | 4 | ||||
-rw-r--r-- | ftp/prozilla/files/patch-connect.c | 81 | ||||
-rw-r--r-- | ftp/prozilla/pkg-plist | 11 |
4 files changed, 51 insertions, 70 deletions
diff --git a/ftp/prozilla/Makefile b/ftp/prozilla/Makefile index faa2eff59930..50c8e51766a1 100644 --- a/ftp/prozilla/Makefile +++ b/ftp/prozilla/Makefile @@ -6,35 +6,32 @@ # PORTNAME= prozilla -PORTVERSION= 1.3.7.3 +PORTVERSION= 1.3.7.4 CATEGORIES= ftp MASTER_SITES= http://prozilla.genesys.ro/downloads/prozilla/tarballs/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= alejandro@varnet.biz COMMENT= ProZilla is a fast download accelerator USE_GETOPT_LONG=yes -USE_REINPLACE= yes USE_GMAKE= yes +USE_REINPLACE= yes GNU_CONFIGURE= yes -CPPFLAGS= -I${LOCALBASE}/include -LDFLAGS= -L${LOCALBASE}/lib -CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" -MAN1= proz.1 prozilla.1 +MAN1= proz.1 prozilla.1 -DOCS= ANNOUNCE AUTHORS COPYING CREDITS ChangeLog INSTALL FAQ NEWS README TODO +.if !defined(NOPORTDOCS) +PORTDOCS= ANNOUNCE AUTHORS COPYING CREDITS ChangeLog INSTALL FAQ NEWS \ + README TODO +.endif post-patch: - @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ - s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|%Ld|%lld|g' ${WRKSRC}/src/*.c ${WRKSRC}/src/*.h post-install: .if !defined(NOPORTDOCS) - ${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR} -.for f in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} -.endfor + ${MKDIR} ${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) .endif .include <bsd.port.mk> diff --git a/ftp/prozilla/distinfo b/ftp/prozilla/distinfo index 4ac810994b8b..c3ee1e893a7c 100644 --- a/ftp/prozilla/distinfo +++ b/ftp/prozilla/distinfo @@ -1,2 +1,2 @@ -MD5 (prozilla-1.3.7.3.tar.gz) = 88f0d9d88aa7628239dae08804dcd550 -SIZE (prozilla-1.3.7.3.tar.gz) = 218616 +MD5 (prozilla-1.3.7.4.tar.gz) = b594b55b1b49a8eca2505173cc1bfc44 +SIZE (prozilla-1.3.7.4.tar.gz) = 222229 diff --git a/ftp/prozilla/files/patch-connect.c b/ftp/prozilla/files/patch-connect.c index 71c1d863a39f..77a9325fa148 100644 --- a/ftp/prozilla/files/patch-connect.c +++ b/ftp/prozilla/files/patch-connect.c @@ -1,5 +1,5 @@ ---- src/connect.c.ori Fri Aug 17 20:38:25 2001 -+++ src/connect.c Sat Feb 7 02:11:10 2004 +--- src/connect.c.orig Sat Feb 26 16:47:17 2005 ++++ src/connect.c Sun Oct 9 13:06:34 2005 @@ -24,9 +24,11 @@ #include <stdio.h> #include <stdlib.h> @@ -12,7 +12,7 @@ #include <netinet/in.h> #include <netinet/ip.h> #include <netdb.h> -@@ -42,51 +44,58 @@ +@@ -42,53 +44,52 @@ #include "runtime.h" #include "debug.h" @@ -20,7 +20,7 @@ + uerr_t connect_to_server(int *sock, char *name, int port, int timeout) { - unsigned int portnum; +- unsigned int portnum; + char szPort[10]; int status; - struct sockaddr_in server; @@ -35,18 +35,17 @@ + struct addrinfo hints, *res=NULL; + struct addrinfo *res0=NULL; + int error; -+ -+ memset(&hints, 0, sizeof(hints)); -+ memset(szPort, 0, sizeof(szPort)); -+ sprintf(szPort, "%d", port); -+ hints.ai_family = AF_INET; -+ hints.ai_socktype = SOCK_STREAM; assert(name != NULL); - portnum = port; - memset((void *) &server, 0, sizeof(server)); -- ++ memset(&hints, 0, sizeof(hints)); ++ memset(szPort, 0, sizeof(szPort)); ++ snprintf(szPort, sizeof(szPort), "%d", port); ++ hints.ai_family = AF_INET; ++ hints.ai_socktype = SOCK_STREAM; + message("Resolving %s", name); - hp=k_gethostname (name,&hostbuf,&tmphstbuf,&hstbuflen); @@ -56,14 +55,6 @@ - message("Failed to resolve %s", name); - return HOSTERR; - } -+ pthread_mutex_lock(&__thread_safe_lock); - -- message("Resolved %s !", name); -- -- -- memcpy((void *) &server.sin_addr, hp->h_addr, hp->h_length); -- server.sin_family = hp->h_addrtype; -- server.sin_port = htons(portnum); + error = getaddrinfo(name, szPort, &hints, &res); + if (error) { + message("Failed to resolve %s", name); @@ -71,13 +62,22 @@ + freeaddrinfo(res); + return HOSTERR; + } -+ -+ message("Resolved %s !", name); -+ + + message("Resolved %s !", name); +- +- memcpy((void *) &server.sin_addr, hp->h_addr, hp->h_length); +- server.sin_family = hp->h_addrtype; +- server.sin_port = htons(portnum); + +- if (tmphstbuf) +- { +- free(tmphstbuf); +- tmphstbuf = NULL; +- } + res0 = (struct addrinfo *) malloc(sizeof(struct addrinfo)); + memcpy(res0, res, sizeof(struct addrinfo)); + freeaddrinfo(res); -+ pthread_mutex_unlock(&__thread_safe_lock); ++ pthread_mutex_unlock(&__thread_safe_lock); /* * create socket @@ -86,15 +86,11 @@ + if ((*sock = socket(res0->ai_family, res0->ai_socktype, 0)) < 1) { message("unable to create socket\n"); -- free(tmphstbuf); -+ free(res0); ++ free(res0); return CONSOCKERR; } -+ /*Experimental */ - flags = fcntl(*sock, F_GETFL, 0); - if (flags != -1) -@@ -96,8 +105,7 @@ +@@ -100,8 +101,7 @@ message("Connecting to server......."); @@ -104,27 +100,26 @@ if (status == -1 && noblock != -1 && errno == EINPROGRESS) { -@@ -135,11 +143,11 @@ +@@ -137,10 +137,13 @@ + { + close(*sock); - if (errno == ECONNREFUSED) - { -- free(tmphstbuf); -+ free(res0); +- if (errno == ECONNREFUSED) ++ if (errno == ECONNREFUSED) { ++ free(res0); return CONREFUSED; - } else - { -- free(tmphstbuf); -+ free(res0); +- else ++ } else { ++ free(res0); return CONERROR; - } ++ } } else -@@ -156,8 +164,9 @@ - /* setsockopt(*sock, SOL_SOCKET, SO_KEEPALIVE, + { + flags = fcntl(*sock, F_GETFL, 0); +@@ -156,6 +159,7 @@ * (char *) &opt, (int) sizeof(opt)); */ -+ message("Connect OK!"); -- free(tmphstbuf); + free(res0); return NOCONERROR; } diff --git a/ftp/prozilla/pkg-plist b/ftp/prozilla/pkg-plist index e0c134274925..397769ae78ef 100644 --- a/ftp/prozilla/pkg-plist +++ b/ftp/prozilla/pkg-plist @@ -1,14 +1,3 @@ bin/proz @unexec if cmp -s %D/etc/prozilla.conf %D/etc/prozilla.conf-sample; then rm -f %D/etc/prozilla.conf; fi etc/prozilla.conf-sample -%%PORTDOCS%%%%DOCSDIR%%/ANNOUNCE -%%PORTDOCS%%%%DOCSDIR%%/AUTHORS -%%PORTDOCS%%%%DOCSDIR%%/COPYING -%%PORTDOCS%%%%DOCSDIR%%/CREDITS -%%PORTDOCS%%%%DOCSDIR%%/ChangeLog -%%PORTDOCS%%%%DOCSDIR%%/FAQ -%%PORTDOCS%%%%DOCSDIR%%/INSTALL -%%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/TODO -%%PORTDOCS%%@dirrm %%DOCSDIR%% |