Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Feb 2006 12:58:26 +0300
From:      "Andrew Pantyukhin" <infofarmer@gmail.com>
To:        "Sam Lawrance" <lawrance@freebsd.org>
Cc:        FreeBSD Ports <ports@freebsd.org>
Subject:   Re: sourceforge subdir default
Message-ID:  <cb5206420602180158v7c708510l378e143ec26cce83@mail.gmail.com>
In-Reply-To: <127FEBDA-4446-47DB-B6CA-4AB6A5CE8562@FreeBSD.org>
References:  <cb5206420602180112k135e0569o360f02aad4fd4b0b@mail.gmail.com> <127FEBDA-4446-47DB-B6CA-4AB6A5CE8562@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2/18/06, Sam Lawrance <lawrance@freebsd.org> wrote:
>
> On 18/02/2006, at 8:12 PM, Andrew Pantyukhin wrote:
>
> > I wonder if we can set MASTER_SITE_SUBDIR to
> > PORTNAME by default when MASTER_SITES is
> > equal to MASTER_SITE_SOURCEFORGE or
> > M_S_SF_EXTENDED? We don't have to take care
> > of ':whatever', just handle the simplest case - and
> > it will save hundreds of lines.
>
> How?

Now that you've asked it, I don't see an easy/harmless
solution :-) Except maybe:

.if !defined(IGNORE_MASTER_SITE_SOURCEFORGE_PORTNAME}
MASTER_SITE_SOURCEFORGE_PORTNAME+=3D  \
    ${MASTER_SITE_SOURCEFORGE:S,%SUBDIR%,${PORTNAME}/&,}
.endif

A more subtle solution would require using some
distinctive placeholder in bsd.sites.mk (like %SUBDIR-SF%)
and a little rehaul of the code in b.p.m. I'll look at
it after the freeze.

BTW, sf mirror list in b.s.m seems to be out of date. Current
mirror list is something like this:

switch umn belnet heanet jaist puzzle easynews kent voxel
internap surfnet nchc ovh superb keihanna optusnet mesh

and it seems that the list is full for any project (no extended
lists anymore).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb5206420602180158v7c708510l378e143ec26cce83>