ports proxy mystery

Hello,
I'm using FreeBSD in a virtualbox machine behind a proxy.
I already set HTTP_PROXY environment variable and fetch works just fine:
Code:
# cat DUMMY
#!/bin/sh
fetch "http://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R39c.cpio.gz"
# ./DUMMY
mksh-R39c.cpio.gz                             100% of  289 kB   12 MBps
#

It just not work with make:
Code:
=> Attempting to fetch http://www.mirbsd.org/MirOS/dist/mir/mksh//mksh-R39c.cpio.gz
fetch: http://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R39c.cpio.gz: Proxy Authentication Required
=> Attempting to fetch http://pub.allbsd.org/MirOS/dist/mir/mksh//mksh-R39c.cpio.gz
fetch: http://pub.allbsd.org/MirOS/dist/mir/mksh/mksh-R39c.cpio.gz: Proxy Authentication Required
=> Attempting to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles//mksh-R39c.cpio.gz

What I'm doing wrong?
Thanks!
 
You've set proxy only for HTTP and ports fetches distfiles via FTP. You could also try to put these lines in /etc/make.conf instead of modifying environment of a user:
Code:
FETCH_ENV=     FTP_PROXY=proxy_address_here
FETCH_ENV=     HTTP_PROXY=proxy_address_here
 
Back
Top