Commit graph

23 commits

Author SHA1 Message Date
drochner
d97ebdbc45 use libgnutls-config.mk to make the (non-default) "gnutls" option
work with gnutls-2.8
2009-07-03 10:31:30 +00:00
joerg
62d1ba2bac Remove @dirrm entries from PLISTs 2009-06-14 18:03:28 +00:00
bjs
0f9aaf7b5d Update to aria2-1.2.0. Many, many changes (too verbose to list here);
please see ChangeLog.  NOTE: libares is no longer supported; libcares
is used by default.
2009-03-08 23:41:33 +00:00
rillig
a855db009f Fixed invalid dependency. cppunit 1.10.2 has been released, 10.1.2
hasn't.
2009-01-25 07:05:14 +00:00
dholland
38b9661c7a Work around API bug in pre-christos-time_t NetBSD, where struct
timeval's seconds are "long" rather than "time_t". Passing these
seconds to localtime_r() breaks on 64-bit platforms where those types
aren't the same. Fixes PR 40323 from Andreas Burghardt.

PKGREVISION++ as a precaution, since I patched the source.
2009-01-03 23:11:47 +00:00
bjs
f2cfc2a46d Update to aria2-0.16.2. Notable changes:
- Added Serbian, Vietnamese, and Traditional Chinese translations.
  Updated French, Simplified Chinese, and Japanese Translations.

- Added length equality test to operator== to drop a piece message
  whose length does not match to the requested one.

- Fixed the bug that aria2 aborts when a request larger than 16KiB is
  recieved.  In this fix, if a request larger than 16KiB length is
  received, aria2 disconnects the peer.

- Updated man page. Changed doctype of aria2c.1.html to manpage in order
  not to replace '--' with em dash character.

- Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  every SEC seconds.

- Added --dht-file-path option to change the path to dht.dat, which is a
  serialized DHT routing table.

- Fixed the bug that last character in URI is not encoded.

- Fixed the bug that referer header field contains fragment.  Now Request
  class removes fragment part of URI and encodes it in Request::setUri()
  and setReferer().
2008-10-29 01:04:06 +00:00
bjs
80c939be54 Update to aria2-0.16.0. Lots of bug fixes, improved help text,
plus firefox3 cookie support.  This option requires sqlite3,
though the firefox3 option also enables this functionality.
2008-10-10 01:56:38 +00:00
bjs
84796f63b6 Update to aria2-0.15.3. Changes:
Added Turkish translation. Updated German and Russian translations.

  If an error occurred with a URI, remove identical URI from remaining
  URI list because it is likely that same error occurred in the end and it
  is waste of time.

  Added -lrt to LIBCARES_LIBS if -lrt is needed to link program with
  -lcares.

  Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  Added return value of getpid() to argument of srand() to achieve more
  randomized value.

  Contact tracker frequently when the number of connections are 0 and
  download is not finished yet.

  Moved threshold values to UTPexExtensionMessage.

  Added _incoming member to Peer class and made it true if the peer
  initiated connection. Don't add those peer to UTPex message.
  If extended handshake is received, assign _incoming to false.

  Fixed infinite loop bug in FTP when SIZE command failed.

  Made files whose name ends with ".gz", ".tgz" not inflated by Content
  Encoding Decoder. Removed size threshold for turning off on the fly
  inflation because resulting file may or may not be inflated depending
  on the file size and I think it is not expected by users.
  This change fixes segmentation fault when Metalink file contains gzipped
  file and its filesize is provided.

  Fixed chunk checksum validation cannot detect trailing garbage data.
  BUG#2074141
2008-09-08 03:07:48 +00:00
bjs
9c9154e58a Update to version 0.15.2. This release features extensive bug fixes and
significant feature enhancements; it also now builds on OpenSolaris
(tested with NexentaOS by development community).

I urge all users to upgrade.

A _partial_ list of changes:

- Added and/or updated Danish, Greek, Spanish, Catalan,
  Norwegian Nynorsk, Bulgarian, French, Catalan, and Japanese
  translations.
- Man page fixes.
- Fixed: numCommand is less than the value specified in -C option.
- Myriad bug fixes.
- Now uses name attribute in Metalink as local filename in
  BitTorrent downloads. BUG#2033999
- Fixed memory leaks in test code.
- Fixed wrong argument passing to BitfieldMan::isBitSet()
- Initialized _directIOAllowed
- Fixed memory leak in gzip decoder and metalink parser state
  machine.
