Bug 20696

Summary: Pkg_add does not make use of HTTP_PROXY / FTP_PROXY env. vars
Product: Base System Reporter: n_hibma <n_hibma>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-STABLE   
Hardware: Any   
OS: Any   

Description n_hibma 2000-08-18 11:10:03 UTC
pkg_add ignores the HTTP_PROXY=192.168.1.1:80 variable.

Because it is using ftpio and not libfetch? Just guessing.

The difference is important to us as the machine's default route is a modem link, but it is connected to a 2Mbit/s link through a proxy.

Fix: 

Make pkg_add use libfetch for all I/O Which means you can use any URL on the command line.
How-To-Repeat: pkg_add -r lynx

and

fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-4-current/Latest/lynx.tgz
pkg_add lynx.tgz
rm lynx.tgz

and notice the difference in speed (and route).
Comment 1 rooneg 2001-03-11 20:22:04 UTC
(ccing des@freebsd.org because he committed this change)

This pr should brobably be closed, as pkg_add was changed to use libfetch
instead of libftpio quite some time ago (june 27 2000).

-- 
garrett rooney                        Unix was not designed to stop you from 
rooneg@electricjellyfish.net          doing stupid things, because that would  
http://electricjellyfish.net/         stop you from doing clever things.
Comment 2 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2001-03-11 20:48:05 UTC
State Changed
From-To: open->closed

Stale PR.