chore(app-admin/eselect-pinentry): import from portage

Change-Id: I17bc27730e025dc45fb4f5ca0853ad9c9549fa36
This commit is contained in:
Brandon Philips 2013-02-15 16:38:06 -08:00
parent ffd015b932
commit 1513d39b38
7 changed files with 295 additions and 0 deletions

View File

@ -0,0 +1,66 @@
# ChangeLog for app-admin/eselect-pinentry
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-pinentry/ChangeLog,v 1.17 2013/01/14 13:21:45 ssuominen Exp $
*eselect-pinentry-0.4 (14 Jan 2013)
14 Jan 2013; Samuli Suominen <ssuominen@gentoo.org>
+files/pinentry.eselect-0.4, +eselect-pinentry-0.4.ebuild:
Version bump to use shared code from eselect-lib-bin-symlink by mgorny.
28 Nov 2012; Tim Harder <radhermit@gentoo.org> metadata.xml:
Add to crypto herd.
25 Nov 2012; Sven Wegener <swegener@gentoo.org> metadata.xml:
Move to maintainer-needed.
14 Sep 2012; Samuli Suominen <ssuominen@gentoo.org> metadata.xml:
Copy metadata.xml from app-crypt/pinentry since you can't maintain one
without another.
09 Sep 2012; Raúl Porcel <armin76@gentoo.org> eselect-pinentry-0.3.ebuild:
alpha/ia64/s390/sh/sparc stable wrt #421593
17 Aug 2012; Anthony G. Basile <blueness@gentoo.org>
eselect-pinentry-0.3.ebuild:
Stable ppc ppc64, bug #421593
03 Jul 2012; Jeroen Roovers <jer@gentoo.org> eselect-pinentry-0.3.ebuild:
Stable for HPPA (bug #421593).
25 Jun 2012; Markus Meier <maekke@gentoo.org> eselect-pinentry-0.3.ebuild:
arm stable, bug #421593
19 Jun 2012; Agostino Sarubbo <ago@gentoo.org> eselect-pinentry-0.3.ebuild:
Stable for amd64, wrt bug #421593
17 Jun 2012; Jeff Horelick <jdhore@gentoo.org> eselect-pinentry-0.3.ebuild:
marked x86 per bug 421593
17 Jun 2012; Samuli Suominen <ssuominen@gentoo.org>
-eselect-pinentry-0.1.ebuild, -eselect-pinentry-0.2.ebuild,
-files/eselect-pinentry-0.1, -files/eselect-pinentry-0.2:
old
09 May 2012; Alexis Ballier <aballier@gentoo.org>
eselect-pinentry-0.3.ebuild:
keyword ~amd64-fbsd
*eselect-pinentry-0.3 (21 Oct 2010)
21 Oct 2010; Samuli Suominen <ssuominen@gentoo.org>
+files/eselect-pinentry-0.3, +eselect-pinentry-0.3.ebuild:
Use EROOT instead of ROOT for prefix support.
*eselect-pinentry-0.2 (30 Sep 2010)
30 Sep 2010; Samuli Suominen <ssuominen@gentoo.org>
+files/eselect-pinentry-0.2, +eselect-pinentry-0.2.ebuild:
If no targets are found, remove the symlink and exit.
*eselect-pinentry-0.1 (30 Sep 2010)
30 Sep 2010; Samuli Suominen <ssuominen@gentoo.org>
+files/eselect-pinentry-0.1, +eselect-pinentry-0.1.ebuild:
Initial commit wrt #338691 by Michał Górny.

View File

@ -0,0 +1,20 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
AUX eselect-pinentry-0.3 3471 SHA256 fe892bea975b99bcadf81bffc7ef886f5ac392858b0832853f92b94b7a00288b SHA512 08c16ecc7cc59ead54cb9ecf18e98dec6c09d110abac88aeb8b309d9f993351f0b0520d9566cc29ef34d4fe8d1ef960c709ebdc4593f5efb21793cffd5af7999 WHIRLPOOL 3b60606ea2e7b72a14c5c821a6c6a23383613ae3163aadb6f0aef9c2997793d377b431769e3f8245e5680295e6c6537c2f64b45fa4aecedcb7bc85575f46ee01
AUX pinentry.eselect-0.4 447 SHA256 8ac9d0e6ced34ebaa8a5832fa5afe8aaf27b91de630c9079472a00995189ce06 SHA512 c969cbe00a518fc91e1f0540ef3978029b2d88f78ca6c0fdba42a4b4be6f9ddf164bec75f742d2a25538928cb324dc4f6238afb26be755f430a1f522649cf854 WHIRLPOOL 456424d1a78a176e23f176fe13327acb18a60dc46a5a27ab7b9b552a6684c82b62ca6a4b678e1376f987899139bc73785198e045908d085b253fc484f7b39960
EBUILD eselect-pinentry-0.3.ebuild 797 SHA256 274c1b6d03160f2d4738f1a4f8108a21eec297428f98eb1cee9a641f5be3d31a SHA512 303b7e60b40e47c85ab8a90234fe6f03ccedd0099a7420e91c40c7e671a5110b493729d3636216319c653c44d3ba38a4a4e18d168925d6b7e3bbb15cc62fb136 WHIRLPOOL b01ce335fd46123ef3e8bafa7261ab7b9bfd0e97147504f26ecc1929f46f015fdf7efd3018fc5d0a7a6cc1c8c10f3904774f91fd30538721876763528ce15162
EBUILD eselect-pinentry-0.4.ebuild 819 SHA256 d8b9c6af1224c808cd601af14e495185c955193e2a481083c3f63147859e1a96 SHA512 b2ae2963a12c4caf7781c9a9042ab174832c3be0c649a6f59a125584cb9eb0c31d79cb548275702b9efee5905dd9d76e3d42c743a7bdb6f1c6e45027df55bfb9 WHIRLPOOL 7ffc07d654517ee32847a200d26efa088bf40cc3f111f02ee0b6cf50de3cdc79e3ae2743ca431509ea3d1b1554cf16a54c6fe4c2ddcb8722d978e64b8b553553
MISC ChangeLog 2377 SHA256 2748584329486d014aad81a964ac0cdd97511f26cb579022cd779ae0fdd055e0 SHA512 0c1824cc97bf30dd5aafd444a92e6a12d95ae9b8d36e664cff6888eda3b2c8f6a26aa6f400f496b56edb73a241fcd85d8cb4c3db649665796b7f59032caeaae0 WHIRLPOOL 981687d79996cbd762e80056d11d63b4a100c472d4e1a08b4ca46a71c64cd1e17b6389422afcadc3974302cc14312d30002c759e082d808731ffccdb83298b49
MISC metadata.xml 159 SHA256 fabd15e2740a2a68e0bda738d0cd4300b133ff11239802afe7e60aa3862c9c03 SHA512 96a1f7f082adc57e52a1a32666e1206e68f8ff03c728fdb7666ff98c255905977491fc4dfc37bc8bdf5da0eb50cdc408adec357bbd75bd980bc90659cc157194 WHIRLPOOL 82fca1c4b75b090abdb0a4233c8e49fc43535ca6e470f725c1872653ea922b6693e9646bc3ee1fd6f1293ebedad661642cec13b2817fb5315268300f7675a751
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iQEcBAEBCAAGBQJQ9cL0AAoJEEdUh39IaPFNruIH/RMQK4YmOWvVyMUcdhGD9/WD
QczsPAorZvbUgoCc4uXjdwlRXlr+mnypDTaZtQDq/IiTFxM1jQdKMb2oNEY5VqfJ
k27drxRzSjSgWAkWfIQg4CWiuzW1b1jQp2OZTNHqRh62zShz4cnJNZWjF2Qgdnta
2kpKlcuv74zldViue/3gpxWBVaopvs8Fd5H1k/xg/VXsmJmMg3ViDqctVnbLGkS2
Y7R2JeSvaz55IWBQZTBIYw9zsEgLIkdmX1L2TyXYQGoxuLKM51t4roTyPDJw0DVC
47EFoqhcipmMGq1Gt61CtQXTFX5OuwCDJo488a2eUCc3yCAzCKH8waFwSMVldnI=
=is7X
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,21 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-pinentry/eselect-pinentry-0.3.ebuild,v 1.8 2012/09/09 15:15:57 armin76 Exp $
DESCRIPTION="Manage /usr/bin/pinentry symlink"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE=""
RDEPEND="app-admin/eselect
!<app-crypt/pinentry-0.8.0-r1"
DEPEND="${RDEPEND}"
src_install() {
insinto /usr/share/eselect/modules
newins "${FILESDIR}"/${P} pinentry.eselect || die
}

View File

@ -0,0 +1,23 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-pinentry/eselect-pinentry-0.4.ebuild,v 1.4 2013/01/14 13:21:45 ssuominen Exp $
EAPI=5
DESCRIPTION="Manage /usr/bin/pinentry symlink"
HOMEPAGE="http://www.gentoo.org/proj/en/eselect/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE=""
RDEPEND=">=app-admin/eselect-lib-bin-symlink-0.1.1"
S=${FILESDIR}
src_install() {
insinto /usr/share/eselect/modules
newins pinentry.eselect-${PV} pinentry.eselect
}

View File

@ -0,0 +1,147 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id: eselect-pinentry-0.3,v 1.1 2010/10/21 19:31:11 ssuominen Exp $
# Based on eselect-sh by Michał Górny
DESCRIPTION="Manage /usr/bin/pinentry symlink"
MAINTAINER="ssuominen@gentoo.org"
VERSION="0.2"
## Functions ##
# find a list of pinentry symlink targets, best first
find_targets() {
local t
for t in \
pinentry-qt \
pinentry-gtk-2 \
pinentry-qt4 \
pinentry-curses \
; do
if [[ -x ${EROOT}/usr/bin/${t} ]]; then
echo ${t}
fi
done
}
# set the pinentry symlink
set_symlinks() {
local target="${1}" targets
[[ ! -L ${EROOT}/usr/bin/pinentry && -e ${EROOT}/usr/bin/pinentry ]] && \
die -q "/usr/bin/pinentry is not a symlink!"
if is_number "${target}" && [[ ${target} -ge 1 ]]; then
targets=( $(find_targets) )
# If no targets are found, remove the symlink and exit
if [[ -L ${EROOT}/usr/bin/pinentry && -z ${targets} ]]; then
rm -f "${EROOT}"/usr/bin/pinentry
return
fi
target=${targets[target-1]}
fi
if [[ -x ${EROOT}/usr/bin/${target} ]]; then
local tmpf="${EROOT}"/usr/bin/pinentry.new
# we could use 'ln -f' to directly replace the symlink
# but 'mv' is an atomic operation so it should be more fault-proof
ln -s "${target}" "${tmpf}" || \
die -q "Unable to create temporary symlink"
if ! mv "${tmpf}" "${EROOT}"/usr/bin/pinentry; then
rm -f "${tmpf}" # cleanup
die -q "Unable to replace /usr/bin/pinentry symlink with ${target}"
fi
else
die -q "Target '${target}' doesn't appear to be valid!"
fi
}
### show action ###
describe_show() {
echo "Show the current pinentry implementation"
}
do_show() {
[[ -z ${@} ]] || die -q "Too many parameters"
write_list_start "Current pinentry implementation:"
if [[ -L ${EROOT}/usr/bin/pinentry ]]; then
write_kv_list_entry "$(basename $(readlink ${EROOT}/usr/bin/pinentry))" ""
elif [[ -e ${EROOT}/usr/bin/pinentry ]]; then
write_kv_list_entry "(not a symlink)" ""
else
write_kv_list_entry "(unset)" ""
fi
}
### list action ###
describe_list() {
echo "List available pinentry implementations"
}
do_list() {
[[ -z ${@} ]] || die -q "Too many parameters"
local i targets
targets=( $(find_targets) )
if [[ -n ${targets[@]} ]]; then
for (( i = 0; i < ${#targets[@]}; i++ )) ; do
[[ ${targets[${i}]} == $(basename $(readlink ${EROOT}/usr/bin/pinentry)) ]] && \
targets[${i}]="${targets[${i}]} $(highlight '*')"
done
write_list_start "Available pinentry implementations:"
write_numbered_list "${targets[@]}"
else
write_kv_list_entry "(none found)" ""
fi
}
### set action ###
describe_set() {
echo "Set a new pinentry implementation"
}
describe_set_options() {
echo "target : Target name or number (from 'list' action)"
}
describe_set_parameters() {
echo "<target>"
}
do_set() {
if [[ -z ${1} ]]; then
die -q "Not enough parameters"
elif [[ -n ${2} ]]; then
die -q "Too many parameters"
else
set_symlinks "${1}"
fi
}
### update action ###
describe_update() {
echo "Automatically update the pinentry implementation"
}
describe_update_options() {
echo "ifunset : Do not override existing implementation"
}
do_update() {
[[ -z ${1} || ( -z ${2} && ( ${1} == ifunset || ${1} == '--if-unset' ) ) ]] || \
die -q "Usage error"
[[ ( ${1} == ifunset || ${1} == '--if-unset' ) && -L ${EROOT}/usr/bin/pinentry && -x ${EROOT}/usr/bin/pinentry ]] && \
return
set_symlinks 1
}

View File

@ -0,0 +1,13 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id: pinentry.eselect-0.4,v 1.4 2013/01/15 20:59:38 ssuominen Exp $
DESCRIPTION="Manage /usr/bin/pinentry implementation"
MAINTAINER="ssuominen@gentoo.org"
VERSION="0.4"
SYMLINK_PATH=/usr/bin/pinentry
SYMLINK_TARGETS=( pinentry-qt pinentry-gtk-2 pinentry-qt4 pinentry-curses )
SYMLINK_DESCRIPTION='pinentry binary'
inherit bin-symlink

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>crypto</herd>
</pkgmetadata>