- Plug many other memory leaks and fix unmatch malloc/free calls.
- Removed max chunk size check. This change fixes BUG#2040169
- Fixed the bug that causes segmentaion fault when resuming
  download using metalink without size tag. Reproducible only
  using HTTP URI.
- Removed writable check when socket's send buffer is full in
  BitTorrent downloads to lower CPU usage.
- Fixed broken gzip inflation.
  Turn off segmented downloading if gzip content is smaller than
  or equal to 1MiB and inflate the data on the fly, because HTTP
  response header doesn't contain the length of inflated
  file we can't determin where the chunk of data should be written.
  On the other hand, if gzip content is larger than 1MB, then
  turn off on the fly inflation, because some servers returns
  "content-type: gzip" for *.tgz, *.gz files.
 - Added gzip decompressor via libz.
 - Cache last calculated average download/upload speed.
 - Supported absolute/relative path in Location header field.
 - Use File::exists() instead of File::isFile() to allow non-
   regular file such as block special files.
 - Added a message "aria2 doesn't verify signature" to log message
   when signature file is saved.
 - Added the ability to save signature when download is completed
   if signature is available. The filename of signature file is
   the path to download file followed by ".sig". If it already
   exists, then signature will not be saved.
 - Improve accuracy of documentation and rename some options to be
    more descriptive of their functions/purposes.
 - Added the ability to retrieve signature from Metalink file.
    A retrieved signature is stored in Signature class and it is
    held by DownloadContext class. Note that aria2 doesn't
    verify signature.
 - Added --bt-seed option. If --bt-seed=true is given at the
    command-line, aria2 seeds previously downloaded files
    without validating piece hashes.
 - Fixed the compile error on Nexenta OS(GNU/Solaris OS).
    (Don't define `struct addrinfo' when __sun is defined)
 - Fixed the bug that UTF-8 encoded URL is not URL-encoded
 - Properly differentiate between ftp errors and actual zero-byte
   files (now supports ftp servers which do not recognize SIZE
   raw command).
2008-08-19 14:41:58 +00:00
bjs
2b2a965630 Update to version 0.14.0+1. This release brings us myriad bug fixes
plus some new features.

 ==========================================================================

 Changes:
 aria2-0.14.0+1

 * Fixed the code that refers static member variable from
   non-static context.

 Notes:
 This release adds epoll support for linux and the ability to
 limiting the number of files to be opened to support more than
 1024 files in multi file torrent.
 Several bugs in BitTorrent downloads are fixed.
 From this release, aria2 downloads a file using 5 connections
 in HTTP/FTP by default and the behavior of -s option has
 changed. See the project web page for more details.

 Changes:
 aria2-0.14.0

 * Changed -s options behavior. Now it means the number of connections
   made simultaneously in each http/ftp download.  If 1 URL is specified,
   the behavior is the same with old implementation.  If -s N is given
   and more than N URLs are specified, first N URLs are used and
   remaining URLs are used for backup. If less than N URLs are specified,
   some of URLs are used more than once so that totally N connections are
   made simultaneously.
 * Changed default value of -s option from 1 to 5.
   Also max value of -s option is changed from 5 to 16.
 * Reduced CPU usage on high load.
 * Added epoll support.
 * Fixed compile error on debian etch. BUG#1980766
 * Added --bt-request-peer-speed-limit=SPEED option.
   In BitTorrent downloads, if the download speed is lower than SPEED,
   aria2 initiates and accepts connections ignoring max peer cap.
 * Reduced read operation for hash calculation.
 * Fixed the bug that aria2 cannot respond bttrack's nat check properly.
 * Fixed the bug that HTTP downloads don't start with old libraries.
 * Fixed the bug that aria2 aborts when a path to a directory is given in
   command-line.
 * Added --bt-max-open-files option, which specifies maximum number of
   files toopen in each BitTorrent download. REQUEST#1811507

 * Create only requested files and files which shares a piece with
   requested file in multi-torrent downloads. Directory structures are
   also created in the same rule.
 * When there is not enough space in disk, aria2 prints error in the
   console and cancels that download. BUG#1640332
2008-07-15 02:02:50 +00:00
bjs
4ccd5781cb Update to 0.13.2+1. Many bug-fixes; the ChangeLog is far too verbose
even to permit distilling it and posting it here.  If you're curious,
simply read the ChangeLog contained in the distfile.
2008-06-05 05:49:28 +00:00
bjs
37a3237015 Update to version 0.13.1+2. This update includes myriad bug fixes
and feature enhancements--way too many for this commit message.
While here, deprecate aria2-metalink option. Aria2 now supports
building with libexpat, so we do that by default now.

