Ever wonder what portion of the portage tree is free software, and what portion is proprietary? Here's an estimate.
Total number of packages:
feynman grant> paludis --list-packages --repository gentoo | \ > sed -n -e 's/^\* \(.*\)/\1/p' | wc -l 11540
Total number of packages w/ LICENSE containing [gpl|as-is|bsd]:
feynman grant> paludis --list-packages --repository gentoo | \
> sed -n -e 's/^\* \(.*\)/\1/p' | while read a ; \
> do paludis -qM ${a}::gentoo | grep LICENSE: | \
> cut -d: -f2 | grep -i --quiet '[gpl|as-is|bsd]' \
> && echo ${a} ; done | wc -l
11164
So, if I did things right, we're looking at roughly 96.7% of the tree. Thanks to ciaranm for the lengthy one-liner, although any mistakes are definitely my own.
All contents Copyright 2006 Grant Goodyear.

This work is licensed under a
Creative Commons
License.