Sun Dec 9 08:10:46 2012 UTC ()
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()


(ryoon)
diff -r1.36 -r1.37 pkgsrc/net/aria2/Makefile
diff -r1.14 -r1.15 pkgsrc/net/aria2/PLIST
diff -r1.27 -r1.28 pkgsrc/net/aria2/distinfo

cvs diff -r1.36 -r1.37 pkgsrc/net/aria2/Makefile (expand / switch to unified diff)

--- pkgsrc/net/aria2/Makefile 2012/10/23 17:18:09 1.36
+++ pkgsrc/net/aria2/Makefile 2012/12/09 08:10:46 1.37
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1# $NetBSD: Makefile,v 1.36 2012/10/23 17:18:09 asau Exp $ 1# $NetBSD: Makefile,v 1.37 2012/12/09 08:10:46 ryoon Exp $
2# 2#
3 3
4DISTNAME= aria2-1.15.2 4DISTNAME= aria2-1.16.0
5CATEGORIES= net 5CATEGORIES= net
6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aria2/} 6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aria2/}
7EXTRACT_SUFX= .tar.bz2 7EXTRACT_SUFX= .tar.bz2
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= http://aria2.sourceforge.net/ 10HOMEPAGE= http://aria2.sourceforge.net/
11COMMENT= Multi-threaded, multi-protocol, flexible download accelerator 11COMMENT= Multi-threaded, multi-protocol, flexible download accelerator
12LICENSE= gnu-gpl-v2 12LICENSE= gnu-gpl-v2
13 13
14GNU_CONFIGURE= yes 14GNU_CONFIGURE= yes
15USE_LANGUAGES= c c++ 15USE_LANGUAGES= c c++
16USE_PKGLOCALEDIR= yes 16USE_PKGLOCALEDIR= yes
17 17

cvs diff -r1.14 -r1.15 pkgsrc/net/aria2/PLIST (expand / switch to unified diff)

--- pkgsrc/net/aria2/PLIST 2012/07/03 19:39:47 1.14
+++ pkgsrc/net/aria2/PLIST 2012/12/09 08:10:46 1.15
@@ -1,44 +1,54 @@ @@ -1,44 +1,54 @@
1@comment $NetBSD: PLIST,v 1.14 2012/07/03 19:39:47 ryoon Exp $ 1@comment $NetBSD: PLIST,v 1.15 2012/12/09 08:10:46 ryoon Exp $
2bin/aria2c 2bin/aria2c
3man/man1/aria2c.1 3man/man1/aria2c.1
4man/ru/man1/aria2c.1 4man/ru/man1/aria2c.1
5share/doc/aria2/README 5share/doc/aria2/README
6share/doc/aria2/README.html 6share/doc/aria2/README.html
7share/doc/aria2/README.rst 7share/doc/aria2/README.rst
8share/doc/aria2/bash_completion/README.txt 8share/doc/aria2/bash_completion/README.txt
9share/doc/aria2/bash_completion/aria2c 9share/doc/aria2/bash_completion/aria2c
10share/doc/aria2/xmlrpc/README.txt 10share/doc/aria2/xmlrpc/README.txt
11share/doc/aria2/xmlrpc/aria2mon 11share/doc/aria2/xmlrpc/aria2mon
12share/doc/aria2/xmlrpc/aria2rpc 12share/doc/aria2/xmlrpc/aria2rpc
13share/locale/ar/LC_MESSAGES/aria2.mo 13share/locale/ar/LC_MESSAGES/aria2.mo
14share/locale/bg/LC_MESSAGES/aria2.mo 14share/locale/bg/LC_MESSAGES/aria2.mo
 15share/locale/bn/LC_MESSAGES/aria2.mo
15share/locale/ca/LC_MESSAGES/aria2.mo 16share/locale/ca/LC_MESSAGES/aria2.mo
16share/locale/da/LC_MESSAGES/aria2.mo 17share/locale/da/LC_MESSAGES/aria2.mo
17share/locale/de/LC_MESSAGES/aria2.mo 18share/locale/de/LC_MESSAGES/aria2.mo
18share/locale/el/LC_MESSAGES/aria2.mo 19share/locale/el/LC_MESSAGES/aria2.mo
19share/locale/en@boldquot/LC_MESSAGES/aria2.mo 20share/locale/en@boldquot/LC_MESSAGES/aria2.mo
20share/locale/en@quot/LC_MESSAGES/aria2.mo 21share/locale/en@quot/LC_MESSAGES/aria2.mo
21share/locale/es/LC_MESSAGES/aria2.mo 22share/locale/es/LC_MESSAGES/aria2.mo
 23share/locale/fa/LC_MESSAGES/aria2.mo
