Date: Mon, 11 Sep 2000 17:29:20 +0200 From: Terrence Vergauwen <terrence.vergauwen@coo.vlaanderen.be> To: Oyvind Moll <oyvindmo@orakel.ntnu.no> Cc: freebsd-ports@freebsd.org Subject: Re: http & ftp proxy server setting for /usr/ports ? Message-ID: <39BCFA50.9664240@coo.vlaanderen.be> References: <39BCEC4F.ECDA810D@coo.vlaanderen.be> <20000911164105.C8719@orakel.ntnu.no>
next in thread | previous in thread | raw e-mail | index | archive | help
--------------2BA19A29C66E4CFD33C9FC30 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Apparently only the HTTP fetches seem to work. The proxy server does ftp & http on port 80 using netscape. It even works if i do a 'GET ftp://ftp.inria.fr/X/contrib-R5/games/xbaby-pl2.tar.Z HTTP/1.0' via telnet connected to it on port 80. But fetch doesnt: # export HTTP_PROXY=proxy.vlaanderen.be:80 # export FTP_PROXY=proxy.vlaanderen.be:80 # fetch -v ftp://ftp.inria.fr/X/contrib-R5/games/xbaby-pl2.tar.Z looking up proxy.vlaanderen.be connecting to proxy.vlaanderen.be:80 fetch: xbaby-pl2.tar.Z: Protocol error # fetch -v http://www.xnet.com looking up proxy.vlaanderen.be connecting to proxy.vlaanderen.be:80 requesting http://www.xnet.com:80/ fetch: remote: 4294967295 / 0 Receiving www.xnet.com (4294967295 bytes): 0% Any ideas ? Oyvind Moll wrote: > * Terrence Vergauwen <terrence.vergauwen@coo.vlaanderen.be> > | > | I have recently installed freebsd 4.1 RELEASE on my desktop at work. > | The box is behind a proxy server which proxies http & ftp. > | > | How can i configure my ports tree (/usr/ports/...) to automatically > | fetch files trough the proxy server ? > | I get connect timeouts when i try to make stuff in the ports tree now... > | > | I searched the docs (FAQ's & Handbook), but cannot find anything about > | proxies & ports tree's... > > ports uses fetch(1) to fetch the files, and fetch(1) uses libfetch. > The man page for fetch(3) says that it uses the environment variables > HTTP_PROXY and FTP_PROXY if present. > > Then, searching in /usr/ports/Mk/bsd.port.mk reveals that ports can > use a FETCH_ENV variable to specify the environment for fetch(1) used > in ports. > > So, you could stick something like this into /etc/make.conf: > > FETCH_ENV?= HTTP_PROXY=bla.bla:1234 FTP_PROXY=foo.bar:4321 > > Hope that helps. > > -- > Øyvind Møll > oyvindmo@initio.no > http://www.initio.no/ -- Met vriendelijke groeten, Terrence Vergauwen ----------------------------------------------------------------- - Siemens Business Services - - Ministerie van de Vlaamse Gemeenschap, Service 3 - - Boudewijngebouw 7B12 Boudewijnlaan 30 B-1000 Brussel - - Tel. ++ 32 (0)2 553 53 12 - ----------------------------------------------------------------- - xBSD # Performance without the hype. - ----------------------------------------------------------------- --------------2BA19A29C66E4CFD33C9FC30 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> Apparently only the HTTP fetches seem to work. <br>The proxy server does ftp & http on port 80 using netscape. <br>It even works if i do a 'GET <A HREF="ftp://ftp.inria.fr/X/contrib-R5/games/xbaby-pl2.tar.Z">ftp://ftp.inria.fr/X/contrib-R5/games/xbaby-pl2.tar.Z</A> HTTP/1.0' via telnet connected to it on port 80. <p>But fetch doesnt: <p># export HTTP_PROXY=proxy.vlaanderen.be:80 <br># export FTP_PROXY=proxy.vlaanderen.be:80 <br> <p># fetch -v <A HREF="ftp://ftp.inria.fr/X/contrib-R5/games/xbaby-pl2.tar.Z">ftp://ftp.inria.fr/X/contrib-R5/games/xbaby-pl2.tar.Z</A> <br>looking up proxy.vlaanderen.be <br>connecting to proxy.vlaanderen.be:80 <br>fetch: xbaby-pl2.tar.Z: Protocol error <br> <p># fetch -v <A HREF="http://www.xnet.com">http://www.xnet.com</A> <br>looking up proxy.vlaanderen.be <br>connecting to proxy.vlaanderen.be:80 <br>requesting <A HREF="http://www.xnet.com:80/">http://www.xnet.com:80/</A> <br>fetch: remote: 4294967295 / 0 <br>Receiving www.xnet.com (4294967295 bytes): 0% <p>Any ideas ? <br> <p>Oyvind Moll wrote: <blockquote TYPE=CITE>* Terrence Vergauwen <terrence.vergauwen@coo.vlaanderen.be> <br>| <br>| I have recently installed freebsd 4.1 RELEASE on my desktop at work. <br>| The box is behind a proxy server which proxies http & ftp. <br>| <br>| How can i configure my ports tree (/usr/ports/...) to automatically <br>| fetch files trough the proxy server ? <br>| I get connect timeouts when i try to make stuff in the ports tree now... <br>| <br>| I searched the docs (FAQ's & Handbook), but cannot find anything about <br>| proxies & ports tree's... <p>ports uses fetch(1) to fetch the files, and fetch(1) uses libfetch. <br>The man page for fetch(3) says that it uses the environment variables <br>HTTP_PROXY and FTP_PROXY if present. <p>Then, searching in /usr/ports/Mk/bsd.port.mk reveals that ports can <br>use a FETCH_ENV variable to specify the environment for fetch(1) used <br>in ports. <p>So, you could stick something like this into /etc/make.conf: <p>FETCH_ENV?= HTTP_PROXY=bla.bla:1234 FTP_PROXY=foo.bar:4321 <p>Hope that helps. <p>-- <br> Øyvind Møll <br> oyvindmo@initio.no <br> <a href="http://www.initio.no/">http://www.initio.no/</a></blockquote> <pre>-- Met vriendelijke groeten, Terrence Vergauwen ----------------------------------------------------------------- - Siemens Business Services - - Ministerie van de Vlaamse Gemeenschap, Service 3 - - Boudewijngebouw 7B12 Boudewijnlaan 30 B-1000 Brussel - - Tel. ++ 32 (0)2 553 53 12 - ----------------------------------------------------------------- - xBSD # Performance without the hype. - -----------------------------------------------------------------</pre> </html> --------------2BA19A29C66E4CFD33C9FC30-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39BCFA50.9664240>