> From [email protected] Mon Aug 24 16:15:23 2009
> Date: Mon, 24 Aug 2009 13:42:56 +0100
> From: Stuart Henderson <[email protected]>
> To: [email protected]
> Subject: MASTER_SITES_SOURCEFORGE, use their redirector
>
> this adds support for sourceforge's own mirror redirector and keeps
> the others in as a fallback. (the rest of the list should probably
> be verified and at least some of the /sourceforge/ URLs should
> switch to /project/ to avoid extra redirects, but I don't have
> time to look at that right now).
>
> since sourceforge do geolocation, this gets people using a
> local mirror by default when fetching distfiles from ports.

This breaks most of the ports i tried.  Instead of the distfile,
it fetches some weird HTML file (redirects to /files).  And since
the fetch succeeds, ftp returns zero, build further breaks and
doesn't try another mirrors.  (Try e.g. nasm.)

If you make that http://downloads.sourceforge.net/sourceforge/
instead;  it would not break anything, and would use geolocation.
That would mean one less line in /etc/mk.conf for me.

> Index: templates/network.conf.template
> ===================================================================
> RCS file: /cvs/ports/infrastructure/templates/network.conf.template,v
> retrieving revision 1.133
> diff -u -p -r1.133 network.conf.template
> --- templates/network.conf.template   4 Jun 2009 14:43:40 -0000       1.133
> +++ templates/network.conf.template   24 Aug 2009 12:35:15 -0000
> @@ -105,6 +105,7 @@ MASTER_SITE_SUNSITE+=     \
>       ftp://ftp.chg.ru/pub/Linux/sunsite/
>  
>  MASTER_SITE_SOURCEFORGE+=    \
> +     http://downloads.sourceforge.net/project/ \
>       http://easynews.dl.sourceforge.net/sourceforge/ \
>       http://puzzle.dl.sourceforge.net/sourceforge/ \
>       http://optusnet.dl.sourceforge.net/sourceforge/ \
>
>

Reply via email to