Subject: Re: Problems with pkgsrc & proxy
To: vittorio <>
From: Manuel Bouyer <>
List: netbsd-users
Date: 10/13/2005 20:02:24
On Thu, Oct 13, 2005 at 06:10:11PM +0200, vittorio wrote:
> I want to compile a source file under /usr/pkgsrc.
> My newly installed netbsd 2.0.2 box at office is behind a proxy requiring 
> userid & passwd authentication to reach the internet. With freebsd to 
> download the ports I use a FETCH_ENV variable defined in make.conf with the 
> two lines:
> FETCH_ENV = HTTP_PROXY=http://userid:passwd@proxy.myco:8080
> FETCH_ENV = FTP_PROXY=http://userid:passwd@proxy.myco:8080
> Now, under netbsd I read the "man mk.conf" but it didn't seem possible to 
> define anything similar; so I tried as root the following:
> set env http_proxy http://userid:passwd@proxy.myco:8080
> set env ftp_proxy http://userid:passwd@proxy.myco:8080

This has to be:
setenv http_proxy http://userid:passwd@proxy.myco:8080
setenv ftp_proxy http://userid:passwd@proxy.myco:8080
(setenv on one word). The command you ran would define 3 shell variables:
env, http_proxy and http://userid:passwd@proxy.myco:8080

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference