Re: simple patch for portsnap to use wget

2012-11-30 Thread Luca Ferrari
> Why don't you notify the author of phttpget and ask for a bugfix? I'd love to see a bugfix for this issue, you are right I would have been asked the author first However I'm wondering why portsnap uses phttpget instead of fetch, that is available in base. Luca __

Re: simple patch for portsnap to use wget

2012-11-29 Thread Luca Ferrari
I also tried using HTTP_PROXY and HTTP_PROXY_AUTH and it did not work, or maybe I don't get how to configure them: HTTP_PROXY=host:port HTTP_PROXY_AUTH=base:user:pass and either HTTP_PROXY=http://host:port HTTP_PROXY_AUTH=base:user:pass In both cases however the error message is different: now

Re: simple patch for portsnap to use wget

2012-11-29 Thread Luca Ferrari
On Wed, Nov 28, 2012 at 2:41 PM, Vincent Hoffman wrote: > Have you tried using > HTTP_PROXY_AUTH variable as per fetch(3) instead? > added in > http://svnweb.freebsd.org/base/head/usr.sbin/portsnap/phttpget/phttpget.c?revision=150461&view=markup Does not work for me, and looking at the source co

Re: simple patch for portsnap to use wget

2012-11-28 Thread Luca Ferrari
> Certainly not with a dependency on wget, which is not part of the base > system. Use fetch instead. > Right, so I'm wondering why not using fetch instead of phttpget by default. However I've rewritten everything so that now it allows for the configuration of fetch or not. The only change is that

Re: simple patch for portsnap to use wget

2012-11-27 Thread Luca Ferrari
I did a little review and now it is possible to specify to use wget or not using the portsnap.conf file, as well as the option to ingore certificate checking even if I don't believe this is correct. Therefore portsnap with this patch could work with either wget or phttpget, even if I'm not able to

Fwd: simple patch for portsnap to use wget

2012-11-27 Thread Luca Ferrari
Sorry, back to list. On Tue, Nov 27, 2012 at 9:22 AM, Alexander Yerenkow wrote: > Do you aware that if wget tries download from https, and there is > self-signed certificate, then it fails, and ask for --no-check-certificate > option? > How do your patch deal in that case? It simply does not. A

simple patch for portsnap to use wget

2012-11-26 Thread Luca Ferrari
Hi all, I was in trouble for a while because I was using FreeBSD behind an http proxy (a palo alto for what it means) and the portsnap command was unable to handle updates reporting always "file does not exist". After digging I found that the problem was in the phttpget command used internally from