summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pielmeier <billie@gentoo.org>2009-06-28 17:59:41 +0000
committerDaniel Pielmeier <billie@gentoo.org>2009-06-28 17:59:41 +0000
commit8a47bebdf38fb4c0d90f301be84c39999f285448 (patch)
tree8935245ab364ffebfbb4de13791cd828b856ad74 /app-portage
parentEAPI2ification, nailing libusb dep to slot 0, fixes #270159 (diff)
downloadgentoo-2-8a47bebdf38fb4c0d90f301be84c39999f285448.tar.gz
gentoo-2-8a47bebdf38fb4c0d90f301be84c39999f285448.tar.bz2
gentoo-2-8a47bebdf38fb4c0d90f301be84c39999f285448.zip
Initial import. This fixes bug #253074.
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'app-portage')
-rw-r--r--app-portage/pfl/ChangeLog11
-rw-r--r--app-portage/pfl/metadata.xml16
-rw-r--r--app-portage/pfl/pfl-1.8.1.ebuild65
3 files changed, 92 insertions, 0 deletions
diff --git a/app-portage/pfl/ChangeLog b/app-portage/pfl/ChangeLog
new file mode 100644
index 000000000000..8ecab02e33fe
--- /dev/null
+++ b/app-portage/pfl/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-portage/pfl
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-portage/pfl/ChangeLog,v 1.1 2009/06/28 17:59:41 billie Exp $
+
+*pfl-1.8.1 (28 Jun 2009)
+
+ 28 Jun 2009; Pielmeier Daniel <billie@gentoo.org> +metadata.xml,
+ +pfl-1.8.1.ebuild:
+ Initial import. Original ebuild by desastre, fixes by me, yngwin and damage.
+ This closes bug #253074.
+
diff --git a/app-portage/pfl/metadata.xml b/app-portage/pfl/metadata.xml
new file mode 100644
index 000000000000..7759b2605a71
--- /dev/null
+++ b/app-portage/pfl/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>billie@gentoo.org</email>
+ <name>Daniel Pielmeier</name>
+ </maintainer>
+ <maintainer>
+ <email>bugs@portagefilelist.de</email>
+ <description>Upstream author, please CC on bugs</description>
+ </maintainer>
+ <use>
+ <flag name='network-cron'>weekly submit of the package database</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-portage/pfl/pfl-1.8.1.ebuild b/app-portage/pfl/pfl-1.8.1.ebuild
new file mode 100644
index 000000000000..ed043ff9a673
--- /dev/null
+++ b/app-portage/pfl/pfl-1.8.1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-portage/pfl/pfl-1.8.1.ebuild,v 1.1 2009/06/28 17:59:41 billie Exp $
+
+inherit python multilib
+
+DESCRIPTION="PFL is an online searchable file/package database for Gentoo"
+HOMEPAGE="http://www.portagefilelist.de/index.php/Special:PFLQuery2"
+SRC_URI="http://files.portagefilelist.de/${P}
+ http://files.portagefilelist.de/e-file"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="network-cron"
+
+DEPEND="virtual/python"
+RDEPEND="${DEPEND}
+ net-misc/curl
+ sys-apps/portage"
+
+RESTRICT="mirror"
+
+src_unpack() {
+ cp "${DISTDIR}/${P}" "${WORKDIR}/${PN}.py"
+ cp "${DISTDIR}/e-file" "${WORKDIR}/e-file"
+}
+
+src_install() {
+ python_version
+
+ if use network-cron ; then
+ cat >> "${T}/${PN}" <<- EOF
+ #!/bin/sh
+ exec nice ${python} -O $(python_get_sitedir)/${PN}/${PN}.py >/dev/null
+ EOF
+
+ exeinto /etc/cron.weekly
+ doexe "${T}/${PN}" || die "install ${PN} cron file failed"
+ fi
+
+ exeinto $(python_get_sitedir)/${PN}
+ doexe ${PN}.py || die "install ${PN}.py failed"
+
+ dobin e-file || die "install e-file failed"
+
+ dodir /var/lib/${PN} || die "directory creation failed"
+ fowners 0:portage /var/lib/${PN}
+ fperms 0775 /var/lib/${PN}
+}
+
+pkg_postinst() {
+ python_version
+ python_mod_optimize $(python_get_sitedir)/${PN}
+
+ if [[ ! -e "${ROOT%/}/var/lib/${PN}/lastrun" ]]; then
+ echo -n 0 > "${ROOT%/}/var/lib/${PN}/lastrun"
+ chown -R 0:portage "${ROOT%/}/var/lib/${PN}"
+ chmod -R 775 "${ROOT%/}/var/lib/${PN}"
+ fi
+}
+
+pkg_postrm() {
+ python_mod_cleanup
+}