PortageFileList
From Gentoo Linux Wiki
Contents |
[edit] Project details
- founder: damage
- project site: http://www.portagefilelist.de
- query page for bots: example query with header example query without header
- currently there are 11.5 millon files in database
[edit] FAQ
[edit] What is Portage File List (PFL)?
Following scenario: You want to lookup domains by the host command. But you never installed that tool befor and you don't know which package contains that tool. So you can ask PFL and it will answer net-dns/bind-tools.
In short: PFL is an online searchable file/package database for Gentoo.
[edit] Where does the package informations come from?
There is a python script which is runable out of the box. If you run this script by our own it gathers infrormations about all installed packages from /var/db/pkg, creates a csv file and bzip2's it. After that the script sends this file to PFL. I do not send any further informations excepect the hostname which is used to create the filename.
This meens that the project is depended on the Gentoo community. If you want to support this project please run the python script on your Gentoo machines. It would be nice if you would do that periodicly by a cron job.
To make things more easy I wrote an ebuild for that.
[edit] What is the different to Gentoo-Portage or http://packages.gentoo.org?
These sites give you many informations about packages (much more than PFL!). But they do not tell you which files are contained by a package.
[edit] Goodies
If you are in IRC join Quakenet/#gentoo.de. You can query PFL via a bot by saying: +equery belongs host. The bot is provided by vispillo.
(seems to be offline)
[edit] ebuild
app-misc/pfl-1.7.ebuild
# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit python SLOT="0" LICENSE="GPLv2" KEYWORDS="~x86 ~amd64" DESCRIPTION="PFL is an online searchable file/package database for Gentoo" SRC_URI="http://files.portagefilelist.de/${P}" HOMEPAGE="http://www.portagefilelist.de/index.php/Special:PFLQuery2" IUSE="" RESTRICT="mirror" src_unpack(){ cp "${DISTDIR}/${P}" ${WORKDIR}/${PN}.py } src_install(){ python_version cat >> "${T}/${PN}" <<- EOF #!/bin/sh exec nice ${python} -O /usr/lib/${PN}/${PN}.py EOF exeinto /etc/cron.daily/ doexe "${T}/${PN}" exeinto /usr/lib/${PN}/ doexe ${PN}.py }