Some of the more significant changes:
-------------------------------------

* Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  installed.  Fixed compilation on: x84-64 platform, Mac OSX, g++-4.3,
  and without c-ares/ares.

* Added Simplified Chinese translation. Also updated the following
  translations: Polish, Dutch, German, Thai, Indonesian,
  Norwegian Nynorsk, Hungarian, Finnish, Hebrew.

* Changed inactive connection timeout to 120.
  To accept more mulually interested peers, disconnect peer when there
  is no interest between us after certain time passed.
  Lengthened DNS timeout to 30. I think old value '10' will be a
  little bit short when some DNS servers are offline and several
  DNS servers are tried. It should be configured by
  command-line option.

* Fixed the bug that prevents aria2 from stopping other than by pressing
  Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  option. aria2 doesn't stop even after --seed-time is satisfied and
  continues to output blank lines in the console.

* Added Message Stream Encryption(MSE) support.
  Currently, aria2 accepts incoming connections with Obfuscation Header
  and legacy BitTorrent Header and establishes connections with
  Obfuscation Header first and if failed then retry with legacy
  BitTorrent header. If plain text and ARC4 is provided, aria2 always
  choose ARC4. The new option to change the default behavior is planned.
  For tracker extension, "supportcrypto=1" is added statically.

* Added the ability to load nodes from torrent file. These nodes are
  added to the routing table when downloading that torrent.

* Added the ability to stop aria2 itself when given time has passed
  from start. Use --stop option to specify time in minutes.
  When 0 is given, this feature is disabled.
  before calling RequestGroupMan::fillRequestGroupFromReserver().
  Without this modification, the result list shows "ERR" when aria2 is
  stopped by --stop option. It should be "INPR".
  Bootstrap through node added by port message.
  Currently bootstrap is executed if the number of buckets in routing
  table is 1.

* Added DHT functionality, compatible with mainline.
  DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  You may need to specify entry point to DHT network using
  --dht-entry-point. DHT uses UDP port to listen incoming message.
  Use --dht-listen-port to specify port number. Make sure that your
  firewall configuration can pass through UDP traffic to the port.
  The routing table is saved in $HOME/.aria2/dht.dat.  Request peers though
  DHT only when download hasn't finished.
2008-04-16 00:09:39 +00:00
bjs
6b2d528243 Update to version 0.12.1+1. Removed patches, as I believe autoconf
should automagically handle the features stuff (or at least other packages
that I look at don't seem to need this if they use autoconf, haven't looked
extensively, though).  This release brings lots of bug fixes.  Among
them are:


2008-01-10  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>

	Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
	payload length(4bytes) are received. This happens because
	lenbufLength
	is not updated in this particular case and successive call of
	receiveMessage() overwrites payload length with bytes recieved which
	are payload body.

2007-12-22  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>

	Fixed the bug that causes aria2 not to finish download. BUG#1855875.
	I could reproduce this bug in following procedure:
	1. Stop the download at the very beginning(1% or 100KB downloaded).
	2. Restart aria2.
	3. You see the download stopped around 99%.
	If timeout is reached, then _nextCommand is unused and it may
	contains
	segments and they won't be canceled. Actually, timeout is not needed
	here because if the server dropped connection, then retry is made.

2007-12-22  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>

	Fixed the bug that returns incomplete data when it contains null
	character. A convenient constructor was also added.

2007-12-15  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>

	Fixed the bug that prevents aria2 from loading cookie file when
	expire
	value is greater than 2^31-1. BUG#1851066

2007-12-14  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>

	Fixed possible memory leak when an exception is thrown.

2007-12-10  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>

	Fixed the bug: only first announce URL is tried in AnnounceTier,
	in stopped and completed event.

2007-12-09  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>

	Removed unnecessary string copy. Updated doc and corrected
	indentation.
