From owner-freebsd-current@FreeBSD.ORG Mon Jun 21 10:10:47 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9BD7106564A for ; Mon, 21 Jun 2010 10:10:47 +0000 (UTC) (envelope-from erwin@mail.droso.net) Received: from mail.droso.net (koala.droso.net [IPv6:2001:6c8:130:400::6]) by mx1.freebsd.org (Postfix) with ESMTP id 65FA48FC0C for ; Mon, 21 Jun 2010 10:10:47 +0000 (UTC) Received: by mail.droso.net (Postfix, from userid 1001) id 7915B1CC32; Mon, 21 Jun 2010 12:10:46 +0200 (CEST) Date: Mon, 21 Jun 2010 12:10:46 +0200 From: Erwin Lansing To: Tom Evans Message-ID: <20100621101046.GA76036@droso.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="S4+Kf2w4CfEO117G" Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD/i386 7.2-STABLE User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-current Subject: Re: Ports doesnt respect fetch environment settings X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2010 10:10:47 -0000 --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--