Subject: pkg/5455: pkg_* does not use ftp proxies
To: None <gnats-bugs@gnats.netbsd.org>
From: Heiko W.Rupp <hwr@pilhuhn.de>
List: netbsd-bugs
Date: 05/15/1998 12:20:16
>Number:         5455
>Category:       pkg
>Synopsis:       pkg_* does not use ftp proxies
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri May 15 03:35:01 1998
>Last-Modified:
>Originator:     Heiko W.Rupp
>Organization:
private
>Release:        1.3.1
>Environment:
	
System: NetBSD snert 1.3.1 NetBSD 1.3.1 (SNERT) #4: Fri May 15 10:40:24 MEST 1998 hwr@snert:/usr/src/sys/arch/i386/compile/SNERT i386


>Description:
	When adding a package with 
    	pkg_add ftp://host.do.main/package.tgz
    pkg_add does not honour the environement variables http_proxy and
	ftp_proxy as described on
	http://www.netbsd.org/Documentation/netbsd/Packages.txt  item 9.7
	but connects directly to the specified host.
>How-To-Repeat:
	snert!16> setenv http_proxy http://snert.pilhuhn.de:3128/
	snert!17> setenv ftp_proxy http://snert.pilhuhn.de:3128/
	pkg_add -v ftp://ftp.netbsd.org/pub/NetBSD/packages/1.3/i386/All/socket-1.1.tgz
	and watch the logfile of your proxy or netstat.

	With ftp(1) you can verify that the setenvs are correct.
>Fix:

pkg_* uses its own ftp library to fetch files. Perhaps remove this
and use (sloppyly said) system() on the following:

ftp <<MOUSE
open host.do.main
user ftp
pass ftp@
cd /path/to/package
bin
get package.tgz
bye
MOUSE

and then continue processing.

>Audit-Trail:
>Unformatted: