saving a few ports from death

Ade Lovett ade at FreeBSD.org
Wed Apr 27 19:00:36 UTC 2011


On Apr 27, 2011, at 13:46 , Chip Camden wrote:
> 
> Modifying the script that was posted earlier, we can list out all
> installed ports that are currently deprecated, and why:

Won't work -- need to handle slave ports etc, where the DEPRECATED may be in the MASTER_PORT.

Try this:

#!/bin/sh
#
PORTSDIR=${1-"/usr/ports"}
for port in $(pkg_info -oa | grep /)
do
    dep=$(make -C ${PORTSDIR}/${port} -V DEPRECATED)
    [ -n "${dep}" ] && echo "${port}: ${dep}"
done


-aDe



More information about the freebsd-ports mailing list