Re: fetch and portinstall

2003-12-07 Thread mike bueide
On Sat, Dec 06, 2003 at 10:48:15AM +0300, Sergey 'DoubleF' Zaharchenko wrote:
> On Sat, 6 Dec 2003 00:09:02 -0700
> mike bueide <[EMAIL PROTECTED]> probably wrote:
> 
> > 
> > When I install or upgrade a port, all attempts to an HTTP
> > URL fetch are timing out.  Typically I'll just sudo
> > portupgrade a port I wish to install.
> > 
> > I am behind a firewall that uses nat and stateful rules.
> > Ftp fetches work just fine.  I just would like to speed
> 
> If that's the only handicap, I'm very surprised to hear that FTP goes
> through and HTTP doesn't. Maybe your sysadmin disabled HTTP access:)?
> 

Yep, my sysadmin (me) does some strange things now and then;). 
No actually, HTTP is enabled.  It looks like I should have been a bit
more patient before bothering anyone on this list about my
trivial non problem.

It turns out that the reason the http fetches were timing
out was because of a misconfiguration of the Makefile of the
port I was trying to install.  

The Makefile had these listed as the master sites for the
distfile:

MASTER_SITES= http://caraldi.com/jbq/numlockx/ \
http://dforce.sh.cvut.cz/~seli/en/numlockx/

after a bit of snooping, the distfile is actually in:

http://caraldi.com/jbq/ports/numlockx

A manual fetch of this url completed successfully.

%fetch http://caraldi.com/jbq/ports/numlockx/numlockx-1.0.tar.gz
Receiving numlockx-1.0.tar.gz (34936 bytes): 100%
34936 bytes transferred in 3.2 seconds (10.62 kBps)

Changing the Makefile in /usr/ports/x11/numlockx to reflect
that valid url causes the port to install successfully.

Thanks Horio and Sergey for your input.  
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: fetch and portinstall

2003-12-06 Thread horio shoichi
On Sat, 6 Dec 2003 00:09:02 -0700
mike bueide <[EMAIL PROTECTED]> wrote:
> 
> When I install or upgrade a port, all attempts to an HTTP
> URL fetch are timing out.  Typically I'll just sudo
> portupgrade a port I wish to install.
> 
> I am behind a firewall that uses nat and stateful rules.
> Ftp fetches work just fine.  I just would like to speed
> things up a bit by either causing the HTTP attempts to time
> out sooner or authorize them somehow.
> 
> I have done digging via man  fetch.  It mentions some
> environment variables that can be set:
> 
>   HTTP_AUTH  (man 3 fetch)
>   HTTP_TIMEOUT (man 1 fetch)
> 
> I don't understand what user-name / password combination for
> HTTP_AUTH could be set to enable HTTP fetches.  Is it the
> same as the anonymous/email_address used when manually
> logging into ftp sites as a guest? 
> 
> And, if I set these ENVIRONMENT VARIABLES, do I need them
> set it in the root shell, or the user running sudo? 
> 
> Thanks to any who might respond.
> 
> -- 
>   Michael Bueide 
>   mbueide (at) charter (dot) net .
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 

The site is misconfigured, or is simply down for a moment ?
Can you ping or traceroute to the host ?

If the site seems running, try with "FETCH_BEFORE_ARGS=-vv" and
see what the "real" complaints are meant.


horio shoichi

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: fetch and portinstall

2003-12-06 Thread Sergey 'DoubleF' Zaharchenko
On Sat, 6 Dec 2003 00:09:02 -0700
mike bueide <[EMAIL PROTECTED]> probably wrote:

> 
> When I install or upgrade a port, all attempts to an HTTP
> URL fetch are timing out.  Typically I'll just sudo
> portupgrade a port I wish to install.
> 
> I am behind a firewall that uses nat and stateful rules.
> Ftp fetches work just fine.  I just would like to speed

If that's the only handicap, I'm very surprised to hear that FTP goes
through and HTTP doesn't. Maybe your sysadmin disabled HTTP access:)?

> things up a bit by either causing the HTTP attempts to time
> out sooner or authorize them somehow.

You mean you have a local proxy? Set HTTP_PROXY to its address then. If
you want to change the timeout value, use -T with fetch.

>  -T seconds  Set timeout value to seconds.  Overrides the environment
>  variables FTP_TIMEOUT for FTP transfers or HTTP_TIMEOUT for
>  HTTP transfers if set.

If you want to make the change permanent, put the appropriate FETCH_CMD
in your /etc/make.conf (e.g FETCH_CMD=/usr/bin/fetch -T 5).

> I have done digging via man  fetch.  It mentions some
> environment variables that can be set:
> 
>   HTTP_AUTH  (man 3 fetch)
>   HTTP_TIMEOUT (man 1 fetch)
> 
> I don't understand what user-name / password combination for
> HTTP_AUTH could be set to enable HTTP fetches.  Is it the
> same as the anonymous/email_address used when manually
> logging into ftp sites as a guest? 
> 
> And, if I set these ENVIRONMENT VARIABLES, do I need them
> set it in the root shell, or the user running sudo? 
> 
> Thanks to any who might respond.
> 
> -- 
>   Michael Bueide 
>   mbueide (at) charter (dot) net .
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 


-- 
DoubleF
The older a man gets, the farther he had to walk to school as a boy.


pgp0.pgp
Description: PGP signature