Find installed unmaintained ports

From TykWiki
Revision as of 18:46, 27 April 2011 by Tykling (talk | contribs) (Created page with "The FreeBSD ports collection is huge. Not all ports are fortunate enough to have a maintainer, this script can show you a list of unmaintained ports installed on a FreeBSD system...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The FreeBSD ports collection is huge. Not all ports are fortunate enough to have a maintainer, this script can show you a list of unmaintained ports installed on a FreeBSD system:

#!/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

I found the script in this thread on the freebsd-ports@ mailing list.

I plan to run the script now and then to see if anything I really need is unmaintained, and if so I might consider becoming the maintainer.