Subject: pkg_add / ftp /proxy
To: port-pmax@netbsd.org <port-pmax@netbsd.org>
From: Mark Rewis <markrewis@home.com>
List: port-pmax
Date: 11/29/1999 20:39:47
I use a proxy (PROXY+) on my Win95 box that provides internet access to
my Decstation.
I can ftp through the proxy fine:

$ ftp 24.9.109.190 4421 
Connected to 24.9.109.190.
220 Proxy+ FTP Gateway ready. Start with command USER userid@hostname
Name (24.9.109.190:rewis): anonymous@ftp.au.netbsd.org
331 Enter your password
Password:
230- 
230- Welcome to the Anonymous FTP mirror site at melanoma.cs.rmit.edu.au
230- 
230- This machine runs a WWW server at http://melanoma.cs.rmit.edu.au
230- 
230- All transfers to and from this site are logged.
230- If you do not like this policy, disconnect now.
230- 
230- Please read the file README
230-   it was last modified on Mon Dec 22 04:30:12 1997 - 708 days ago
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> 

( I just happened to use the .au site in this example... I can ftp to
the ftp.netbsd.org also )

when I try to add a package via ftp I get:


altair#  pkg_add -v
ftp://ftp.netbsd.org/pub/NetBSD/packages/1.4.1/pmax/All/xtraceroute-0.8.14.tgz
Trying to fetch
ftp://ftp.netbsd.org/pub/NetBSD/packages/1.4.1/pmax/All/xtraceroute-0.8.14.tgz.
>>> ftp -o - ftp://ftp.netbsd.org/pub/NetBSD/packages/1.4.1/pmax/All/xtraceroute-0.8.14.tgz
Extracting from FTP connection into /var/tmp/instmp.00357a
ftp: ftp.netbsd.org: Unknown host
ftp: Can't connect or login to host `ftp.netbsd.org'

gzip: stdin: unexpected end of file
tar: child returned status 1
tar command returns 0 status
pkg_add: unable to open table of contents file `+CONTENTS' - not a
package?
pkg_add: 1 package addition(s) failed

The same thing occurs when I try to use an ip address instead of a
qualified name except (obviously)
it doesn't say 'Unkown host'.

It is obvious from the >>> ftp .....   
that it is not using the proper syntax for my proxy.

Question how do I make pkg_add use the proper syntax ( >ftp proxyserver
port# ) for my proxy?


THANX


rewis