diff options
author | flz <flz@FreeBSD.org> | 2005-11-23 22:06:53 +0800 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2005-11-23 22:06:53 +0800 |
commit | a3ce4f371e599506f179dccf5f40eb4c4aaeaeb0 (patch) | |
tree | c5f3b69f542785856dec0923a2ecc5284e2fbfeb /ftp/prozilla/files | |
parent | 9b7da7b7919cb716a938d584542e33d05fe166b1 (diff) | |
download | freebsd-ports-gnome-a3ce4f371e599506f179dccf5f40eb4c4aaeaeb0.tar.gz freebsd-ports-gnome-a3ce4f371e599506f179dccf5f40eb4c4aaeaeb0.tar.zst freebsd-ports-gnome-a3ce4f371e599506f179dccf5f40eb4c4aaeaeb0.zip |
- Update to 2.0.1 [1].
- Remove local patches since they've been integrated in the release) [1].
- Use bzip2 distfile [1].
- Fix issue with non-standard PREFIX/LOCALBASE.
PR: ports/88815 [1]
Submitted by: maintainer [1]
Diffstat (limited to 'ftp/prozilla/files')
-rw-r--r-- | ftp/prozilla/files/patch-connect.c | 126 | ||||
-rw-r--r-- | ftp/prozilla/files/patch-connection.c | 15 | ||||
-rw-r--r-- | ftp/prozilla/files/patch-ftp-retr.c | 10 | ||||
-rw-r--r-- | ftp/prozilla/files/patch-ftpsearch.c | 10 | ||||
-rw-r--r-- | ftp/prozilla/files/patch-http-retr.c | 10 | ||||
-rw-r--r-- | ftp/prozilla/files/patch-ltmain.sh | 16 | ||||
-rw-r--r-- | ftp/prozilla/files/patch-misc.c | 10 | ||||
-rw-r--r-- | ftp/prozilla/files/patch-ping.c | 10 |
8 files changed, 16 insertions, 191 deletions
diff --git a/ftp/prozilla/files/patch-connect.c b/ftp/prozilla/files/patch-connect.c deleted file mode 100644 index 77a9325fa148..000000000000 --- a/ftp/prozilla/files/patch-connect.c +++ /dev/null @@ -1,126 +0,0 @@ ---- 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> - #include <unistd.h> -+#include <sys/types.h> - #include <sys/socket.h> - #include <fcntl.h> - #include <netdb.h> -+#include <netinet/in_systm.h> - #include <netinet/in.h> - #include <netinet/ip.h> - #include <netdb.h> -@@ -42,53 +44,52 @@ - #include "runtime.h" - #include "debug.h" - -+static pthread_mutex_t __thread_safe_lock = PTHREAD_MUTEX_INITIALIZER; -+ - uerr_t connect_to_server(int *sock, char *name, int port, int timeout) - { -- unsigned int portnum; -+ char szPort[10]; - int status; -- struct sockaddr_in server; -- struct hostent *hp, hostbuf; - extern int h_errno; - /* int opt; */ - int noblock, flags; - -- char *tmphstbuf; -- size_t hstbuflen = 2048; -- tmphstbuf = kmalloc(hstbuflen); -+ struct addrinfo hints, *res=NULL; -+ struct addrinfo *res0=NULL; -+ int error; - - 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); -- -- if (hp == NULL) -- { -- message("Failed to resolve %s", name); -- return HOSTERR; -- } -+ error = getaddrinfo(name, szPort, &hints, &res); -+ if (error) { -+ message("Failed to resolve %s", name); -+ pthread_mutex_unlock(&__thread_safe_lock); -+ freeaddrinfo(res); -+ return HOSTERR; -+ } - - 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); - - /* - * create socket - */ -- if ((*sock = socket(AF_INET, SOCK_STREAM, 0)) < 1) -+ if ((*sock = socket(res0->ai_family, res0->ai_socktype, 0)) < 1) - { - message("unable to create socket\n"); -+ free(res0); - return CONSOCKERR; - } - /*Experimental */ -@@ -100,8 +101,7 @@ - - message("Connecting to server......."); - -- -- status = connect(*sock, (struct sockaddr *) &server, sizeof(server)); -+ status = connect(*sock, res0->ai_addr, res0->ai_addrlen); - - if (status == -1 && noblock != -1 && errno == EINPROGRESS) - { -@@ -137,10 +137,13 @@ - { - close(*sock); - -- if (errno == ECONNREFUSED) -+ if (errno == ECONNREFUSED) { -+ free(res0); - return CONREFUSED; -- else -+ } else { -+ free(res0); - return CONERROR; -+ } - } else - { - flags = fcntl(*sock, F_GETFL, 0); -@@ -156,6 +159,7 @@ - * (char *) &opt, (int) sizeof(opt)); - */ - message("Connect OK!"); -+ free(res0); - return NOCONERROR; - } - diff --git a/ftp/prozilla/files/patch-connection.c b/ftp/prozilla/files/patch-connection.c deleted file mode 100644 index 9edd9e1053fe..000000000000 --- a/ftp/prozilla/files/patch-connection.c +++ /dev/null @@ -1,15 +0,0 @@ ---- src/connection.c.ori Sat Jan 25 00:33:14 2003 -+++ src/connection.c Sat Jan 25 00:33:38 2003 -@@ -30,7 +30,12 @@ - #include <assert.h> - #include <pthread.h> - -+#ifdef __FreeBSD__ -+#include <sys/param.h> -+#include <sys/mount.h> -+#else - #include <sys/vfs.h> -+#endif - - #include "connection.h" - #include "misc.h" diff --git a/ftp/prozilla/files/patch-ftp-retr.c b/ftp/prozilla/files/patch-ftp-retr.c deleted file mode 100644 index 516fefbf4e47..000000000000 --- a/ftp/prozilla/files/patch-ftp-retr.c +++ /dev/null @@ -1,10 +0,0 @@ ---- src/ftp-retr.c.ori Sat Jan 25 00:40:45 2003 -+++ src/ftp-retr.c Sat Jan 25 00:40:56 2003 -@@ -32,6 +32,7 @@ - #include <netdb.h> - #include <sys/socket.h> - #include <sys/time.h> -+#include <netinet/in_systm.h> - #include <netinet/in.h> - #include <netinet/ip.h> - #include <netinet/tcp.h> diff --git a/ftp/prozilla/files/patch-ftpsearch.c b/ftp/prozilla/files/patch-ftpsearch.c deleted file mode 100644 index c5ecb09902dc..000000000000 --- a/ftp/prozilla/files/patch-ftpsearch.c +++ /dev/null @@ -1,10 +0,0 @@ ---- src/ftpsearch.c.ori Sat Jan 25 00:45:38 2003 -+++ src/ftpsearch.c Sat Jan 25 00:45:48 2003 -@@ -25,6 +25,7 @@ - #include <sys/socket.h> - #include <fcntl.h> - #include <netdb.h> -+#include <netinet/in_systm.h> - #include <netinet/in.h> - #include <netinet/ip.h> - #include <arpa/inet.h> diff --git a/ftp/prozilla/files/patch-http-retr.c b/ftp/prozilla/files/patch-http-retr.c deleted file mode 100644 index ff51af07226f..000000000000 --- a/ftp/prozilla/files/patch-http-retr.c +++ /dev/null @@ -1,10 +0,0 @@ ---- src/http-retr.c.ori Sat Jan 25 00:49:21 2003 -+++ src/http-retr.c Sat Jan 25 00:49:34 2003 -@@ -32,6 +32,7 @@ - #include <fcntl.h> - #include <sys/socket.h> - #include <sys/time.h> -+#include <netinet/in_systm.h> - #include <netinet/in.h> - #include <netinet/ip.h> - #include <netinet/tcp.h> diff --git a/ftp/prozilla/files/patch-ltmain.sh b/ftp/prozilla/files/patch-ltmain.sh new file mode 100644 index 000000000000..7f883792c4f8 --- /dev/null +++ b/ftp/prozilla/files/patch-ltmain.sh @@ -0,0 +1,16 @@ +--- ltmain.sh.orig Wed Nov 2 13:02:43 2005 ++++ ltmain.sh Thu Nov 10 16:33:44 2005 +@@ -5771,11 +5771,13 @@ + IFS="$save_ifs" + fi + ++ if /usr/bin/false; then + # Install the pseudo-library for information purposes. + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + instname="$dir/$name"i + $show "$install_prog $instname $destdir/$name" + $run eval "$install_prog $instname $destdir/$name" || exit $? ++ fi + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" diff --git a/ftp/prozilla/files/patch-misc.c b/ftp/prozilla/files/patch-misc.c deleted file mode 100644 index 20298f17aa85..000000000000 --- a/ftp/prozilla/files/patch-misc.c +++ /dev/null @@ -1,10 +0,0 @@ ---- src/misc.c.ori Sat Jan 25 01:38:04 2003 -+++ src/misc.c Sat Jan 25 01:38:40 2003 -@@ -24,7 +24,6 @@ - #include <stdio.h> - #include <stdarg.h> - #include <stdlib.h> --#include <malloc.h> - #include <string.h> - #include <ctype.h> - #include <curses.h> diff --git a/ftp/prozilla/files/patch-ping.c b/ftp/prozilla/files/patch-ping.c deleted file mode 100644 index d095e3988695..000000000000 --- a/ftp/prozilla/files/patch-ping.c +++ /dev/null @@ -1,10 +0,0 @@ ---- src/ping.c.ori Sat Jan 25 00:53:13 2003 -+++ src/ping.c Sat Jan 25 00:53:28 2003 -@@ -23,6 +23,7 @@ - #include <sys/socket.h> - #include <fcntl.h> - #include <netdb.h> -+#include <netinet/in_systm.h> - #include <netinet/in.h> - #include <netinet/ip.h> - #include <arpa/inet.h> |