* [gentoo-user] Portage through a proxy
@ 2007-10-10 13:11 James Colby
2007-10-10 13:37 ` Neil Bothwick
0 siblings, 1 reply; 3+ messages in thread
From: James Colby @ 2007-10-10 13:11 UTC (permalink / raw
To: gentoo-user; +Cc: jcolby
List members -
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.
Thanks for any advice that you may be able to give,
James
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Portage through a proxy
2007-10-10 13:11 James Colby
@ 2007-10-10 13:37 ` Neil Bothwick
0 siblings, 0 replies; 3+ messages in thread
From: Neil Bothwick @ 2007-10-10 13:37 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 831 bytes --]
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.
--
Neil Bothwick
I am logged in, therefore I am.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Portage through a proxy
[not found] ` <9cJXe-6oU-7@gated-at.bofh.it>
@ 2007-10-11 0:40 ` David W Noon
0 siblings, 0 replies; 3+ messages in thread
From: David W Noon @ 2007-10-11 0:40 UTC (permalink / raw
To: gentoo-user
On Wednesday 10 Oct 2007 14:40 in article <9cJXe-6oU-7@gated-at.bofh.it>
of linux.gentoo.user, Neil Bothwick(neil@digimed.co.uk) 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]
======================================================
dwnoon@ntlworld.com (David W Noon)
======================================================
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-11 1:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <9cJDN-5ZW-11@gated-at.bofh.it>
[not found] ` <9cJXe-6oU-7@gated-at.bofh.it>
2007-10-11 0:40 ` [gentoo-user] Portage through a proxy David W Noon
2007-10-10 13:11 James Colby
2007-10-10 13:37 ` Neil Bothwick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox