Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Apr 2011 10:58:31 +0100
From:      Eric <freebsdlists-ports@chillibear.com>
To:        <freebsd-ports@freebsd.org>
Cc:        Anton Shterenlikht <mexas@bristol.ac.uk>
Subject:   Re: saving a few ports from death
Message-ID:  <C9DDA757.1EA41%freebsdlists-ports@chillibear.com>
In-Reply-To: <20110427091441.GA50124@mech-cluster241.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
> From: Anton Shterenlikht <mexas@bristol.ac.uk>
> Date: Wed, 27 Apr 2011 10:14:41 +0100
> To: <freebsd-ports@freebsd.org>
> 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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C9DDA757.1EA41%freebsdlists-ports>