diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2013-03-07 08:34:55 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2013-03-07 08:34:55 +0000 |
commit | 55dc28d8f7c1cd25c2bb38fe535a6633ac2870fd (patch) | |
tree | 7b17e68f7e6499f875ee349a807cce42339f1b0b /gnome-base | |
parent | Clean up old revision. (diff) | |
download | gentoo-2-55dc28d8f7c1cd25c2bb38fe535a6633ac2870fd.tar.gz gentoo-2-55dc28d8f7c1cd25c2bb38fe535a6633ac2870fd.tar.bz2 gentoo-2-55dc28d8f7c1cd25c2bb38fe535a6633ac2870fd.zip |
Clean up old revision.
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key C6085806)
Diffstat (limited to 'gnome-base')
4 files changed, 7 insertions, 235 deletions
diff --git a/gnome-base/gnome-keyring/ChangeLog b/gnome-base/gnome-keyring/ChangeLog index 68821ea62dec..9dbc1a9f8260 100644 --- a/gnome-base/gnome-keyring/ChangeLog +++ b/gnome-base/gnome-keyring/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for gnome-base/gnome-keyring # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-keyring/ChangeLog,v 1.227 2013/02/25 09:18:12 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-keyring/ChangeLog,v 1.228 2013/03/07 08:34:55 eva Exp $ + + 07 Mar 2013; Gilles Dartiguelongue <eva@gentoo.org> + -gnome-keyring-3.4.1-r1.ebuild, + -files/gnome-keyring-3.4.1-gpg-cache-method-1.patch, + -files/gnome-keyring-3.4.1-gpg-cache-method-2.patch: + Clean up old revision. 25 Feb 2013; Zac Medico <zmedico@gentoo.org> gnome-keyring-3.6.2.ebuild: Add ~arm-linux keyword. diff --git a/gnome-base/gnome-keyring/files/gnome-keyring-3.4.1-gpg-cache-method-1.patch b/gnome-base/gnome-keyring/files/gnome-keyring-3.4.1-gpg-cache-method-1.patch deleted file mode 100644 index 330d25bf0508..000000000000 --- a/gnome-base/gnome-keyring/files/gnome-keyring-3.4.1-gpg-cache-method-1.patch +++ /dev/null @@ -1,99 +0,0 @@ -From 51606f299e5ee9d48096db0a5957efe26cbf7cc3 Mon Sep 17 00:00:00 2001 -From: Stef Walter <stefw@gnome.org> -Date: Wed, 8 Aug 2012 06:06:58 +0200 -Subject: [PATCH] gpg-agent: Hook up the TTL cache option - - * So that when the gsettings gpg-cache-method is 'idle' or 'timeout' - we use gpg-cache-ttl to control how long the passphrase is cached - for. - * This is a regression from 3.3.x - -https://bugzilla.gnome.org/show_bug.cgi?id=681081 ---- - daemon/gpg-agent/gkd-gpg-agent-ops.c | 40 ++++++++++++++++++++++-------------- - 1 file changed, 25 insertions(+), 15 deletions(-) - -diff --git a/daemon/gpg-agent/gkd-gpg-agent-ops.c b/daemon/gpg-agent/gkd-gpg-agent-ops.c -index a0e8731..c8414fe 100644 ---- a/daemon/gpg-agent/gkd-gpg-agent-ops.c -+++ b/daemon/gpg-agent/gkd-gpg-agent-ops.c -@@ -322,17 +322,6 @@ load_unlock_options (GcrPrompt *prompt) - g_free (method); - } - --static void --save_unlock_options (GcrPrompt *prompt) --{ -- GSettings *settings; -- -- settings = gkd_gpg_agent_settings (); -- -- if (gcr_prompt_get_choice_chosen (prompt)) -- g_settings_set_string (settings, "gpg-cache-method", GCR_UNLOCK_OPTION_ALWAYS); --} -- - static GcrPrompt * - open_password_prompt (GckSession *session, - const gchar *keyid, -@@ -405,11 +394,14 @@ do_get_password (GckSession *session, const gchar *keyid, const gchar *errmsg, - const gchar *prompt_text, const gchar *description, gboolean confirm) - { - GckBuilder builder = GCK_BUILDER_INIT; -+ GSettings *settings; - GckAttributes *attrs; - gchar *password = NULL; - GcrPrompt *prompt; - gboolean chosen; - GError *error = NULL; -+ gint lifetime; -+ gchar *method; - - g_assert (GCK_IS_SESSION (session)); - -@@ -430,21 +422,39 @@ do_get_password (GckSession *session, const gchar *keyid, const gchar *errmsg, - } - - if (password != NULL && keyid != NULL) { -+ settings = gkd_gpg_agent_settings (); - - /* Load up the save options */ - chosen = gcr_prompt_get_choice_chosen (prompt); - -- if (chosen) -+ if (chosen) { -+ g_settings_set_string (settings, "gpg-cache-method", GCR_UNLOCK_OPTION_ALWAYS); - gck_builder_add_string (&builder, CKA_G_COLLECTION, "login"); -- else -+ -+ } else { -+ method = g_settings_get_string (settings, "gpg-cache-method"); -+ lifetime = g_settings_get_int (settings, "gpg-cache-ttl"); -+ -+ if (g_strcmp0 (method, GCR_UNLOCK_OPTION_IDLE) == 0) { -+ gck_builder_add_boolean (&builder, CKA_GNOME_TRANSIENT, TRUE); -+ gck_builder_add_ulong (&builder, CKA_G_DESTRUCT_IDLE, lifetime); -+ -+ } else if (g_strcmp0 (method, GCR_UNLOCK_OPTION_TIMEOUT) == 0) { -+ gck_builder_add_boolean (&builder, CKA_GNOME_TRANSIENT, TRUE); -+ gck_builder_add_ulong (&builder, CKA_G_DESTRUCT_AFTER, lifetime); -+ -+ } else if (g_strcmp0 (method, GCR_UNLOCK_OPTION_SESSION)){ -+ g_message ("Unsupported gpg-cache-method setting: %s", method); -+ } -+ - gck_builder_add_string (&builder, CKA_G_COLLECTION, "session"); -+ g_free (method); -+ } - - /* Now actually save the password */ - attrs = gck_attributes_ref_sink (gck_builder_end (&builder)); - do_save_password (session, keyid, description, password, attrs); - gck_attributes_unref (attrs); -- -- save_unlock_options (prompt); - } - - g_clear_object (&prompt); --- -1.7.12.4 - diff --git a/gnome-base/gnome-keyring/files/gnome-keyring-3.4.1-gpg-cache-method-2.patch b/gnome-base/gnome-keyring/files/gnome-keyring-3.4.1-gpg-cache-method-2.patch deleted file mode 100644 index e38f45d320c1..000000000000 --- a/gnome-base/gnome-keyring/files/gnome-keyring-3.4.1-gpg-cache-method-2.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 5dff623470b859e332dbe12afb0dc57b292832d2 Mon Sep 17 00:00:00 2001 -From: Stef Walter <stefw@gnome.org> -Date: Wed, 8 Aug 2012 15:08:22 +0200 -Subject: [PATCH] secret-store: Mark a secret item as 'used' when accessed - - * This makes the gpg-agent idle feature work correctly - -https://bugzilla.gnome.org/show_bug.cgi?id=681081 ---- - pkcs11/secret-store/gkm-secret-item.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/pkcs11/secret-store/gkm-secret-item.c b/pkcs11/secret-store/gkm-secret-item.c -index d03c4a8..15791a9 100644 ---- a/pkcs11/secret-store/gkm-secret-item.c -+++ b/pkcs11/secret-store/gkm-secret-item.c -@@ -224,6 +224,7 @@ gkm_secret_item_real_get_attribute (GkmObject *base, GkmSession *session, CK_ATT - identifier = gkm_secret_object_get_identifier (GKM_SECRET_OBJECT (self)); - secret = gkm_secret_data_get_raw (sdata, identifier, &n_secret); - rv = gkm_attribute_set_data (attr, secret, n_secret); -+ gkm_object_mark_used (base); - g_object_unref (sdata); - return rv; - --- -1.7.12.4 - diff --git a/gnome-base/gnome-keyring/gnome-keyring-3.4.1-r1.ebuild b/gnome-base/gnome-keyring/gnome-keyring-3.4.1-r1.ebuild deleted file mode 100644 index 7f333abbd481..000000000000 --- a/gnome-base/gnome-keyring/gnome-keyring-3.4.1-r1.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-keyring/gnome-keyring-3.4.1-r1.ebuild,v 1.2 2012/12/17 04:45:41 tetromino Exp $ - -EAPI="4" -GCONF_DEBUG="no" -GNOME2_LA_PUNT="yes" - -inherit eutils gnome2 pam versionator virtualx - -DESCRIPTION="Password and keyring managing daemon" -HOMEPAGE="http://live.gnome.org/GnomeKeyring" - -LICENSE="GPL-2+ LGPL-2+" -SLOT="0" -IUSE="+caps debug pam selinux" -KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris" - -RDEPEND=">=app-crypt/gcr-3.3.4 - >=dev-libs/glib-2.28:2 - >=x11-libs/gtk+-3.0:3 - app-misc/ca-certificates - >=dev-libs/libgcrypt-1.2.2 - >=sys-apps/dbus-1.0 - caps? ( sys-libs/libcap-ng ) - pam? ( virtual/pam ) -" -DEPEND="${RDEPEND} - >=dev-util/intltool-0.35 - sys-devel/gettext - virtual/pkgconfig" -PDEPEND=">=gnome-base/libgnome-keyring-3.1.92" -# eautoreconf needs: -# >=dev-util/gtk-doc-am-1.9 -# gtk-doc-am is not needed otherwise (no gtk-docs are installed) - -# FIXME: tests are very flaky and write to /tmp (instead of TMPDIR) -RESTRICT="test" - -src_prepare() { - DOCS="AUTHORS ChangeLog NEWS README" - G2CONF="${G2CONF} - $(use_enable debug) - $(use_with caps libcap-ng) - $(use_enable pam) - $(use_with pam pam-dir $(getpam_mod_dir)) - $(use_enable selinux) - --with-root-certs=${EPREFIX}/etc/ssl/certs/ - --with-ca-certificates=${EPREFIX}/etc/ssl/certs/ca-certificates.crt - --enable-ssh-agent - --enable-gpg-agent" - # Bug #436392, CVE-2012-3466; fixed in 3.6 - epatch "${FILESDIR}/${P}-gpg-cache-method-"{1,2}.patch - gnome2_src_prepare -} - -src_test() { - unset DBUS_SESSION_BUS_ADDRESS - Xemake check -} - -pkg_postinst() { - use caps && fcaps 0:0 755 cap_ipc_lock "${ROOT}"/usr/bin/gnome-keyring-daemon - - gnome2_pkg_postinst -} - -# borrowed from GSoC2010_Gentoo_Capabilities by constanze and Flameeyes -# @FUNCTION: fcaps -# @USAGE: fcaps {uid:gid} {file-mode} {cap1[,cap2,...]} {file} -# @RETURN: 0 if all okay; non-zero if failure and fallback -# @DESCRIPTION: -# fcaps sets the specified capabilities in the effective and permitted set of -# the given file. In case of failure fcaps sets the given file-mode. -# Requires versionator.eclass -fcaps() { - local uid_gid=$1 - local perms=$2 - local capset=$3 - local path=$4 - local res - - chmod $perms $path && \ - chown $uid_gid $path - res=$? - - use caps || return $res - - #set the capability - setcap "$capset=ep" "$path" &> /dev/null - #check if the capability got set correctly - setcap -v "$capset=ep" "$path" &> /dev/null - res=$? - - if [ $res -ne 0 ]; then - ewarn "Failed to set capabilities. Probable reason is missing kernel support." - ewarn "Your kernel must have <FS>_FS_SECURITY enabled (e.g. EXT4_FS_SECURITY)" - ewarn "where <FS> is the filesystem to store ${path}" - if ! version_is_at_least 2.6.33 "$(uname -r)"; then - ewarn "For kernel 2.6.32 or older, you will also need to enable" - ewarn "SECURITY_FILE_CAPABILITIES." - fi - ewarn - ewarn "Falling back to suid now..." - chmod u+s ${path} - fi - return $res -} |