Hello guys! I'm using a shared internet connection and sometimes when I wants to download a file with portage there' other people connected to internet in my intranet, and I don't want to ralentize them. So I have to change in /etc/make.globals the wget command. But sometimes I'd like to use the whole connection for me, and I have to change one more time the FETCHCOMMAND. I think there' more people that would like an option in the emerge command that limit the use of the connection. Wget have this option (wget -limit-rate=20k http://way.com/to/the/file.extension, for example), and I think other download managers have this option too. So, I wish a emerge command like the wget one, it could look like "emerge -speed-limit=20k". The code will see if the actual download manager support the limit-rate option with a list of downloader managers that yes, and, if the limit-rate isn't already in the fetchcommand. If both are true, the function add temporaly the correct option to the fetchcommand, for example. This isn't very serious, and it could be only a patch. A more elaborate and serious way,could be to limit the rate without the options of the download manager, but I don't know nothing about how to do this. So, what do you thing about this ?? See you and appologies for my bad english, Happy 2003!
FETCHCOMMAND in /etc/make.{conf,globals} takes care of this ...
docs-team: maybe you could add this into faq
I know that fetchcommand take care of this and I have mentioned it in the post, I was searching something more.
No. Do it in make.conf.
i think we should at least update make.conf to include the following (just before the "# Lukemftp..." line). this way, users will know how they can rate-limit downloads: # Default fetch command (5 tries, passive ftp for firewall compatibility) #FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp \${URI} -P \${DISTDIR}" #RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp \${URI} -P \${DISTDIR}" # # Using wget, ratelimiting downloads #FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp \${URI} -P \${DISTDIR}" #RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp --limit-rate=200k \${URI} -P \${DISTDIR}" carpaski: if not, reassign the bug to me and i'll add it to the faq.
Added to cvs. rajiv: You should probably add it to the faq anyway.
a little note about this needs to be added to the portage guide.
I'll add a chapter to the Portage User Guide (portage-user.xml) which talks about changing portage's behaviour. I will only mention these things briefly by giving an overview of the variables, what they stand for and with some small examples (such as the download rate for FETCHCOMMAND). For more in-depth information on Portage, the user is always welcome to read the Portage Manual (portage-manual.xml).
Note added. Closing bug.