22share/locale/fi/LC_MESSAGES/aria2.mo 24share/locale/fi/LC_MESSAGES/aria2.mo
 25share/locale/fil/LC_MESSAGES/aria2.mo
23share/locale/fr/LC_MESSAGES/aria2.mo 26share/locale/fr/LC_MESSAGES/aria2.mo
24share/locale/he/LC_MESSAGES/aria2.mo 27share/locale/he/LC_MESSAGES/aria2.mo
 28share/locale/hr/LC_MESSAGES/aria2.mo
25share/locale/hu/LC_MESSAGES/aria2.mo 29share/locale/hu/LC_MESSAGES/aria2.mo
26share/locale/id/LC_MESSAGES/aria2.mo 30share/locale/id/LC_MESSAGES/aria2.mo
27share/locale/it/LC_MESSAGES/aria2.mo 31share/locale/it/LC_MESSAGES/aria2.mo
28share/locale/ja/LC_MESSAGES/aria2.mo 32share/locale/ja/LC_MESSAGES/aria2.mo
 33share/locale/kk/LC_MESSAGES/aria2.mo
29share/locale/ko/LC_MESSAGES/aria2.mo 34share/locale/ko/LC_MESSAGES/aria2.mo
 35share/locale/ms/LC_MESSAGES/aria2.mo
 36share/locale/nb/LC_MESSAGES/aria2.mo
30share/locale/nl/LC_MESSAGES/aria2.mo 37share/locale/nl/LC_MESSAGES/aria2.mo
31share/locale/nn/LC_MESSAGES/aria2.mo 38share/locale/nn/LC_MESSAGES/aria2.mo
 39share/locale/oc/LC_MESSAGES/aria2.mo
32share/locale/pl/LC_MESSAGES/aria2.mo 40share/locale/pl/LC_MESSAGES/aria2.mo
33share/locale/pt/LC_MESSAGES/aria2.mo 41share/locale/pt/LC_MESSAGES/aria2.mo
34share/locale/pt_BR/LC_MESSAGES/aria2.mo 42share/locale/pt_BR/LC_MESSAGES/aria2.mo
 43share/locale/ro/LC_MESSAGES/aria2.mo
35share/locale/ru/LC_MESSAGES/aria2.mo 44share/locale/ru/LC_MESSAGES/aria2.mo
36share/locale/sk/LC_MESSAGES/aria2.mo 45share/locale/sk/LC_MESSAGES/aria2.mo
37share/locale/sr/LC_MESSAGES/aria2.mo 46share/locale/sr/LC_MESSAGES/aria2.mo
38share/locale/sv/LC_MESSAGES/aria2.mo 47share/locale/sv/LC_MESSAGES/aria2.mo
39share/locale/th/LC_MESSAGES/aria2.mo 48share/locale/th/LC_MESSAGES/aria2.mo
40share/locale/tr/LC_MESSAGES/aria2.mo 49share/locale/tr/LC_MESSAGES/aria2.mo
41share/locale/uk/LC_MESSAGES/aria2.mo 50share/locale/uk/LC_MESSAGES/aria2.mo
42share/locale/vi/LC_MESSAGES/aria2.mo 51share/locale/vi/LC_MESSAGES/aria2.mo
43share/locale/zh_CN/LC_MESSAGES/aria2.mo 52share/locale/zh_CN/LC_MESSAGES/aria2.mo
 53share/locale/zh_HK/LC_MESSAGES/aria2.mo
44share/locale/zh_TW/LC_MESSAGES/aria2.mo 54share/locale/zh_TW/LC_MESSAGES/aria2.mo

cvs diff -r1.27 -r1.28 pkgsrc/net/aria2/distinfo (expand / switch to unified diff)

--- pkgsrc/net/aria2/distinfo 2012/10/01 15:30:33 1.27
+++ pkgsrc/net/aria2/distinfo 2012/12/09 08:10:46 1.28
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.27 2012/10/01 15:30:33 ryoon Exp $ 1$NetBSD: distinfo,v 1.28 2012/12/09 08:10:46 ryoon Exp $
2 2
3SHA1 (aria2-1.15.2.tar.bz2) = d33afc9bb4f854f3fc41adf46dd281f0c48b74ec 3SHA1 (aria2-1.16.0.tar.bz2) = ef7bc1a0fc90f58cc767f240eb49d099c02b93d9
4RMD160 (aria2-1.15.2.tar.bz2) = 1d4e90f2a9dd58b1207068990612f2554531f19d 4RMD160 (aria2-1.16.0.tar.bz2) = 189d351fc9ccc395d6a9fbe8ea4970577e19d012
5Size (aria2-1.15.2.tar.bz2) = 2043212 bytes 5Size (aria2-1.16.0.tar.bz2) = 2062545 bytes