diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-portage/pfl | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-portage/pfl')
-rw-r--r-- | app-portage/pfl/Manifest | 1 | ||||
-rw-r--r-- | app-portage/pfl/files/e-file-20110906-http-response.patch | 11 | ||||
-rw-r--r-- | app-portage/pfl/files/e-file-20110906-portageq.patch | 44 | ||||
-rw-r--r-- | app-portage/pfl/files/pfl-2.4-reponame.patch | 11 | ||||
-rw-r--r-- | app-portage/pfl/metadata.xml | 17 | ||||
-rw-r--r-- | app-portage/pfl/pfl-2.4-r4.ebuild | 48 |
6 files changed, 132 insertions, 0 deletions
diff --git a/app-portage/pfl/Manifest b/app-portage/pfl/Manifest new file mode 100644 index 000000000000..50375e1b0239 --- /dev/null +++ b/app-portage/pfl/Manifest @@ -0,0 +1 @@ +DIST pfl-2.4.tar.bz2 6274 SHA256 7e09db7fe79a2c0cdd8faf39ff05069f5c03b5f994168ecb0395c628b8d5f297 SHA512 a33712bc38d6e02474856dc3a9eac0d39be032a9554f2510815602e94648cd6bf499111a3354568788ddcc0a653a2ac54fac56b0af03fb1cf822ec44ffcb1d72 WHIRLPOOL 3091e30199313c27b88f35563825c2add7bcee972337ef8936636342442b663d12d5ad3c178342812906476071d7224ff134eacdabbf9f7478d7823d793b128f diff --git a/app-portage/pfl/files/e-file-20110906-http-response.patch b/app-portage/pfl/files/e-file-20110906-http-response.patch new file mode 100644 index 000000000000..672cde5f5375 --- /dev/null +++ b/app-portage/pfl/files/e-file-20110906-http-response.patch @@ -0,0 +1,11 @@ +--- bin/e-file 2013-10-14 21:33:54.421701259 +0200 ++++ bin/e-file 2013-10-14 21:34:10.004702370 +0200 +@@ -25,7 +25,7 @@ + + URL="http://www.portagefilelist.de/index.php/Special:PFLQuery2?file=$1&searchfile=lookup&lookup=file&txt" + +-curl -s $URL | awk -v isgentoo=$isgentoo ' ++curl -s -f $URL | awk -v isgentoo=$isgentoo ' + BEGIN{ + FOUND=0 + if(isgentoo){ diff --git a/app-portage/pfl/files/e-file-20110906-portageq.patch b/app-portage/pfl/files/e-file-20110906-portageq.patch new file mode 100644 index 000000000000..2a65519f459b --- /dev/null +++ b/app-portage/pfl/files/e-file-20110906-portageq.patch @@ -0,0 +1,44 @@ +--- bin/e-file ++++ bin/e-file +@@ -16,11 +16,11 @@ + exit 1 + fi + +-if type emerge >/dev/null 2>&1; then ++if type portageq >/dev/null 2>&1; then + isgentoo=1 + else + isgentoo=0 +- echo 'WARNING: "emerge" no found. If your system is not gentoo, a part of function will not available!' >&2 ++ echo 'WARNING: "portageq" no found. If your system is not gentoo, a part of function will not available!' >&2 + fi + + URL="http://www.portagefilelist.de/index.php/Special:PFLQuery2?file=$1&searchfile=lookup&lookup=file&txt" +@@ -29,8 +29,7 @@ + BEGIN{ + FOUND=0 + if(isgentoo){ +- "emerge --info | grep PORTDIR" | getline +- split($0,PORTDIR,/\"/) ++ "portageq get_repo_path $(portageq envvar EROOT) gentoo" | getline PORTDIR + } + } + { +@@ -75,7 +74,7 @@ + } + + NF=0 +- cmd="(grep -h HOMEPAGE\\= " PORTDIR[2] "/" pkg "/*.ebuild | tail -n 1)2>/dev/null" ++ cmd="(grep -h HOMEPAGE\\= " PORTDIR "/" pkg "/*.ebuild | tail -n 1)2>/dev/null" + cmd | getline + if(NF==0){ + HOMEPAGE="" +@@ -85,7 +84,7 @@ + } + + NF=0 +- cmd="(grep -h DESCRIPTION " PORTDIR[2] "/" pkg "/*.ebuild | tail -n 1)2>/dev/null" ++ cmd="(grep -h DESCRIPTION " PORTDIR "/" pkg "/*.ebuild | tail -n 1)2>/dev/null" + cmd | getline + if(NF==0){ + DESCRIPTION="" diff --git a/app-portage/pfl/files/pfl-2.4-reponame.patch b/app-portage/pfl/files/pfl-2.4-reponame.patch new file mode 100644 index 000000000000..a9041d46b329 --- /dev/null +++ b/app-portage/pfl/files/pfl-2.4-reponame.patch @@ -0,0 +1,11 @@ +--- pfl/pfl.py (Revision 68) ++++ pfl/pfl.py (Arbeitskopie) +@@ -226,6 +226,8 @@ + v = '%s-%s' % (v, r) + + repo, = self._vardbapi.aux_get(cpv, ['repository']) ++ if len(repo) == 0: ++ repo, = self._vardbapi.aux_get(cpv, ['REPOSITORY']) + + # timestamp of merge + mergedstamp = self._vardbapi.aux_get(cpv, ['_mtime_'])[0] diff --git a/app-portage/pfl/metadata.xml b/app-portage/pfl/metadata.xml new file mode 100644 index 000000000000..d18909eadb68 --- /dev/null +++ b/app-portage/pfl/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>billie@gentoo.org</email> + <name>Daniel Pielmeier</name> + </maintainer> + <upstream> + <maintainer> + <email>bugs@portagefilelist.de</email> + <description>Upstream author, please CC on bugs</description> + </maintainer> + </upstream> + <use> + <flag name='network-cron'>Adds a cron job which does a weekly submit of the package database</flag> + </use> +</pkgmetadata> diff --git a/app-portage/pfl/pfl-2.4-r4.ebuild b/app-portage/pfl/pfl-2.4-r4.ebuild new file mode 100644 index 000000000000..2ceba845f3ae --- /dev/null +++ b/app-portage/pfl/pfl-2.4-r4.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="xml" + +inherit eutils distutils-r1 + +DESCRIPTION="Searchable online file/package database for Gentoo" +HOMEPAGE="http://www.portagefilelist.de" +SRC_URI="http://files.portagefilelist.de/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm hppa ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x64-freebsd ~amd64-linux ~x86-linux" +IUSE="+network-cron" + +DEPEND="" +RDEPEND="${DEPEND} + net-misc/curl + sys-apps/portage[${PYTHON_USEDEP}]" + +src_prepare() { + epatch "${FILESDIR}"/e-file-20110906-http-response.patch \ + "${FILESDIR}"/e-file-20110906-portageq.patch \ + "${FILESDIR}"/pfl-2.4-reponame.patch +} + +python_install_all() { + if use network-cron ; then + exeinto /etc/cron.weekly + doexe cron/pfl + fi + + keepdir /var/lib/${PN} + distutils-r1_python_install_all +} + +pkg_postinst() { + if [[ ! -e "${EROOT%/}/var/lib/${PN}/pfl.info" ]]; then + touch "${EROOT%/}/var/lib/${PN}/pfl.info" || die + chown -R 0:portage "${EROOT%/}/var/lib/${PN}" || die + chmod 775 "${EROOT%/}/var/lib/${PN}" || die + fi +} |