From owner-freebsd-ports@FreeBSD.ORG Fri May 27 11:38:36 2005 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 4093016A41C for ; Fri, 27 May 2005 11:38:36 +0000 (GMT) (envelope-from edwin@mavetju.org) Received: from mail3out.barnet.com.au (mail3out.barnet.com.au [202.83.176.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAA2743D48 for ; Fri, 27 May 2005 11:38:35 +0000 (GMT) (envelope-from edwin@mavetju.org) Received: by mail3out.barnet.com.au (Postfix, from userid 27) id 055E8877CA7; Fri, 27 May 2005 21:38:34 +1000 (EST) X-Viruscan-Id: <429706B90000E55B4EBAB6@BarNet> Received: from mail3-auth.barnet.com.au (mail3.barnet.com.au [202.83.176.16]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.barnet.com.au", Issuer "BarNet Root Certificate Authority" (verified OK)) by mail3.barnet.com.au (Postfix) with ESMTP id CB97B877C95; Fri, 27 May 2005 21:38:33 +1000 (EST) Received: from k7.mavetju (edwin-3.int.barnet.com.au [10.10.12.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "edwin.adsl.barnet.com.au", Issuer "BarNet Root Certificate Authority" (not verified)) by mail3-auth.barnet.com.au (Postfix) with ESMTP id 71ECC877C91; Fri, 27 May 2005 21:38:33 +1000 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id 4ECAA61B9; Fri, 27 May 2005 21:38:32 +1000 (EST) Date: Fri, 27 May 2005 21:38:32 +1000 From: Edwin Groothuis To: Matt Mills Message-ID: <20050527113832.GQ1175@k7.mavetju> References: <42970476.6050105@btopenworld.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42970476.6050105@btopenworld.com> User-Agent: Mutt/1.5.6i Cc: ports@freebsd.org Subject: Re: /usr/ports/distfiles maintenance 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: Fri, 27 May 2005 11:38:36 -0000 On Fri, May 27, 2005 at 12:28:54PM +0100, Matt Mills wrote: > Basically, my question is: is there some piece of software or automated > way of keeping the directory clean of stale sources? I can imagine > obvious problems with automating the process due to different versions > of the same software in separate ports (eg. autoconf, automake, libtool, > etc.) I would say, that the output of grep MD5 */*/distinfo | awk '{ print $2 }' | sed -e 's/[()]//g' would give a nice list of files which are current. Then diffing it against the output of: find distfiles -type f | sed -e 's/distfiles.//' and deleting the ones which show up as "in the distfiles directory". Of course there might be something in the ports tree for this. Oh, and it kind of sucks too that */*/distinfo gives an "argument list too long" :-) Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/