Search:  
Gentoo Wiki

PortageFileList

Warning: Please update your script to version 1.7 to support the new features

Contents

Project details

FAQ

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.

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.

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.

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)

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/$(get_libdir)/${PN}/${PN}.py

	EOF

	exeinto /etc/cron.daily/
	doexe "${T}/${PN}"

	exeinto /usr/$(get_libdir)/${PN}/
	doexe ${PN}.py
}
Retrieved from "http://www.gentoo-wiki.info/PortageFileList"

Last modified: Sun, 14 Sep 2008 02:55:00 +0000 Hits: 1,490