From dc1d9554e27e4435a39d8a5a14d71a53ec2cefcd Mon Sep 17 00:00:00 2001 From: Daniel Pielmeier Date: Wed, 19 Oct 2011 17:46:21 +0000 Subject: [PATCH] =?utf8?q?Version=20bump.=20Fixes=20bug=20#381399=20and=20?= =?utf8?q?#381403.=20Thanks=20to=20Micha=C5=82=20G=C3=B3rny=20for=20the=20?= =?utf8?q?reports.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Package-Manager: portage-2.1.10.29/cvs/Linux i686 --- app-portage/pfl/ChangeLog | 8 +++- app-portage/pfl/Manifest | 15 ++++--- app-portage/pfl/pfl-2.3.ebuild | 78 ++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 8 deletions(-) create mode 100644 app-portage/pfl/pfl-2.3.ebuild diff --git a/app-portage/pfl/ChangeLog b/app-portage/pfl/ChangeLog index 2176c8108aa7..22f22460c900 100644 --- a/app-portage/pfl/ChangeLog +++ b/app-portage/pfl/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-portage/pfl # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-portage/pfl/ChangeLog,v 1.32 2011/07/26 17:11:09 billie Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/pfl/ChangeLog,v 1.33 2011/10/19 17:46:21 billie Exp $ + +*pfl-2.3 (19 Oct 2011) + + 19 Oct 2011; Daniel Pielmeier +pfl-2.3.ebuild: + Version bump. Fixes bug #381399 and #381403. Thanks to Michał Górny for the + reports. 26 Jul 2011; Daniel Pielmeier -pfl-2.1.ebuild: Remove old. diff --git a/app-portage/pfl/Manifest b/app-portage/pfl/Manifest index f87dbfde4166..628e253630f7 100644 --- a/app-portage/pfl/Manifest +++ b/app-portage/pfl/Manifest @@ -2,16 +2,17 @@ Hash: SHA256 DIST e-file-20110209 2985 RMD160 755a321dfdd3b9a0d1684ec436acb3bd983a7b45 SHA1 c6545136ca4943e3c43a0cb72bce4d0d86d64fee SHA256 f7abf133d6fea732d14f9eae43b831d5458e93782a54db0cecd4fdafbcb11d1c +DIST e-file-20110906 2974 RMD160 6b5aaf99b46b4a58e8d1c293a8e74528e8f2b2e9 SHA1 e8f8a5c0f995674940b548b58eb89dca5ac171f8 SHA256 bb79a48fb495f7cd4e9934bed2bccce818bbef5bc90cfb8a569568344dc8a241 DIST pfl-2.2 10999 RMD160 950a54dbc9f0a02f22acac8afb27b9c4207bd473 SHA1 a6ecead76365904e1f9ac2935ac6b19fecff2307 SHA256 2022db82bd458af4257047eab99a1f9b17a95b05d7f243f214484b0ffa935f6d +DIST pfl-2.3 14060 RMD160 76feb7d835247285d6406fe344b48af2fb5f91a4 SHA1 4a69f231992a3ac00ebfef42c42a268b6c5dc075 SHA256 7f7f95173e3c2203a9b585572a3898f9ccf2bfee9d167c76705ad816e253b4d6 EBUILD pfl-2.2.ebuild 1478 RMD160 4208b31a89f75130bb44008cbb09c95298ad91e8 SHA1 3c84f6ebf311ce3afe44de8a3620d8a91891396b SHA256 f5b7b015c7834cee8e56f14c5741615bfaf68612d2bc04854f732cb0824d13a1 -MISC ChangeLog 4260 RMD160 12d3e9d626c03f90bbad200369b6c563c62223da SHA1 4cdd914e9f62529a40c57ec191b4b3d075abe90a SHA256 828d3a949f26a8402d9fd9ff794895194f0cb89e44107ee6895278820a0b6a5f +EBUILD pfl-2.3.ebuild 1672 RMD160 7783d553b87b5d73abbd53e075eb1caf65532c12 SHA1 d9279c975dc3a348ab4a975d2f0d7569f5bcc158 SHA256 33ea512228a6935c97f9809a5a1324f10ce499fc44d3609f5eb1ac1c16073066 +MISC ChangeLog 4445 RMD160 9a383614b3eddac4d2c69cd7662e4990b7ef502f SHA1 aed926c8bbf27ecb5324a3f98b3b5c6056478021 SHA256 b93c78d6dbf14d2d3dc3e7dcb59729e16d17fd7f74b23e0960da9de9b10f1c47 MISC metadata.xml 486 RMD160 1f4ee4ccb0a25b988c6add0300411a4b6dad2992 SHA1 bd1e434ed898cc64ace98207aec592d05bcabcf9 SHA256 6df52c4b73bf5cb60d069fd6f572f34b38763e2802ec4d598e2d762d56f082a4 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.18 (GNU/Linux) +Version: GnuPG v2.0.17 (GNU/Linux) -iJwEAQEIAAYFAk59AXEACgkQfXuS5UK5QB3VmwP7B/zvF+mgh9xZcHwJsCp8/76x -QtqFmMZRHx+sss/sEYE7pE0glNLI78/WOJQ+nDeFtx3oXkDjykDbQCAQ0vVP1WaN -YBt4qyRByLNaItXF3XbPSHatQ8esMoOkJ3Iftd/g66OBQs9/R8DccsMEykGR957z -nQUY9z4zjR4w7HUzDGI= -=jskp +iEYEAREIAAYFAk6fDPcACgkQlcuUeyFa0U1WmQCeKDvmqHVooUsDR4nlra1XVVwm +yFIAn0w+vKFVyeUcyNJLA55t4ClOtnIq +=hA/V -----END PGP SIGNATURE----- diff --git a/app-portage/pfl/pfl-2.3.ebuild b/app-portage/pfl/pfl-2.3.ebuild new file mode 100644 index 000000000000..b2827a88fb42 --- /dev/null +++ b/app-portage/pfl/pfl-2.3.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-portage/pfl/pfl-2.3.ebuild,v 1.1 2011/10/19 17:46:21 billie Exp $ + +EAPI=4 + +PYTHON_DEPEND=2 +PYTHON_USE_WITH=xml + +inherit python + +MY_PV=20110906 + +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-${MY_PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" +IUSE="+network-cron" + +DEPEND="" +RDEPEND="${DEPEND} + net-misc/curl + sys-apps/portage" + +S="${WORKDIR}" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_unpack() { + cp "${DISTDIR}/${P}" "${WORKDIR}/${PN}.py" || die + cp "${DISTDIR}/e-file-${MY_PV}" "${WORKDIR}/e-file" || die +} + +src_install() { + local cmd="$(PYTHON) -O $(python_get_sitedir)/${PN}/${PN}.py" + + exeinto $(python_get_sitedir)/${PN} + doexe ${PN}.py + + dobin e-file + + dodir /var/lib/${PN} + + # create wrapper script to run pfl manually + cat > "${T}/${PN}" <<- EOF + #!/bin/sh + ${cmd} + EOF + dosbin "${T}/${PN}" + + if use network-cron ; then + # modify the wrapper script to be usable as cron job + sed -i -e "s|${cmd}|exec nice ${cmd} >/dev/null|g" "${T}/${PN}" || die + exeinto /etc/cron.weekly + doexe "${T}/${PN}" + fi +} + +pkg_postinst() { + python_mod_optimize ${PN} + + if [[ ! -e "${ROOT%/}/var/lib/${PN}/pfl.info" ]]; then + touch "${ROOT%/}/var/lib/${PN}/pfl.info" + chown -R 0:portage "${ROOT%/}/var/lib/${PN}" + chmod 775 "${ROOT%/}/var/lib/${PN}" + fi +} + +pkg_postrm() { + python_mod_cleanup ${PN} +} -- 2.26.2