I run Gentoo Linux on several machines, and occasionally create something that I find useful. This page is where I record what I have done. If any of this gets merged into Gentoo itself, then I will note it.
UPDATE:Ah, it turns out there was such a thing as this. Instead of being part of the standard portage system, it was in a separate toolkit called gentoolkit (the command is qpkg).
I am leaving this here as a simple sample of an ebuild and Perl script. Also, I kind of like my utility's output better ;)
I often find that it would be handy if I could quickly ask which package a specific file belongs to. This is useful, say, when I am working on an ebuild that I know need a certain command, but I don't know the package name.
I have written both a Perl utility, and an EBuild.
It is best to use the ebuild, and let Gentoo emerge do it for you. Create a portage overlay (i.e. add PORTAGE_OVERLAY=/usr/local/portage to /etc/make.conf), and then create a directory like /usr/local/portage/app-admin/whoowns. Put the ebuild file in that directory, cd to the directory and type:
ebuild whoowns-1.0.ebuild digest
You should now be able to emerge whoowns as usual (though it is masked):
ACCEPT_KEYWORDS="~x86" emerge whoowns
I maintain a package called MIMD, which is a very simple multicasting streaming server. I have an ebuild for it which can be found on the MIMD home page.