From owner-freebsd-ports@FreeBSD.ORG Sat Nov 14 09:56:30 2009 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 965D4106566B for ; Sat, 14 Nov 2009 09:56:30 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from amailer.gwdg.de (amailer.gwdg.de [134.76.10.18]) by mx1.freebsd.org (Postfix) with ESMTP id 544378FC15 for ; Sat, 14 Nov 2009 09:56:29 +0000 (UTC) Received: from p578b68b8.dip0.t-ipconnect.de ([87.139.104.184] helo=krabat.raven.hur) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1N9FMn-0001Dy-DW; Sat, 14 Nov 2009 10:56:25 +0100 Message-ID: <4AFE7EC8.8020302@gwdg.de> Date: Sat, 14 Nov 2009 10:56:24 +0100 From: Rainer Hurling User-Agent: Thunderbird 2.0.0.23 (X11/20090824) MIME-Version: 1.0 To: rea-fbsd@codelabs.ru References: <20091114040417.GA66462@hades.panopticon> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie Cc: Dmitry Marakasov , freebsd-ports@FreeBSD.org Subject: Re: Getting MASTER_SITES for sourceforge ports more easily 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, 14 Nov 2009 09:56:30 -0000 On 14.11.2009 08:54 (UTC+1), Eygene Ryabinkin wrote: > Sat, Nov 14, 2009 at 09:16:47AM +0300, Eygene Ryabinkin wrote: >> The attached shell script should produce the MASTER_SITE_SUBDIR for the >> SF-hosted ports for each URL given in the command-line. > > Inlining the script -- it was dropped by the Mailman: > ----- > #!/bin/sh > > while [ -n "$1" ]; do > echo "$1" | sed -Ee's%^htt(p|ps)://(sourceforge|sf)\.net/projects/(.*)/[^/]*/download$%MASTER_SITE_SUBDIR= \3%' > shift > done > ----- Isn't it something that should be mentioned in the porters handbook, for example in chapter 5.4.7? Rainer Hurling