Ports doesnt respect fetch environment settings
Erwin Lansing
erwin at FreeBSD.org
Mon Jun 21 10:10:47 UTC 2010
On Mon, Jun 21, 2010 at 11:04:16AM +0100, Tom Evans wrote:
> My company recently enabled proxy authentication for outgoing
> connections, and this has stopped ports from working.
>
> >From fetch(5), I understand that I can place my proxy authentication
> in plain text in the environment*, and this will allow fetch to work
> correctly, and this does work:
>
> > # env | grep -i proxy
> ftp_proxy=http://proxy:3128/
> HTTP_PROXY_AUTH=basic:*:tevans at domain.com:password
> HTTP_PROXY=http://proxy:3128/
> > # fetch http://googlecl.googlecode.com/files/googlecl-0.9.5.tar.gz
> googlecl-0.9.5.tar.gz 100% of 36 kB 77 MBps
>
> However, the ports makefiles seem to do something funky to my
> environment which hides these environment variables, and so the ports
> infrastructure stops working:
>
You should use FETCH_ENV or FETCH_ARGS to pass information to fetch(1) from the
ports infrastructure. It is documented in /usr/ports/Mk/bsd.port.mk,
search for FETCH_BINARY. Hope that helps.
-erwin
--
Erwin Lansing http://droso.org
Prediction is very difficult
especially about the future erwin at FreeBSD.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20100621/2c56d2e0/attachment.pgp
More information about the freebsd-current
mailing list