From owner-freebsd-ports@FreeBSD.ORG Sat Jun 25 19:17:16 2005 Return-Path: X-Original-To: freebsd-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 5853816A41C for ; Sat, 25 Jun 2005 19:17:16 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from mail.efacilitas.de (efacilitas.de [213.133.110.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13C1743D49 for ; Sat, 25 Jun 2005 19:17:15 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from eurystheus.local (port-212-202-37-29.dynamic.qsc.de [212.202.37.29]) by mail.efacilitas.de (Postfix) with ESMTP id C19BB123962; Sat, 25 Jun 2005 21:15:33 +0200 (CEST) Received: from localhost (eurystheus.local [192.168.1.67]) by eurystheus.local (Postfix) with ESMTP id 208C012B0EC; Sat, 25 Jun 2005 21:15:44 +0200 (CEST) Received: from eurystheus.local ([192.168.1.67]) by localhost (eurystheus.locaL [192.168.1.67]) (amavisd-new, port 10024) with ESMTP id 50797-08; Sat, 25 Jun 2005 21:15:39 +0200 (CEST) Received: from [192.168.1.67] (eurystheus.local [192.168.1.67]) by eurystheus.local (Postfix) with ESMTP id D271412B033; Sat, 25 Jun 2005 21:15:38 +0200 (CEST) Message-ID: <42BDAD5A.1000309@cs.tu-berlin.de> Date: Sat, 25 Jun 2005 21:15:38 +0200 From: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050517 X-Accept-Language: en-us, en MIME-Version: 1.0 To: meka References: <20050625171055.1505c9fa.meka@softhome.net> <1119712377.716.29.camel@dirk.no.domain> <20050625175406.688ddefc.meka@softhome.net> In-Reply-To: <20050625175406.688ddefc.meka@softhome.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at example.com Cc: FreeBSD Subject: Re: New kind of ports 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, 25 Jun 2005 19:17:16 -0000 meka wrote: > Sam Lawrance wrote: > >>In that case you want 'make checksum'. See the 'ports' manpage. > > Maybe I didn't express my self right. How about the (meta) rule > fetch: > checksum || do-fetch 'make checksum' does exactly what you want: fetch the file, make a checksum, compare it, try to fetch the file again if it's incorrect, make a new checksum, compare it again ... If you just want to change the behaviour of 'make fetch' because you think it might be confusing to new users then offer a patch. If it is good and works without changing the current behaviour of other rules (e.g. checksum) then maybe someone will commit it. Björn