From owner-freebsd-ports@FreeBSD.ORG Sat Feb 18 09:58:28 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8596A16A420 for ; Sat, 18 Feb 2006 09:58:28 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1027443D4C for ; Sat, 18 Feb 2006 09:58:27 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by zproxy.gmail.com with SMTP id 34so564176nzf for ; Sat, 18 Feb 2006 01:58:27 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UZs101GkvtdzQ4R5VPUFHZZOvywLFbXGAYdAKGeIDnR9Z6Lt0QYTtVoy0OJxoGNAVdRMg145Nwj1qYil5ESRzZ/niYgoxmpnzA5ld6SOOfUiBm5FVLgU1dzPtosQBLuUlanOiHF/g+AQ7OJpHFc0ORG7ikiqOUmWYp/UvXFCdUo= Received: by 10.36.227.48 with SMTP id z48mr308778nzg; Sat, 18 Feb 2006 01:58:26 -0800 (PST) Received: by 10.37.20.11 with HTTP; Sat, 18 Feb 2006 01:58:26 -0800 (PST) Message-ID: Date: Sat, 18 Feb 2006 12:58:26 +0300 From: "Andrew Pantyukhin" To: "Sam Lawrance" In-Reply-To: <127FEBDA-4446-47DB-B6CA-4AB6A5CE8562@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <127FEBDA-4446-47DB-B6CA-4AB6A5CE8562@FreeBSD.org> Cc: FreeBSD Ports Subject: Re: sourceforge subdir default X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2006 09:58:28 -0000 On 2/18/06, Sam Lawrance 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).