From owner-freebsd-current@FreeBSD.ORG Mon Jun 21 10:04:18 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 1703C1065670 for ; Mon, 21 Jun 2010 10:04:18 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id A14478FC0A for ; Mon, 21 Jun 2010 10:04:17 +0000 (UTC) Received: by fxm7 with SMTP id 7so2113093fxm.13 for ; Mon, 21 Jun 2010 03:04:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=X68b03ibW6G8+Eqym5aY/z6geRu07pUCRQhoJcg1PPg=; b=YJvr5EoS5s8IGmHKo4u/B7wPlsv8DEZELugtfNWuDQDvcJssY5oxe6eXeEamHeMXGJ KznK6pROlcLN0XQs2syMxYsLDkJtoMDrUhE1rZb7cm1GOMXg+Ktp2R7Sh9r3xnT6Nlfm ExFKtF5Z0qzMHysZZtyBcD0M18l7Ekn7dpT5s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=lq4sdOTzJbbqD27tsD3oxieLet2HYPPY7aUn2Uga555FD4ZUBBA45/xGjQHzquG3c1 vTakD/NTZCPbau/aMtBv5jA0lGrMT4EuzJOb69dPZoAxoKPD03qGX2ZuijAi4r3Jy2/U Kp0pOKqn3ywW5VT+dcUDvBiWGrOZEhrSx5SLI= MIME-Version: 1.0 Received: by 10.239.189.133 with SMTP id t5mr328443hbh.4.1277114656164; Mon, 21 Jun 2010 03:04:16 -0700 (PDT) Received: by 10.239.185.1 with HTTP; Mon, 21 Jun 2010 03:04:16 -0700 (PDT) Date: Mon, 21 Jun 2010 11:04:16 +0100 Message-ID: From: Tom Evans To: freebsd-current Content-Type: text/plain; charset=UTF-8 Subject: 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:04:18 -0000 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@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: > # make fetch ===> Vulnerability check disabled, database not found ===> License check disabled, port has not defined LICENSE => googlecl-0.9.5.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from http://googlecl.googlecode.com/files/. fetch: http://googlecl.googlecode.com/files/googlecl-0.9.5.tar.gz: Proxy Authentication Required => Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/. fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/googlecl-0.9.5.tar.gz: Not Found => Couldn't fetch it - please try to retrieve this => port manually into /usr/ports/distfiles/ and try again. *** Error code 1 Stop in /usr/FreeBSD/CURRENT/ports/net/googlecl. This is on i386 7-STABLE, last updated in mid May, with current ports, last updated yesterday. Cheers Tom * Which, incidently, is completely rubbish. Why is there no option for HTTP like ~/.netrc for FTP? Exposing my passwords in plain text in my environment feels stupid.