2008-02-18 00:00:18 +00:00
tnn
ad6ceadd25 Per the process outlined in revbump(1), perform a recursive revbump
on packages that are affected by the switch from the openssl 0.9.7
branch to the 0.9.8 branch. ok jlam@
2008-01-18 05:06:18 +00:00
bjs
5b691bc753 Update to version 0.12.0. Also, fix nbcompat includes (they were missing
<nbconfig/config.h>.  Partial list of changes:


2007-12-09  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>

	Removed unnecessary string copy. Updated doc and corrected indentation.
	* src/Base64.cc

	Fixed compilation warnings
	* test/DataTest.cc
	* test/HttpRequestTest.cc
	* test/MetaFileUtilTest.cc
	* test/RequestTest.cc

	* Release 0.12.0

	Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
	translations. Many thanks to translators.
	* po/{ca,es,it,pt_BR,sv}.po
	* po/LINGUAS

	Fixed the bug#1845750; CTRL+C does not stop torrent.
	aria2 repeatedly sends stopped request when tracker returns error code.

	Added a message when ctrl-c is hit.
	Now second ctrl-c is also handled in signal handler.


	Changed Direct/IO enable/disable procesure in file allocation routine.
	Disable directIO if offset is not multiple of 512.
	(~SingleFileAllocationIterator): Removed a call to disableDirectIO.
	* src/MultiFileAllocationIterator.cc (allocateChunk):
	Enable created SingleFileAllocationIterator's directIO.
	* src/FileAllocationEntry.cc
	(FileAllocationEntry): Enable directIO here.
	(~FileAllocationEntry): Disable directIO here.

	Fixed the bug: aria2 doesn't utilize fast set index offered by peer.

	Rewritten direct I/O support routine

	Fixed compile error without message digest support.

	Enable direct I/O support in checksum checking.


	Added --allow-piece-length-change option.

	Fixed: duplicated result entry appears when exception is thrown in
	RequestGroup::createInitiateConnectionCommand().
	* src/RequestGroupMan.cc (fillRequestGroupFromReserver):
	Add RequestGroup to _requestGroup after RequetGroup::
	createInitiateConnectionCommand() succeeds.

	Externalized  message


	Forced download abort when received negative response from http/ftp
	server.

	Added XML2SAXMetalinkProcessor class, which is a lot faster than
	the predecessor, Xml2MetalinkParser class.
	I tested them against 94KB metalink file with 1234 chunk checksums.
	The new one parsed it in 22msec, while it took 6000msec with old one.

	Rewritten Base64 class for better performance.

	Fixed the bug#1841757: aria2 will connect to server to only get
	file size.

	Suppressed wrong message when finding PreDownloadHandler


	Eliminated g++-4.2 warning
	Fixed bug: --check-integrity doesn't work for multi file torrent.


	Added direct I/O support. The current implementation uses O_DIRECT,
	which is not posix standard and is tested on linux 2.6.21.
	Currently only file allocation uses direct I/O.
2007-12-14 12:46:21 +00:00
bjs
5503c5a98c 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.
2007-11-23 07:46:34 +00:00
bjs
24cd7e68e8 Sync with stable-0.11 branch. Bump rev. 2007-11-16 08:06:33 +00:00
bjs
a774c57ff4 Employ USE_FEATURES for getopt_long and snpritnf. Remove devel/libgetopt dependency. Bump rev. 2007-11-07 08:08:18 +00:00
bjs
c424663663 Update to version 0.11.4. This is almost entirely a bug-fix release.
Please see ChangeLog for changes (it's too verbose to list them here).
2007-11-02 18:27:59 +00:00
bjs
8ed291ca0f Oops, let's try that again ... now pkglint is happy. ;) 2007-10-17 09:51:14 +00:00
bjs
19daf391c0 Change libares/libcares options to ares/cares. 2007-10-17 09:50:14 +00:00
bjs
e0800a2a31 Kill PKGREVISION which remained from pkgsrc-wip. 2007-10-17 09:44:44 +00:00
bjs
0ca60cabd3 Import aria2 0.11.3 (patched to stable-0.11 branch).
aria2 is a download utility with resuming and segmented downloading.
	Supported protocols are HTTP/HTTPS/FTP/BitTorrent; it also supports
	MetaLink 3.0.

	Some of its features:

	* Command-line interface
	* Download files through HTTP/HTTPS/FTP/BitTorrent
	* HTTP Proxy support
	* FTP through HTTP Proxy
	* HTTP BASIC authentication support
	* HTTP Proxy authentication support
	* Segmented downloading
	* Download speed throttling
	* Upload speed throttling in BitTorrent
	* Cookie support
	* Load Cookies from file whose format is one used by Netscape and
	  Mozilla.
	* Run as a daemon process.
	* Selective download in multi-file torrent/metalink
	* BitTorrent Fast extension support
	* Multi-tracker support
	* Metalink version 3.0 support(HTTP/FTP/BitTorrent)
	* Chunk checksum validation in Metalink
	* Can disable segmented downloading in Metalink
	* netrc support
	* Configuration file support
	* Download URIs found in a text file or stdin
	* Parameterized URI support
2007-10-17 09:42:39 +00:00