diff options
author | mnag <mnag@FreeBSD.org> | 2005-09-18 04:34:23 +0800 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2005-09-18 04:34:23 +0800 |
commit | f6432cd089345156632c4d353c3b4ca4cb118009 (patch) | |
tree | a183c5b945d64da1ed94e5195bb5980d554ffe05 /ftp/downloader | |
parent | cddd5c2987668f9986b2ca8a94178a6a58db3bd2 (diff) | |
download | freebsd-ports-gnome-f6432cd089345156632c4d353c3b4ca4cb118009.tar.gz freebsd-ports-gnome-f6432cd089345156632c4d353c3b4ca4cb118009.tar.zst freebsd-ports-gnome-f6432cd089345156632c4d353c3b4ca4cb118009.zip |
Update to 2.5.5
PR: ports/86266
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Approved by: pav (mentor)
Diffstat (limited to 'ftp/downloader')
-rw-r--r-- | ftp/downloader/Makefile | 15 | ||||
-rw-r--r-- | ftp/downloader/distinfo | 4 | ||||
-rw-r--r-- | ftp/downloader/files/patch-main-base64.cc | 10 | ||||
-rw-r--r-- | ftp/downloader/files/patch-main-cookie.cc | 11 | ||||
-rw-r--r-- | ftp/downloader/files/patch-main-signal.cc | 11 | ||||
-rw-r--r-- | ftp/downloader/files/patch-main-sm.cc | 10 |
6 files changed, 56 insertions, 5 deletions
diff --git a/ftp/downloader/Makefile b/ftp/downloader/Makefile index 975ffd07ec79..771720ef52c8 100644 --- a/ftp/downloader/Makefile +++ b/ftp/downloader/Makefile @@ -7,7 +7,7 @@ # PORTNAME= downloader -PORTVERSION= 2.5.4 +PORTVERSION= 2.5.5 CATEGORIES= ftp MASTER_SITES= http://www.krasu.ru/soft/chuchelo/files/ \ ftp://ftp.chg.ru/pub/X11/applications/Xdownloader/ @@ -47,8 +47,17 @@ post-patch: s|-lpthread||g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's| DOC||g ; \ s| share||g' ${WRKSRC}/Makefile.in - @${REINPLACE_CMD} -e 's|MUTEX_TYPE_FAST|PTHREAD_MUTEX_NORMAL|g' \ - ${WRKSRC}/main/signal.cc +.if ${OSVERSION} < 500000 +.for file in main/addr.cc main/dlist.cc main/ftpd.cc main/face/mywidget.cc + @${REINPLACE_CMD} -e 's|pass\.clear()|pass = ""|g ; \ + s|user\.clear()|user = ""|g ; \ + s|host\.clear()|host = ""|g ; \ + s|file\.clear()|file = ""|g ; \ + s|params\.clear()|params = ""|g ; \ + s|tag\.clear()|tag = ""|g ; \ + s|path\.clear()|path = ""|g' ${WRKSRC}/${file} +.endfor +.endif post-install: ${INSTALL_MAN} ${WRKSRC}/DOC/nt.1 ${MANPREFIX}/man/man1 diff --git a/ftp/downloader/distinfo b/ftp/downloader/distinfo index 3d13fed6397d..13cad762e50b 100644 --- a/ftp/downloader/distinfo +++ b/ftp/downloader/distinfo @@ -1,2 +1,2 @@ -MD5 (d4x-2.5.4.tar.bz2) = c797a933a8de1503b069b6d2499da727 -SIZE (d4x-2.5.4.tar.bz2) = 1549811 +MD5 (d4x-2.5.5.tar.bz2) = ee3c7dc4618b6ead77a22685195fcf24 +SIZE (d4x-2.5.5.tar.bz2) = 1556952 diff --git a/ftp/downloader/files/patch-main-base64.cc b/ftp/downloader/files/patch-main-base64.cc new file mode 100644 index 000000000000..653a6decb0fb --- /dev/null +++ b/ftp/downloader/files/patch-main-base64.cc @@ -0,0 +1,10 @@ +--- main/base64.cc.orig Fri Sep 16 13:32:16 2005 ++++ main/base64.cc Fri Sep 16 23:03:23 2005 +@@ -13,6 +13,7 @@ + #include "base64.h" + #include <string.h> + #include <stdio.h> ++#include <inttypes.h> + + char Table64[64]={ 'A','B','C','D','E','F','G','H', + 'I','J','K','L','M','N','O','P', diff --git a/ftp/downloader/files/patch-main-cookie.cc b/ftp/downloader/files/patch-main-cookie.cc new file mode 100644 index 000000000000..2bb8f891d41f --- /dev/null +++ b/ftp/downloader/files/patch-main-cookie.cc @@ -0,0 +1,11 @@ +--- main/cookie.cc.orig Tue Sep 13 19:59:44 2005 ++++ main/cookie.cc Fri Sep 16 23:10:02 2005 +@@ -109,7 +109,7 @@ + }; + + void tCookie::set_time(const std::string &what){ +- time_of_life=atoll(what.c_str()); ++ time_of_life=strtoll(what.c_str(), (char **)NULL, 10); + }; + + void tCookie::init(char *a,char *b,char *c,char *d){ diff --git a/ftp/downloader/files/patch-main-signal.cc b/ftp/downloader/files/patch-main-signal.cc new file mode 100644 index 000000000000..ebb821cf203e --- /dev/null +++ b/ftp/downloader/files/patch-main-signal.cc @@ -0,0 +1,11 @@ +--- main/signal.cc.bak Fri Jul 2 00:41:31 2004 ++++ main/signal.cc Fri Sep 16 22:58:09 2005 +@@ -120,7 +120,7 @@ + pthread_mutexattr_t ma; + pthread_mutexattr_init(&ma); + #if !defined (__sparc__) && !defined(__mips__) +- pthread_mutexattr_settype(&ma,MUTEX_TYPE_FAST); ++ pthread_mutexattr_settype(&ma,PTHREAD_MUTEX_NORMAL); + #elif defined(__mips__) + pthread_mutexattr_settype(&ma,MUTEX_TYPE_NORMAL); + #endif diff --git a/ftp/downloader/files/patch-main-sm.cc b/ftp/downloader/files/patch-main-sm.cc new file mode 100644 index 000000000000..b6dbe8d641e8 --- /dev/null +++ b/ftp/downloader/files/patch-main-sm.cc @@ -0,0 +1,10 @@ +--- main/sm.cc.orig Thu Sep 15 14:31:21 2005 ++++ main/sm.cc Fri Sep 16 23:11:53 2005 +@@ -10,6 +10,7 @@ + */ + + #include "sm.h" ++#include <algorithm> + #include <functional> + + using namespace d4x; |