3 # Copyright 2006 Piotr JaroszyĆski <peper@aster.pl>
4 # Distributed under the terms of the GNU General Public License v2
6 source /etc/make.globals
9 echo "This will take a while depending on no. of installed packages."
10 echo "Packages installed not from portage dir:"
12 while read EBUILD_PATH; do
13 OVERLAY=${EBUILD_PATH%/*/*/*}
14 CATEGORY=$(basename ${EBUILD_PATH%/*/*})
15 PKG=$(basename ${EBUILD_PATH})
17 if [[ ${OVERLAY} != ${LASTOVERLAY} ]]; then
19 LASTOVERLAY=${OVERLAY}
22 echo -e "\t${CATEGORY}/${PKG}"
23 done < <(bzcat /var/db/pkg/*/*/environment.bz2 | grep "EBUILD=/" | grep -v ${PORTDIR} | sort \
24 | sed -e 's/EBUILD=//' -e 's/.ebuild//')
26 unset OVERLAY LASTOVERLAY CATEGORY PKG