aria2 should find its way to portage. Besides aget there's no such tool available, yet. http://aria2.sourceforge.net/
Created attachment 88835 [details] net-misc/aria2/aria2-0.5.0_p2.ebuild created ebuild for current version of aria2, but I am not sure about the version suffix as the original tarball is named aria2-0.5.0+2.tar.bz2. Dominik
Version bump: aria2-0.5.2 is out. Thanks to Dominik Brugger for the ebuild, I corrected some stuff (DEPEND and USE-flags) and it is now in the gentoo-sunrise overlay, available here: http://gentoo-sunrise.org/svn/reviewed/net-misc/aria2
Created attachment 91225 [details] aria2-0.6.0_p1.ebuild Hola! This is new version of ebuild for aria2-0.6.0+1 added 'metalink' support Thanks!
Thanks for the news and the ebuild. Added metalink USE-flag and new version in the gentoo-sunrise overlay.
Created attachment 93255 [details] aria2-0.6.0_p1-r1.ebuild
Created attachment 93256 [details, diff] header.patch
Comment on attachment 93255 [details] aria2-0.6.0_p1-r1.ebuild aria2 ebuild that patches HttpHeader.cc with header.patch
Comment on attachment 93256 [details, diff] header.patch patch for aria2-0.6.0_p1-r1.ebuild
Sry for the 4 Posts above.... how can I delete the 4 comments above? aria2c was not able to get the correct file length properly from the HTTP header. I mailed it to the upstream developer and got a patch from him. Attached a new ebuild "aria2-0.6.0_p1-r1.ebuild" including the patch and the patchfile "header.patch" itself. The base ebuild was taken from the sunrise overlay. Maintainer unknown Regards Bjoern
You can't. As you could read in comment #2 or in the changelog, I'm maintaining it right now. I'll add this patch to gentoo-sunrise this evening (in ~5h).
(In reply to comment #10) > You can't. > As you could read in comment #2 or in the changelog, I'm maintaining it right > now. I'll add this patch to gentoo-sunrise this evening (in ~5h). > Nice, thats how bugzilla should work :-) Is there a chance that aria2 will make it's way to the main stream of portage? Regards Bjoern
To be honest: I don't know. But since I'm on the way to become a dev, I hope I could maintain it even if it doesn't belong to the herd I'll work on.
Created attachment 94305 [details] aria2-0.7.1.ebuild Latest version of aria2 0.7.1 Added support for ares (Useflag "ares") [quote] As of 0.7.1 release, aria2 supports asynchronous DNS using ares. This can improve segmented download performance, especially in Metalink download. [/quote] regards Bjoern
Thanks for the info :-) You might want to use the ebuild from the overlay since I had to correct some configure options (use_with instead of use_enable). The following line in your ebuild might be dangerous: use ares && \ myconf="${myconf} $(use_with ares libares)" You're setting here "--with-libares" only if the ares USE-flag is specified, otherwise you don't set anything. This means you're leaving the decision to the package, which should never be done. So, simply write: econf \ $(use_with ares libares) \ ...
(In reply to comment #14) > Thanks for the info :-) > You might want to use the ebuild from the overlay since I had to correct some > configure options (use_with instead of use_enable). Thanks for the correctios! It was the first time I modified the uesflags in a ebuild. Thanks for your explanation. best regards Bjoern
Okay, seems ther is a problem with libares. just check aria2 -v and the output of ./configure.... In gentoo the ares libs are called /usr/lib/libcares.so /usr/lib/libcares.so.0.0.0 /usr/lib/libcares.so.0 /usr/lib/libcares.la /usr/lib/libcares.a but aria1 is searching for /usr/lib/libares.so Linking libcares to libares works for configure, but fails during compilation: NameResolver.cc: In function `void callback(void*, int, hostent*)': /usr/include/ares.h:174: error: too many arguments to function `const char* ares_strerror(int)' NameResolver.cc:27: error: at this point in file distcc[22355] ERROR: compile NameResolver.cc on 10.0.123.1 failed make[2]: *** [NameResolver.o] Fehler 1 make[2]: *** Warte auf noch nicht beendete Prozesse... make[2]: Leaving directory `/var/tmp/portage/aria2-0.7.1/work/aria2-0.7.1/src' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/var/tmp/portage/aria2-0.7.1/work/aria2-0.7.1' make: *** [all] Fehler 2 !!! ERROR: net-misc/aria2-0.7.1 failed. Call stack: ebuild.sh, line 1543: Called dyn_compile ebuild.sh, line 938: Called src_compile aria2-0.7.1.ebuild, line 40: Called die Any ideas what to do? I asked the same at https://sourceforge.net/tracker/index.php?func=detail&aid=1541440&group_id=159897&atid=813673 regards Bjoern
Well, I had an error about an undefined function before that line below. The problem might be that we're eiher using c-ares instead of ares or a newer version of c-ares which isn't compatible to ares. Anyway, the patch I've committed to gentoo-sunrise fixes it.
Doesn't build: In file included from MetalinkProcessor.h:25, from Xml2MetalinkProcessor.h:25, from main.cc:37: Metalinker.h:28:26: libxml/xpath.h: No such file or directory In file included from main.cc:37: Xml2MetalinkProcessor.h:26:27: libxml/parser.h: No such file or directory In file included from main.cc:37: Xml2MetalinkProcessor.h:31: error: `xmlDocPtr' does not name a type Xml2MetalinkProcessor.h:32: error: `xmlXPathContextPtr' does not name a type Xml2MetalinkProcessor.h:37: error: `xmlXPathObjectPtr' does not name a type Xml2MetalinkProcessor.h:39: error: `xmlNodePtr' has not been declared Xml2MetalinkProcessor.h:39: error: ISO C++ forbids declaration of `node' with no type Xml2MetalinkProcessor.h:40: error: `xmlNodePtr' has not been declared Xml2MetalinkProcessor.h:40: error: ISO C++ forbids declaration of `node' with no type make[2]: *** [main.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/aria2-0.7.1/work/aria2-0.7.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/aria2-0.7.1/work/aria2-0.7.1' make: *** [all] Error 2 !!! ERROR: net-misc/aria2-0.7.1 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile aria2-0.7.1.ebuild, line 40: Called die
Ok, I need the following information: a) how did you build it: "emerge aria2" or did you use ebuild directly? b) Which version of aria2 did you use? c) What USE-flags did you set?
a) yes, emerge aria2 b) latest ~amd64 version, 0.7.1 c) local: ares global: USE="nptl nptlonly mmx sse sse2 3dnow acpi threads hal unicode samba \ kerberos bluetooth xinerama dvb dvd dvdr cdr kdeenablefinal \ kdexdeltas -gnome jpeg2k arts -oss ac vorbis ogg mad ffmpeg xvid \ xine aac -xmms postgres java truetype sasl jikes gcj fam \ apache2 directfb -v4l -eds -emboss -ldap pic bzip2 gtkhtml gdbm \ mhash curl lcms glut mng real sqlite"
Ok, I already fixed it, upstream integrated my patches and a new version is out, available in a couple of minutes on gentoo-sunrise :-)
mmmh, wouldn't aria2 be a great replacement for wget when downlading distfiles? Aria could connect to all mirror spcified in the make.conf. Maybe I should start a threaad about it in the forum I know in former times there was a prozilla integration possible. Is it somehow paossible NOW to integrate aria2 with multi download sources when downloading distfiles? regards Bjoern
I took a short look into the portage code and it doesn't seem to be possibe. File: /usr/lib/portage/pym/portage.py, grep for fetchcommand
Created attachment 95392 [details] aria2-0.7.3.ebuild Latest aria2 release 0.7.3. Now includes an otion to set seeding time for the torrent network. Just a versionbump ( cp aria2-0.7.2.ebuild aria2-0.7.3.ebuild ) regards Bjoern
You don't have to attach the new ebuild for a version bump only and I've committed the version bump to gentoo-sunrise already yesterday :-)
(In reply to comment #25) > You don't have to attach the new ebuild for a version bump only and I've > committed the version bump to gentoo-sunrise already yesterday :-) > mmh, synced the sunrise overlay bevore I added my comment here. How long does it take untill changes in sunrise reaches use users? hav a nice day/night ;-) Bjoern
(In reply to comment #22) > mmmh, wouldn't aria2 be a great replacement for wget when downlading distfiles? > Aria could connect to all mirror spcified in the make.conf. > > Maybe I should start a threaad about it in the forum > > I know in former times there was a prozilla integration possible. > > Is it somehow paossible NOW to integrate aria2 with multi download sources when > downloading distfiles? > > regards > Bjoern > anything new from here? have you postet it in the forum? I think it would be possible by changeing the "FETCHCOMMAND" in /etc/make.conf This way I'm currently using "axel" as downloadmanager.
I just have filed a feature request an made a post in the forum. Go and comment on it ;-) Forum: http://forums.gentoo.org/viewtopic-p-3604581.html Bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=149156 Adepting the FETCHCOMMAND should not be that hard I guess, but actually I have no clue :) regards Bjoern
In portage. ~amd64 and ~ppc had to be removed as requested by the arch-teams. Expect them (and others) to be added soon (bug is already open). Have fun!