diff options
author | bjs <bjs@pkgsrc.org> | 2007-11-23 07:46:34 +0000 |
---|---|---|
committer | bjs <bjs@pkgsrc.org> | 2007-11-23 07:46:34 +0000 |
commit | 5503c5a98c4475831f6d8abe252b845da9bbc5d5 (patch) | |
tree | 39f21648d08441bcda7e21afe06760a829e18cc9 /net/aria2 | |
parent | 2623b35649a0171cecf0164ac57e36f2fd8b148a (diff) | |
download | pkgsrc-5503c5a98c4475831f6d8abe252b845da9bbc5d5.tar.gz |
Update to version 0.11.5. Remove interim patches from SVN.
Changes (patches took us to ~2007-11-11):
2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Synchronized translation files with launchpad.
* po/fr.po
* po/ru.po
* po/de.po: Now utf-8 encoding
* po/ja.po: Now utf-8 encoding
* Release 0.11.5
2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
urlencode the given url inside Request::parseUrl(...)
* src/Request.{h, cc}
* src/Util.{h, cc}
* test/RequestTest.cc
Removed #!metalink3! notation support because it is deleted from
the metalink specification.
* src/Request.{h, cc}
* test/RequestTest.cc
2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* src/HttpRequest.cc (createProxyRequest): Removed urlencode from
user-agent.
* test/HttpRequestTest.cc (testUserAgent): Added.
Diffstat (limited to 'net/aria2')
-rw-r--r-- | net/aria2/Makefile | 7 | ||||
-rw-r--r-- | net/aria2/distinfo | 15 | ||||
-rw-r--r-- | net/aria2/options.mk | 8 | ||||
-rw-r--r-- | net/aria2/patches/patch-ag | 31 | ||||
-rw-r--r-- | net/aria2/patches/patch-ah | 53 | ||||
-rw-r--r-- | net/aria2/patches/patch-ai | 25 | ||||
-rw-r--r-- | net/aria2/patches/patch-aj | 13 | ||||
-rw-r--r-- | net/aria2/patches/patch-ak | 40 | ||||
-rw-r--r-- | net/aria2/patches/patch-al | 13 | ||||
-rw-r--r-- | net/aria2/patches/patch-am | 88 |
10 files changed, 11 insertions, 282 deletions
diff --git a/net/aria2/Makefile b/net/aria2/Makefile index ab8db54c674..60e0e14a71d 100644 --- a/net/aria2/Makefile +++ b/net/aria2/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.5 2007/11/16 08:06:33 bjs Exp $ +# $NetBSD: Makefile,v 1.6 2007/11/23 07:46:34 bjs Exp $ # -DISTNAME= aria2-0.11.4 -PKGREVISION= 2 +DISTNAME= aria2-0.11.5 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aria2/} EXTRACT_SUFX= .tar.bz2 @@ -35,7 +34,7 @@ BUILDLINK_DEPMETHOD.cppunit?= build . include "../../devel/cppunit/buildlink3.mk" .else CONFIGURE_ARGS+= --disable-xmltest -.endif +.endif .include "../../converters/libiconv/buildlink3.mk" .include "../../devel/gettext-lib/buildlink3.mk" diff --git a/net/aria2/distinfo b/net/aria2/distinfo index e150ca54041..3c815d9cde9 100644 --- a/net/aria2/distinfo +++ b/net/aria2/distinfo @@ -1,18 +1,11 @@ -$NetBSD: distinfo,v 1.4 2007/11/16 08:06:33 bjs Exp $ +$NetBSD: distinfo,v 1.5 2007/11/23 07:46:35 bjs Exp $ -SHA1 (aria2-0.11.4.tar.bz2) = 76144a9525c005ea39ceda82da8f61883ab4ac6f -RMD160 (aria2-0.11.4.tar.bz2) = 1a9807ed2b24448062e78818a59e51eccdb822cc -Size (aria2-0.11.4.tar.bz2) = 540252 bytes +SHA1 (aria2-0.11.5.tar.bz2) = 93272ca14daf72cccd65140c09a54616a67d6850 +RMD160 (aria2-0.11.5.tar.bz2) = 7aac56e01b297fe40fe6d2d0fd26781ede46239b +Size (aria2-0.11.5.tar.bz2) = 540503 bytes SHA1 (patch-aa) = 166fd5b7737424762d0cf36dea68951894ead244 SHA1 (patch-ab) = 47f90f558e4ac0ba0fba6f3cbaad5d2d10de8041 SHA1 (patch-ac) = 64b43e0b75d82c0602d1c53764ab8e2896a35c69 SHA1 (patch-ad) = 037d1cc28a45fc636487dcddc5e014ca43df66c4 SHA1 (patch-ae) = 80a2c165130282b893c39ed6428689c14f7b08bc SHA1 (patch-af) = 5a045331fc27ced85571ff59e03ed562ad3901fe -SHA1 (patch-ag) = d60d9bd458f1543b2f47eafadae328d9e1862afb -SHA1 (patch-ah) = 54d31f1b33848d044b4492700401589193bb6d60 -SHA1 (patch-ai) = d8c0ee2c70c0f49999ef67d760d24074120aa0b5 -SHA1 (patch-aj) = 8c2df42e035b7cff88f09ade6bceba46f8ce8f4d -SHA1 (patch-ak) = bda3c3c70ae2da15bc2d02245db741798e3e7159 -SHA1 (patch-al) = 6fa61faedf017f1adce4354e09171db39a2e9fb7 -SHA1 (patch-am) = 806211d4e3990ebc411c14ec5b7662d0a332d9ac diff --git a/net/aria2/options.mk b/net/aria2/options.mk index d2cec74d443..a9735d03cc1 100644 --- a/net/aria2/options.mk +++ b/net/aria2/options.mk @@ -1,11 +1,11 @@ -# $NetBSD: options.mk,v 1.3 2007/10/17 09:51:14 bjs Exp $ +# $NetBSD: options.mk,v 1.4 2007/11/23 07:46:35 bjs Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.aria2 -PKG_OPTIONS_GROUP.tls= gnutls ssl -PKG_OPTIONS_GROUP.asyncns= ares cares +PKG_OPTIONS_GROUP.tls= gnutls ssl +PKG_OPTIONS_GROUP.asyncns= ares cares -PKG_OPTIONS_REQUIRED_GROUPS= tls asyncns +PKG_OPTIONS_REQUIRED_GROUPS= tls asyncns PKG_SUPPORTED_OPTIONS+= aria2-metalink PKG_SUGGESTED_OPTIONS+= ssl cares aria2-metalink diff --git a/net/aria2/patches/patch-ag b/net/aria2/patches/patch-ag deleted file mode 100644 index c6ec71e8b95..00000000000 --- a/net/aria2/patches/patch-ag +++ /dev/null @@ -1,31 +0,0 @@ -$NetBSD: patch-ag,v 1.3 2007/11/16 08:06:33 bjs Exp $ - ---- ChangeLog.orig 2007-10-28 06:26:51.000000000 -0400 -+++ ChangeLog -@@ -1,3 +1,19 @@ -+2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> -+ -+ urlencode the given url inside Request::parseUrl(...) -+ * src/Request.{h, cc} -+ * src/Util.{h, cc} -+ * test/RequestTest.cc -+ -+ Removed #!metalink3! notation support because it is deleted from -+ the metalink specification. -+ * src/Request.{h, cc} -+ * test/RequestTest.cc -+ -+2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> -+ -+ * src/SocketCore.cc (writeData): Fixed send error with GnuTLS. -+ - 2007-10-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> - - * po/LINGUAS: Added nl for Dutch translation. -@@ -6974,4 +6990,4 @@ - 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com> - - * Release 0.1.0 -- -\ No newline at end of file -+ diff --git a/net/aria2/patches/patch-ah b/net/aria2/patches/patch-ah deleted file mode 100644 index ef9515a0cd0..00000000000 --- a/net/aria2/patches/patch-ah +++ /dev/null @@ -1,53 +0,0 @@ -$NetBSD: patch-ah,v 1.3 2007/11/16 08:06:33 bjs Exp $ - ---- src/Request.cc.orig 2007-10-11 12:48:21.000000000 -0400 -+++ src/Request.cc -@@ -68,14 +68,9 @@ bool Request::parseUrl(const string& url - string tempUrl; - string::size_type sharpIndex = url.find("#"); - if(sharpIndex != string::npos) { -- if(FeatureConfig::getInstance()->isSupported("metalink") && -- url.find(METALINK_MARK) == sharpIndex) { -- tempUrl = url.substr(sharpIndex+strlen(METALINK_MARK)); -- } else { -- tempUrl = url.substr(0, sharpIndex); -- } -+ tempUrl = urlencode(url.substr(0, sharpIndex)); - } else { -- tempUrl = url; -+ tempUrl = urlencode(url); - } - - currentUrl = tempUrl; -@@ -145,3 +140,31 @@ AuthConfigHandle Request::resolveHttpPro - { - return _httpProxyAuthResolver->resolveAuthConfig(getHost()); - } -+ -+bool Request::isHexNumber(const char c) const -+{ -+ return '0' <= c && c <= '9' || 'A' <= c && c <= 'F' || 'a' <= c && c <= 'f'; -+} -+ -+string Request::urlencode(const string& src) const -+{ -+ int32_t lastIndex = src.size()-1; -+ string result = src+" "; -+ for(int32_t index = lastIndex; index >= 0; --index) { -+ const char c = result[index]; -+ // '/' is not urlencoded because src is expected to be a path. -+ if(Util::shouldUrlencode(c)) { -+ if(c == '%') { -+ if(!isHexNumber(result[index+1]) || !isHexNumber(result[index+2])) { -+ result.replace(index, 1, "%25"); -+ } -+ } else { -+ char temp[4]; -+ sprintf(temp, "%%%02x", c); -+ temp[3] = '\0'; -+ result.replace(index, 1, temp); -+ } -+ } -+ } -+ return result.substr(0, result.size()-2); -+} diff --git a/net/aria2/patches/patch-ai b/net/aria2/patches/patch-ai deleted file mode 100644 index 30ccf25876e..00000000000 --- a/net/aria2/patches/patch-ai +++ /dev/null @@ -1,25 +0,0 @@ -$NetBSD: patch-ai,v 1.3 2007/11/16 08:06:33 bjs Exp $ - ---- src/Request.h.orig 2007-08-28 12:36:33.000000000 -0400 -+++ src/Request.h -@@ -48,8 +48,6 @@ - "%"\ - "#" - --#define METALINK_MARK "#!metalink3!" -- - class Request { - public: - enum TRACKER_EVENT { -@@ -87,6 +85,11 @@ private: - AuthResolverHandle _ftpAuthResolver; - - bool parseUrl(const string& url); -+ -+ bool isHexNumber(const char c) const; -+ -+ string urlencode(const string& src) const; -+ - public: - CookieBoxHandle cookieBox; - public: diff --git a/net/aria2/patches/patch-aj b/net/aria2/patches/patch-aj deleted file mode 100644 index 5ca789ec39f..00000000000 --- a/net/aria2/patches/patch-aj +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-aj,v 1.3 2007/11/16 08:06:33 bjs Exp $ - ---- src/SocketCore.cc.orig 2007-08-28 12:36:33.000000000 -0400 -+++ src/SocketCore.cc -@@ -331,7 +331,7 @@ void SocketCore::writeData(const char* d - } - #endif // HAVE_LIBSSL - #ifdef HAVE_LIBGNUTLS -- if((ret = gnutls_record_send(sslSession, data, len)) == len) { -+ if((ret = gnutls_record_send(sslSession, data, len)) != len) { - throw new DlRetryEx(EX_SOCKET_SEND, gnutls_strerror(ret)); - } - #endif // HAVE_LIBGNUTLS diff --git a/net/aria2/patches/patch-ak b/net/aria2/patches/patch-ak deleted file mode 100644 index 3bb5a2a73f3..00000000000 --- a/net/aria2/patches/patch-ak +++ /dev/null @@ -1,40 +0,0 @@ -$NetBSD: patch-ak,v 1.3 2007/11/16 08:06:33 bjs Exp $ - ---- src/Util.cc.orig 2007-08-28 12:36:33.000000000 -0400 -+++ src/Util.cc -@@ -238,18 +238,26 @@ string Util::replace(const string& targe - return result; - } - -+bool Util::shouldUrlencode(const char c) -+{ -+ return !(// ALPHA -+ 'A' <= c && c <= 'Z' || 'a' <= c && c <= 'z' || -+ // DIGIT -+ '0' <= c && c <= '9' || -+ // safe -+ '$' == c || '-' == c || '_' == c || '.' == c || -+ // extra -+ '!' == c || '*' == c || '\'' == c ||'(' == c || -+ ')' == c || ',' == c || -+ // reserved -+ ';' == c || '/' == c || '?' == c || ':' == c || -+ '@' == c || '&' == c || '=' == c || '+' == c); -+} -+ - string Util::urlencode(const unsigned char* target, int32_t len) { - string dest; - for(int32_t i = 0; i < len; i++) { -- if(!('0' <= target[i] && target[i] <= '9' || -- 'A' <= target[i] && target[i] <= 'Z' || -- 'a' <= target[i] && target[i] <= 'z' || -- '$' == target[i] || '-' == target[i] || -- '_' == target[i] || '.' == target[i] || -- '+' == target[i] || '!' == target[i] || -- '*' == target[i] || '\'' == target[i] || -- '(' == target[i] || ')' == target[i] || -- ',' == target[i])) { -+ if(shouldUrlencode(target[i])) { - char temp[4]; - sprintf(temp, "%%%02x", target[i]); - temp[sizeof(temp)-1] = '\0'; diff --git a/net/aria2/patches/patch-al b/net/aria2/patches/patch-al deleted file mode 100644 index e2845b361ba..00000000000 --- a/net/aria2/patches/patch-al +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-al,v 1.3 2007/11/16 08:06:34 bjs Exp $ - ---- src/Util.h.orig 2007-08-28 12:36:33.000000000 -0400 -+++ src/Util.h -@@ -76,6 +76,8 @@ public: - - static string replace(const string& target, const string& oldstr, const string& newstr); - -+ static bool shouldUrlencode(const char c); -+ - static string urlencode(const unsigned char* target, int32_t len); - - static string urlencode(const string& target) diff --git a/net/aria2/patches/patch-am b/net/aria2/patches/patch-am deleted file mode 100644 index 0e3a4cd8ca4..00000000000 --- a/net/aria2/patches/patch-am +++ /dev/null @@ -1,88 +0,0 @@ -$NetBSD: patch-am,v 1.3 2007/11/16 08:06:34 bjs Exp $ - ---- test/RequestTest.cc.orig 2007-10-11 12:48:21.000000000 -0400 -+++ test/RequestTest.cc -@@ -21,12 +21,11 @@ class RequestTest:public CppUnit::TestFi - CPPUNIT_TEST(testSetUrl12); - CPPUNIT_TEST(testSetUrl13); - CPPUNIT_TEST(testSetUrl14); -+ CPPUNIT_TEST(testSetUrl17); - CPPUNIT_TEST(testRedirectUrl); - CPPUNIT_TEST(testRedirectUrl2); - CPPUNIT_TEST(testResetUrl); -- CPPUNIT_TEST(testSafeChar); - CPPUNIT_TEST(testInnerLink); -- CPPUNIT_TEST(testMetalink); - CPPUNIT_TEST(testResolveHttpAuthConfig); - CPPUNIT_TEST(testResolveHttpAuthConfig_noCandidate); - CPPUNIT_TEST(testResolveHttpProxyAuthConfig); -@@ -48,12 +47,11 @@ public: - void testSetUrl12(); - void testSetUrl13(); - void testSetUrl14(); -+ void testSetUrl17(); - void testRedirectUrl(); - void testRedirectUrl2(); - void testResetUrl(); -- void testSafeChar(); - void testInnerLink(); -- void testMetalink(); - void testResolveHttpAuthConfig(); - void testResolveHttpAuthConfig_noCandidate(); - void testResolveHttpProxyAuthConfig(); -@@ -217,6 +215,17 @@ void RequestTest::testSetUrl14() { - CPPUNIT_ASSERT_EQUAL(string("abc?query"), req.getFile()); - } - -+void RequestTest::testSetUrl17() -+{ -+ Request req; -+ bool v = req.setUrl("http://host:80/file<with%2 %20space/file with space;param?a=/?"); -+ CPPUNIT_ASSERT(v); -+ CPPUNIT_ASSERT_EQUAL(string("http"), req.getProtocol()); -+ CPPUNIT_ASSERT_EQUAL(string("host"), req.getHost()); -+ CPPUNIT_ASSERT_EQUAL(string("/file%3cwith%252%20%20space"), req.getDir()); -+ CPPUNIT_ASSERT_EQUAL(string("file%20with%20space;param?a=/?"), req.getFile()); -+} -+ - void RequestTest::testRedirectUrl() { - Request req; - bool v = req.setUrl("http://aria.rednoah.com:8080/aria2/index.html"); -@@ -279,12 +288,6 @@ void RequestTest::testResetUrl() { - CPPUNIT_ASSERT_EQUAL(string("index.html"), req.getFile()); - } - --void RequestTest::testSafeChar() { -- Request req; -- bool v = req.setUrl("http://aria.rednoah.com/|<>"); -- CPPUNIT_ASSERT(!v); --} -- - void RequestTest::testInnerLink() { - Request req; - bool v = req.setUrl("http://aria.rednoah.com/index.html#download"); -@@ -292,24 +295,6 @@ void RequestTest::testInnerLink() { - CPPUNIT_ASSERT_EQUAL(string("index.html"), req.getFile()); - } - --void RequestTest::testMetalink() { -- Request req; -- bool v = req.setUrl("http://aria.rednoah.com/download/aria.tar.bz2#!metalink3!http://aria2.sourceforge.net/download/aria.metalink"); -- CPPUNIT_ASSERT(v); --#ifdef ENABLE_METALINK -- CPPUNIT_ASSERT_EQUAL(string("aria2.sourceforge.net"), req.getHost()); -- CPPUNIT_ASSERT_EQUAL(string("/download"), req.getDir()); -- CPPUNIT_ASSERT_EQUAL(string("aria.metalink"), req.getFile()); -- -- bool v2 = req.setUrl("http://aria.rednoah.com/download/aria.tar.bz2#!metalink3!"); -- CPPUNIT_ASSERT(!v2); --#else -- CPPUNIT_ASSERT_EQUAL(string("aria.rednoah.com"), req.getHost()); -- CPPUNIT_ASSERT_EQUAL(string("/download"), req.getDir()); -- CPPUNIT_ASSERT_EQUAL(string("aria.tar.bz2"), req.getFile()); --#endif // ENABLE_METALINK --} -- - void RequestTest::testResolveHttpAuthConfig() - { - Request req; |