summaryrefslogtreecommitdiff
path: root/net/aria2
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2012-12-09 08:10:46 +0000
committerryoon <ryoon@pkgsrc.org>2012-12-09 08:10:46 +0000
commitea4e80948ffa183d41a6f7e132bbf530cc4ffb89 (patch)
tree3015b509f97c61ed19d33d9992bda1408cea7150 /net/aria2
parentc87f2a69847f2fd8919003bad7c105c214d3f3d1 (diff)
downloadpkgsrc-ea4e80948ffa183d41a6f7e132bbf530cc4ffb89.tar.gz
Update to 1.16.0
changelog: aria2 1.16.0 ============ Release Note ------------ This release adds SSL/TLS encryption support in RPC transport. The new RPC method aria2.appendUri is added, which is a wrapper to aria2.changeUri. The Content-Disposition parser is now RFC 6266 conformant. The resource leak in XmlParser, JSON and Bencode parser was fixed. The uploaded data size calculation bug was fixed. For MinGW32 build, files are now opened with read/write shared mode. Changes ------- * mingw32: Open file using _wsopen and added --enable-mmap support I tried CreateFile but the subsequent ReadFile fails with Access Denied if sparse file is read on NTFS. I mostly reverted previous changes and use _wsopen with read/write share enabled instead of CreateFile. This change also includes --enable-mmap support for MinGW32 build. Memory mapped file may be useful for 64-bits OS and lots of RAM. Currently, FlushViewOfFile is not called during the download, so it is slightly vulnerable against sudden power loss. I found lots of read when resuming download due to page fault. So for now it is useful for the initial download. I recommend not to use --file-allocation=prealloc with --enable-mmap for MinGW32, because it triggers page faults even in the initial download. Anyway, the option is experimental. * Removed PO files and generated aria2.pot from repository Currently, message translation is done at launchpad. All PO files can be exported from there. The merge process from launchpad is done when new release. First download export file from launchpad And use import-po script to import PO files into po directory. * Set F_GLOBAL_NOCACHE for Mac OS X * Enabled TCP_NODELAY * Don't use AC_FUNC_MMAP Don't use AC_FUNC_MMAP becaue it fails on some platforms (e.g., OpenWRT) which have mmap and it works in the way we use in aria2. Instead use mmap in AC_CHECK_FUNCS list. * Added --force-save option. --force-save option saves download with --save-session option even if the download is completed or removed. This may be useful to save BitTorrent seeding which is recognized as completed state. The default value is false. * Get the correct uploaded data size Subtract msgHdrLen_ from writtenLength to get the uploaded data size. Without this correction, the seeder assumes it has uploaded more data than it actually has. * Made --http-no-cache false by default * Fixed memory leak in AsyncNameResolver * Fixed resource leak in XmlParser and GenericParser * Reset iostream format state * gnutls: Added more status checking when verifying peer * Content-Disposition parser conforming to RFC 6266. RFC 2231 Continuation is not supported. * Reworked download/upload statistics calculation The old implementation calculates download/upload statistics for a RequestGroup by summing up all PeerStat objects. For global statistics, those are summed together. This clearly incurs runtime penalty and we introduced some kind of caching which updates statistics every 250ms but it did not work right. This change removes all these aggregation code, and instead makes RequestGroup and RequestGroupMan objects hold NetStat object and download/upload bytes are directly calculated by thier own NetStat. This is far more simplar than the old way and less runtime penalty and brings more accuracy. * Added --rpc-save-upload-metadata option If true is given, which is default, save the uploaded torrent or metalink metadata in the directory specified by --dir option. The filename consists of SHA1-hash hex string of metadata plus extension. For torrent, the extension is '.torrent'. For metalink, it is '.meta4'. If false is given to this option, the downloads added by aria2.addTorrent or aria2.addMetalink will not be saved by --save-session option. * Perform SSL/TLS handshake after checking whether connection is established * Fixed bug that --enable-mmap won't work if MultiDiskAdaptor is used * RPC over SSL/TLS transport To enable RPC over SSL/TLS, specify server certificate and private key using --rpc-certificate and --rpc-private-key options and enable --rpc-secure option. After the encryption is enabled, use https and wss scheme to access RPC server. * aria2rpc: Added appendUri command This command calls aria2.changeUri(GID, fileIndex, [], [URI,...]) internally. * Don't send Proxy-Connection header field * Don't set SNI hostname if it does not include "." for GNUTLS * Disable SSL/TLS compression with OpenSSL * Pause download even if download is completed This allows to pause and unpause BitTorrent seed. * Use execlp() instead of execl()
Diffstat (limited to 'net/aria2')
-rw-r--r--net/aria2/Makefile4
-rw-r--r--net/aria2/PLIST12
-rw-r--r--net/aria2/distinfo8
3 files changed, 17 insertions, 7 deletions
diff --git a/net/aria2/Makefile b/net/aria2/Makefile
index 15d9ee5ed04..28af2e140a9 100644
--- a/net/aria2/Makefile
+++ b/net/aria2/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.36 2012/10/23 17:18:09 asau Exp $
+# $NetBSD: Makefile,v 1.37 2012/12/09 08:10:46 ryoon Exp $
#
-DISTNAME= aria2-1.15.2
+DISTNAME= aria2-1.16.0
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aria2/}
EXTRACT_SUFX= .tar.bz2
diff --git a/net/aria2/PLIST b/net/aria2/PLIST
index bbefb8db5bb..488419ff3b7 100644
--- a/net/aria2/PLIST
+++ b/net/aria2/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.14 2012/07/03 19:39:47 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.15 2012/12/09 08:10:46 ryoon Exp $
bin/aria2c
man/man1/aria2c.1
man/ru/man1/aria2c.1
@@ -12,6 +12,7 @@ share/doc/aria2/xmlrpc/aria2mon
share/doc/aria2/xmlrpc/aria2rpc
share/locale/ar/LC_MESSAGES/aria2.mo
share/locale/bg/LC_MESSAGES/aria2.mo
+share/locale/bn/LC_MESSAGES/aria2.mo
share/locale/ca/LC_MESSAGES/aria2.mo
share/locale/da/LC_MESSAGES/aria2.mo
share/locale/de/LC_MESSAGES/aria2.mo
@@ -19,19 +20,27 @@ share/locale/el/LC_MESSAGES/aria2.mo
share/locale/en@boldquot/LC_MESSAGES/aria2.mo
share/locale/en@quot/LC_MESSAGES/aria2.mo
share/locale/es/LC_MESSAGES/aria2.mo
+share/locale/fa/LC_MESSAGES/aria2.mo
share/locale/fi/LC_MESSAGES/aria2.mo
+share/locale/fil/LC_MESSAGES/aria2.mo
share/locale/fr/LC_MESSAGES/aria2.mo
share/locale/he/LC_MESSAGES/aria2.mo
+share/locale/hr/LC_MESSAGES/aria2.mo
share/locale/hu/LC_MESSAGES/aria2.mo
share/locale/id/LC_MESSAGES/aria2.mo
share/locale/it/LC_MESSAGES/aria2.mo
share/locale/ja/LC_MESSAGES/aria2.mo
+share/locale/kk/LC_MESSAGES/aria2.mo
share/locale/ko/LC_MESSAGES/aria2.mo
+share/locale/ms/LC_MESSAGES/aria2.mo
+share/locale/nb/LC_MESSAGES/aria2.mo
share/locale/nl/LC_MESSAGES/aria2.mo
share/locale/nn/LC_MESSAGES/aria2.mo
+share/locale/oc/LC_MESSAGES/aria2.mo
share/locale/pl/LC_MESSAGES/aria2.mo
share/locale/pt/LC_MESSAGES/aria2.mo
share/locale/pt_BR/LC_MESSAGES/aria2.mo
+share/locale/ro/LC_MESSAGES/aria2.mo
share/locale/ru/LC_MESSAGES/aria2.mo
share/locale/sk/LC_MESSAGES/aria2.mo
share/locale/sr/LC_MESSAGES/aria2.mo
@@ -41,4 +50,5 @@ share/locale/tr/LC_MESSAGES/aria2.mo
share/locale/uk/LC_MESSAGES/aria2.mo
share/locale/vi/LC_MESSAGES/aria2.mo
share/locale/zh_CN/LC_MESSAGES/aria2.mo
+share/locale/zh_HK/LC_MESSAGES/aria2.mo
share/locale/zh_TW/LC_MESSAGES/aria2.mo
diff --git a/net/aria2/distinfo b/net/aria2/distinfo
index 2eb43353807..80f768b7bb6 100644
--- a/net/aria2/distinfo
+++ b/net/aria2/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.27 2012/10/01 15:30:33 ryoon Exp $
+$NetBSD: distinfo,v 1.28 2012/12/09 08:10:46 ryoon Exp $
-SHA1 (aria2-1.15.2.tar.bz2) = d33afc9bb4f854f3fc41adf46dd281f0c48b74ec
-RMD160 (aria2-1.15.2.tar.bz2) = 1d4e90f2a9dd58b1207068990612f2554531f19d
-Size (aria2-1.15.2.tar.bz2) = 2043212 bytes
+SHA1 (aria2-1.16.0.tar.bz2) = ef7bc1a0fc90f58cc767f240eb49d099c02b93d9
+RMD160 (aria2-1.16.0.tar.bz2) = 189d351fc9ccc395d6a9fbe8ea4970577e19d012
+Size (aria2-1.16.0.tar.bz2) = 2062545 bytes