From owner-freebsd-ports@FreeBSD.ORG Wed Apr 27 10:28:33 2011 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 A1D27106566B for ; Wed, 27 Apr 2011 10:28:33 +0000 (UTC) (envelope-from freebsdlists-ports@chillibear.com) Received: from mail.sundive.org (mail.sundive.org [212.13.197.214]) by mx1.freebsd.org (Postfix) with ESMTP id 376F68FC17 for ; Wed, 27 Apr 2011 10:28:32 +0000 (UTC) Received: from [87.112.169.120] (helo=[192.168.0.44]) by sundive.org with esmtpsa (TLSv1:DES-CBC3-SHA:168) (Exim 4.72 (FreeBSD)) (envelope-from ) id 1QF1XX-0006Wl-T7; Wed, 27 Apr 2011 11:00:17 +0100 User-Agent: Microsoft-Entourage/12.29.0.110113 Date: Wed, 27 Apr 2011 10:58:31 +0100 From: Eric To: Message-ID: Thread-Topic: saving a few ports from death Thread-Index: AcwEwam/O5uqV9slpky3RULs5sffOw== In-Reply-To: <20110427091441.GA50124@mech-cluster241.men.bris.ac.uk> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam: No X-bounce-key: sundive.org-1; freebsdlists-ports@chillibear.com; 1303900203; 695df531; Cc: Anton Shterenlikht Subject: Re: saving a few ports from death 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: Wed, 27 Apr 2011 10:28:33 -0000 > From: Anton Shterenlikht > Date: Wed, 27 Apr 2011 10:14:41 +0100 > To: > Subject: Re: saving a few ports from death > > On Tue, Apr 26, 2011 at 03:55:56PM -0700, Charlie Kester wrote: >> >> My search for "popularity" metrics is intended to point me, as a >> maintainer, to ports I might want to adopt now, rather than wait for >> someone to complain about them. Everything *I* use is already >> maintained, so I've moved on to looking for things other people might >> need. But I don't want to waste my time on something that nobody uses. >> :) > > Interesting.. > > I used this sh(1) script to find > unmaintained ports that I use. > (I couldn't find a way to do the > job with the existing tools like > pkg_info or portmaster): > > #!/bin/sh > > prefix=/usr/ports/ > makefile=/Makefile > > for file in `pkg_info -oxa | grep "/"` > do > yes=`grep MAIN ${prefix}${file}${makefile} | grep ports` > if [ -n "$yes" ] > then > echo $file > fi > done > [SNIP] Small observation, since that script picks up all of us who use 'ports' in our maintainer email addresses (myself for example), might I suggest the following tweak to your script (full address and checking for file existence): #!/bin/sh prefix=/usr/ports/ makefile=/Makefile for file in `pkg_info -oxa | grep "/"` do if test -f ${prefix}${file}${makefile} then yes=`grep MAIN ${prefix}${file}${makefile} | grep -i 'ports@freebsd\.org'` if [ -n "$yes" ] then echo $file fi fi Done Although in only greping makefiles that exist it doesn't alert you to your installed ports when the port has been removed from the tree... It's an interesting situation and I wonder if there is a tool (I suppose akin to portaudit) that alerts sys admins when ports they have installed are depreciated or maintainers drop them? Obviously one can sign up for the various types of alerts from Freshports, but I expect a few people here have rolled their own periodic alert tools... Regards Eric