netbsd-help@netbsd.org
[Top] [All Lists]

Re: Problems with pkgsrc & proxy

Subject: Re: Problems with pkgsrc & proxy
From: Manuel Bouyer
Date: Thu, 13 Oct 2005 20:02:24 +0200
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@xxxxxxxxxx:8080
> FETCH_ENV = FTP_PROXY=http://userid:passwd@xxxxxxxxxx: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@xxxxxxxxxx:8080
> set env ftp_proxy http://userid:passwd@xxxxxxxxxx:8080

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

-- 
Manuel Bouyer <bouyer@xxxxxxxxxxxxxxx>
     NetBSD: 26 ans d'experience feront toujours la difference
--

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Problems with pkgsrc & proxy, Manuel Bouyer <=