Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jun 2010 12:10:46 +0200
From:      Erwin Lansing <erwin@FreeBSD.org>
To:        Tom Evans <tevans.uk@googlemail.com>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: Ports doesnt respect fetch environment settings
Message-ID:  <20100621101046.GA76036@droso.net>
In-Reply-To: <AANLkTinn5bPXDf-tRIlpGCp3iFgtYi20mzRSbqkBcj6b@mail.gmail.com>
References:  <AANLkTinn5bPXDf-tRIlpGCp3iFgtYi20mzRSbqkBcj6b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--S4+Kf2w4CfEO117G
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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.
>=20
> >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:
>=20
> > # env | grep -i proxy
> ftp_proxy=3Dhttp://proxy:3128/
> HTTP_PROXY_AUTH=3Dbasic:*:tevans@domain.com:password
> HTTP_PROXY=3Dhttp://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
>=20
> However, the ports makefiles seem to do something funky to my
> environment which hides these environment variables, and so the ports
> infrastructure stops working:
>=20
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

--=20
Erwin Lansing                                   http://droso.org
Prediction is very difficult
especially about the future                    erwin@FreeBSD.org

--S4+Kf2w4CfEO117G
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iD8DBQFMHzqlqy9aWxUlaZARAo/UAJ950YVhYi1d/LmWlzIa10x6jfnDVQCgu5LU
oVgvCWYcmsRqoUt0G5c0hCU=
=iA8N
-----END PGP SIGNATURE-----

--S4+Kf2w4CfEO117G--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100621101046.GA76036>