Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jun 2011 07:25:12 -0600 (MDT)
From:      Dennis Glatting <freebsd@penx.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Using a "special" proxy for ports
Message-ID:  <alpine.BSF.2.00.1106270723340.53761@Elmer.dco.penx.com>
In-Reply-To: <alpine.BSF.2.00.1106262035001.92685@Elmer.dco.penx.com>
References:  <alpine.BSF.2.00.1106262035001.92685@Elmer.dco.penx.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help


On Sun, 26 Jun 2011, Dennis Glatting wrote:

>
> I have a requirement where I need to archive ports used across twenty hosts 
> for a year or more. I've decided to do this using Squid and to take advantage 
> of Squid's cache when updating common ports across those hosts.
>
> (BTW, at another site I used rsync to sync /usr/ports/distfiles across the 
> hosts to a local master site then specified _MASTER_SITES_DEFAULT in 
> make.conf to a FTP server on the local site. That method works when the port 
> is previously cached however if the file isn't in the cache and I 
> simultaneously install the port across ten hosts, the port is fetched ten 
> times. Sigh.)
>
> I have a Squid proxy installed that isn't meant for every-day/every-user use 
> and requires authentication. (Users either go through another Squid proxy or 
> direct.) The special Squid proxy works. No surprise there. Authentication 
> works. No surprise there.
>
> What I need is a method to embed into make.conf a proxy specification for 
> fetch. Setting the environment variable HTTP_PROXY from the login shell /is 
> not/ preferred because the account is used by different administrators, I 
> don't what the special proxy accidentally polluted with non-port stuff, and 
> it would only create confusion.
>
> Setting http_proxy in make.conf does not work. .netrc doesn't appear to be a 
> viable method (if it did, I could specify FETCH_ARGS in make.conf).
>

I forgot to mention that I also thought about redefining SHELL in 
make.conf to a small program that sets HTTP_PROXY in the environment then 
execs the desired target but I felt that approach was fraught with peril.


> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1106270723340.53761>