On Wednesday 10 Oct 2007 14:40 in article <[EMAIL PROTECTED]> of linux.gentoo.user, Neil Bothwick([EMAIL PROTECTED]) wrote:
> On Wed, 10 Oct 2007 09:11:42 -0400, James Colby wrote: > >> Does anyone know if it possible to configure emerge to use the value >> of >> $http_proxy as my proxy? I use my laptop both at home and at work, I >> have a script that sets the $http_proxy env variable depending on >> where >> I am, and I would like to have emerge use that value. I have tried >> setting http_proxy in make.conf to $http_proxy but that did not work. > > Portage uses wget by default, and wget respects $http_proxy. According > to /etc/make.conf.example > > # Fetching files > # ============== > # > # If you need to set a proxy for wget or lukemftp, add the appropriate > # "export ftp_proxy=<proxy>" and "export http_proxy=<proxy>" lines to > # /etc/profile if all users on your system should use them. Just to expand on this a bit, the /etc/make.conf file probably needs to define the rsync proxy too, although you can use websync. For all my proxy work I use Squid. To this end I use the following lines in the named files: /etc/make.conf http_proxy="http://localhost:8080" ftp_proxy="http://localhost:8080" RSYNC_PROXY="localhost:8080" /etc/wget/wgetrc http_proxy = http://localhost:8080/ ftp_proxy = http://localhost:8080/ no_proxy = .local /etc/squid/squid.conf acl SSL_ports port 443 563 873 # 873 for rsync acl Safe_ports port 873 # rsync Note that the above are just extracts from the configuration files, not the complete things. Note also that I allow my Gentoo boxes to query each other's /usr/portage/distfiles before downloading from a mirror, and my internal top-level domain name is .local; as a result, wget is told to bypass the proxy on such connections. Moreover, the above were taken from the machine that runs Squid, which is why all the proxy connections use localhost. On other machines, the domain name of the proxy server is memphis.local. -- Regards Dave [RLU#314465] ====================================================== [EMAIL PROTECTED] (David W Noon) ====================================================== -- [EMAIL PROTECTED] mailing list