diff options
author | Alexandre Rostovtsev <tetromino@gentoo.org> | 2011-11-24 08:05:11 +0000 |
---|---|---|
committer | Alexandre Rostovtsev <tetromino@gentoo.org> | 2011-11-24 08:05:11 +0000 |
commit | 9d0349aa6193f41abde435e0431c23a2c79e7dbb (patch) | |
tree | 639945fb54157bbe0fb1e6c8b7f59186ab940bbd /sys-apps/accountsservice | |
parent | add mp4 module wrt #363573; remove old ebuilds (diff) | |
download | gentoo-2-9d0349aa6193f41abde435e0431c23a2c79e7dbb.tar.gz gentoo-2-9d0349aa6193f41abde435e0431c23a2c79e7dbb.tar.bz2 gentoo-2-9d0349aa6193f41abde435e0431c23a2c79e7dbb.zip |
Version bump, drop old. Enable building API docs since they validate now.
(Portage version: 2.2.0_alpha77/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/accountsservice')
-rw-r--r-- | sys-apps/accountsservice/ChangeLog | 13 | ||||
-rw-r--r-- | sys-apps/accountsservice/accountsservice-0.6.15.ebuild (renamed from sys-apps/accountsservice/accountsservice-0.6.13.ebuild) | 41 | ||||
-rw-r--r-- | sys-apps/accountsservice/files/accountsservice-0.6.13-PATH_GDM_CUSTOM.patch | 69 | ||||
-rw-r--r-- | sys-apps/accountsservice/files/accountsservice-0.6.13-SetAutomaticLogin-false.patch | 40 | ||||
-rw-r--r-- | sys-apps/accountsservice/files/accountsservice-0.6.13-etc-passwd-timeout.patch | 52 | ||||
-rw-r--r-- | sys-apps/accountsservice/files/accountsservice-0.6.13-monitor-etc-gdm-custom.conf.patch | 115 |
6 files changed, 26 insertions, 304 deletions
diff --git a/sys-apps/accountsservice/ChangeLog b/sys-apps/accountsservice/ChangeLog index 9f7299ad9eb0..6572e25a9ba2 100644 --- a/sys-apps/accountsservice/ChangeLog +++ b/sys-apps/accountsservice/ChangeLog @@ -1,6 +1,17 @@ # ChangeLog for sys-apps/accountsservice # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/accountsservice/ChangeLog,v 1.3 2011/09/15 14:57:57 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/accountsservice/ChangeLog,v 1.4 2011/11/24 08:05:10 tetromino Exp $ + +*accountsservice-0.6.15 (24 Nov 2011) + + 24 Nov 2011; Alexandre Rostovtsev <tetromino@gentoo.org> + -accountsservice-0.6.13.ebuild, + -files/accountsservice-0.6.13-PATH_GDM_CUSTOM.patch, + -files/accountsservice-0.6.13-SetAutomaticLogin-false.patch, + -files/accountsservice-0.6.13-etc-passwd-timeout.patch, + -files/accountsservice-0.6.13-monitor-etc-gdm-custom.conf.patch, + +accountsservice-0.6.15.ebuild: + Version bump, drop old. Enable building API docs since they validate now. *accountsservice-0.6.14 (15 Sep 2011) diff --git a/sys-apps/accountsservice/accountsservice-0.6.13.ebuild b/sys-apps/accountsservice/accountsservice-0.6.15.ebuild index 73baebc8ab78..056a79573e25 100644 --- a/sys-apps/accountsservice/accountsservice-0.6.13.ebuild +++ b/sys-apps/accountsservice/accountsservice-0.6.15.ebuild @@ -1,12 +1,12 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/accountsservice/accountsservice-0.6.13.ebuild,v 1.2 2011/09/05 19:54:39 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/accountsservice/accountsservice-0.6.15.ebuild,v 1.1 2011/11/24 08:05:10 tetromino Exp $ -EAPI="3" +EAPI="4" GCONF_DEBUG="no" GNOME2_LA_PUNT="yes" -inherit eutils gnome2 systemd +inherit gnome2 systemd DESCRIPTION="D-Bus interfaces for querying and manipulating user account information" HOMEPAGE="http://www.fedoraproject.org/wiki/Features/UserAccountDialog" @@ -15,42 +15,29 @@ SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~arm ~x86" -IUSE="+introspection" +IUSE="doc +introspection" -RDEPEND=" - dev-libs/glib:2 +RDEPEND="dev-libs/glib:2 dev-libs/dbus-glib sys-auth/polkit - introspection? ( >=dev-libs/gobject-introspection-0.9.12 )" DEPEND="${RDEPEND} dev-libs/libxslt dev-util/pkgconfig sys-devel/gettext - >=dev-util/intltool-0.40" - -# Documentaton doesn't validate -RESTRICT="test" + >=dev-util/intltool-0.40 + doc? ( + app-text/docbook-xml-dtd:4.1.2 + app-text/xmlto )" pkg_setup() { - # docbook docs don't validate, disable doc rebuild G2CONF="${G2CONF} --disable-static - --localstatedir=/var - --disable-docbook-docs - --disable-maintainer-mode --disable-more-warnings - $(systemd_with_unitdir) - $(use_enable introspection)" + --localstatedir=${EPREFIX}/var + --docdir=${EPREFIX}/usr/share/doc/${PF} + $(use_enable doc docbook-docs) + $(use_enable introspection) + $(systemd_with_unitdir)" DOCS="AUTHORS NEWS README TODO" } - -src_prepare() { - # Useful patches from upstream git, will be in next release - epatch "${FILESDIR}/${P}-SetAutomaticLogin-false.patch" \ - "${FILESDIR}/${P}-PATH_GDM_CUSTOM.patch" \ - "${FILESDIR}/${P}-monitor-etc-gdm-custom.conf.patch" \ - "${FILESDIR}/${P}-etc-passwd-timeout.patch" - - gnome2_src_prepare -} diff --git a/sys-apps/accountsservice/files/accountsservice-0.6.13-PATH_GDM_CUSTOM.patch b/sys-apps/accountsservice/files/accountsservice-0.6.13-PATH_GDM_CUSTOM.patch deleted file mode 100644 index 8f57cf15b82b..000000000000 --- a/sys-apps/accountsservice/files/accountsservice-0.6.13-PATH_GDM_CUSTOM.patch +++ /dev/null @@ -1,69 +0,0 @@ -From 0c32736980a4f02d4eacf90d145bf937bf29dea6 Mon Sep 17 00:00:00 2001 -From: Vincent Untz <vuntz@gnome.org> -Date: Thu, 21 Jul 2011 16:04:13 -0400 -Subject: [PATCH 2/4] daemon: use PATH_GDM_CUSTOM instead of string literal - -It's better to consolidate references to file path in one -place up top. ---- - src/daemon.c | 13 ++++--------- - 1 files changed, 4 insertions(+), 9 deletions(-) - -diff --git a/src/daemon.c b/src/daemon.c -index f8753d6..eb9aa61 100644 ---- a/src/daemon.c -+++ b/src/daemon.c -@@ -50,6 +50,7 @@ - #define PATH_PASSWD "/etc/passwd" - #define PATH_SHADOW "/etc/shadow" - #define PATH_LOGIN_DEFS "/etc/login.defs" -+#define PATH_GDM_CUSTOM "/etc/gdm/custom.conf" - - #ifndef FALLBACK_MINIMAL_UID - #define FALLBACK_MINIMAL_UID 500 -@@ -1207,15 +1208,12 @@ load_autologin (Daemon *daemon, - GError **error) - { - GKeyFile *keyfile; -- const gchar *filename; - GError *local_error; - gchar *string; - -- filename = "/etc/gdm/custom.conf"; -- - keyfile = g_key_file_new (); - if (!g_key_file_load_from_file (keyfile, -- filename, -+ PATH_GDM_CUSTOM, - G_KEY_FILE_KEEP_COMMENTS, - error)) { - g_key_file_free (keyfile); -@@ -1257,15 +1255,12 @@ save_autologin (Daemon *daemon, - GError **error) - { - GKeyFile *keyfile; -- const gchar *filename; - gchar *data; - gboolean result; - -- filename = "/etc/gdm/custom.conf"; -- - keyfile = g_key_file_new (); - if (!g_key_file_load_from_file (keyfile, -- filename, -+ PATH_GDM_CUSTOM, - G_KEY_FILE_KEEP_COMMENTS, - error)) { - g_key_file_free (keyfile); -@@ -1276,7 +1271,7 @@ save_autologin (Daemon *daemon, - g_key_file_set_string (keyfile, "daemon", "AutomaticLogin", name); - - data = g_key_file_to_data (keyfile, NULL, NULL); -- result = g_file_set_contents (filename, data, -1, error); -+ result = g_file_set_contents (PATH_GDM_CUSTOM, data, -1, error); - - g_key_file_free (keyfile); - g_free (data); --- -1.7.6 - diff --git a/sys-apps/accountsservice/files/accountsservice-0.6.13-SetAutomaticLogin-false.patch b/sys-apps/accountsservice/files/accountsservice-0.6.13-SetAutomaticLogin-false.patch deleted file mode 100644 index 9afafc27410f..000000000000 --- a/sys-apps/accountsservice/files/accountsservice-0.6.13-SetAutomaticLogin-false.patch +++ /dev/null @@ -1,40 +0,0 @@ -From df8e8831131663efc7ca42c4016e445362bee843 Mon Sep 17 00:00:00 2001 -From: Ray Strode <rstrode@redhat.com> -Date: Wed, 20 Jul 2011 10:54:35 -0400 -Subject: [PATCH 1/4] daemon: ignore extraneous SetAutomaticLogin(false) calls - for a user - -Right now, if a user is not configured for automatic login, and -SetAutomaticLogin(false) is called for that user then we disable -automatic login system wide even if someone else is configured -for automatic login. - -This commit changes the semantics of the call such that -SetAutomaticLogin(false) is a no op for users where automatic login -isn't already enabled. - -Spotted by Vincent Untz <vuntz@gnome.org> - -https://bugs.freedesktop.org/show_bug.cgi?id=39402 ---- - src/daemon.c | 4 ++++ - 1 files changed, 4 insertions(+), 0 deletions(-) - -diff --git a/src/daemon.c b/src/daemon.c -index ec319a9..f8753d6 100644 ---- a/src/daemon.c -+++ b/src/daemon.c -@@ -1294,6 +1294,10 @@ daemon_local_set_automatic_login (Daemon *daemon, - return TRUE; - } - -+ if (daemon->priv->autologin != user && !enabled) { -+ return TRUE; -+ } -+ - if (!save_autologin (daemon, user_local_get_user_name (user), enabled, error)) { - return FALSE; - } --- -1.7.6 - diff --git a/sys-apps/accountsservice/files/accountsservice-0.6.13-etc-passwd-timeout.patch b/sys-apps/accountsservice/files/accountsservice-0.6.13-etc-passwd-timeout.patch deleted file mode 100644 index 36e3f5afbadd..000000000000 --- a/sys-apps/accountsservice/files/accountsservice-0.6.13-etc-passwd-timeout.patch +++ /dev/null @@ -1,52 +0,0 @@ -From 4e3fad33442dfd908561960921aad335fad6b5a8 Mon Sep 17 00:00:00 2001 -From: Ray Strode <rstrode@redhat.com> -Date: Thu, 21 Jul 2011 16:09:13 -0400 -Subject: [PATCH 4/4] daemon: call reload_users after timeout on passwd/shadow - changes - -Often the two files are changed in concert, so it makes sense to -wait a bit before doing a heavy reload operation. - -Suggested by Vincent. - -https://bugs.freedesktop.org/show_bug.cgi?id=39413 ---- - src/daemon.c | 15 ++++++++++++++- - 1 files changed, 14 insertions(+), 1 deletions(-) - -diff --git a/src/daemon.c b/src/daemon.c -index 882fb2f..79915a7 100644 ---- a/src/daemon.c -+++ b/src/daemon.c -@@ -492,6 +492,19 @@ reload_autologin_timeout (Daemon *daemon) - } - - static void -+queue_reload_users_soon (Daemon *daemon) -+{ -+ if (daemon->priv->reload_id > 0) { -+ return; -+ } -+ -+ /* we wait half a second or so in case /etc/passwd and -+ * /etc/shadow are changed at the same time, or repeatedly. -+ */ -+ daemon->priv->reload_id = g_timeout_add (500, (GSourceFunc)reload_users_timeout, daemon); -+} -+ -+static void - queue_reload_users (Daemon *daemon) - { - if (daemon->priv->reload_id > 0) { -@@ -523,7 +536,7 @@ on_passwd_monitor_changed (GFileMonitor *monitor, - return; - } - -- reload_users (daemon); -+ queue_reload_users_soon (daemon); - } - - static void --- -1.7.6 - diff --git a/sys-apps/accountsservice/files/accountsservice-0.6.13-monitor-etc-gdm-custom.conf.patch b/sys-apps/accountsservice/files/accountsservice-0.6.13-monitor-etc-gdm-custom.conf.patch deleted file mode 100644 index 0389c7e2c5d5..000000000000 --- a/sys-apps/accountsservice/files/accountsservice-0.6.13-monitor-etc-gdm-custom.conf.patch +++ /dev/null @@ -1,115 +0,0 @@ -From 07ea415a5ea0fc5039c947f967c5683ef0e31201 Mon Sep 17 00:00:00 2001 -From: Vincent Untz <vuntz@gnome.org> -Date: Thu, 21 Jul 2011 08:20:08 +0200 -Subject: [PATCH 3/4] daemon: Monitor /etc/gdm/custom.conf for changes in - autologin config - -We also emit relevant signals when loading the file. - -https://bugs.freedesktop.org/show_bug.cgi?id=39413 ---- - src/daemon.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++---- - 1 files changed, 47 insertions(+), 4 deletions(-) - -diff --git a/src/daemon.c b/src/daemon.c -index eb9aa61..882fb2f 100644 ---- a/src/daemon.c -+++ b/src/daemon.c -@@ -107,6 +107,7 @@ struct DaemonPrivate { - - GFileMonitor *passwd_monitor; - GFileMonitor *shadow_monitor; -+ GFileMonitor *gdm_monitor; - - guint reload_id; - guint autologin_id; -@@ -451,7 +452,7 @@ reload_autologin_timeout (Daemon *daemon) - gboolean enabled; - gchar *name = NULL; - GError *error = NULL; -- User *user; -+ User *user = NULL; - - daemon->priv->autologin_id = 0; - -@@ -463,11 +464,23 @@ reload_autologin_timeout (Daemon *daemon) - return FALSE; - } - -+ if (enabled && name) -+ user = daemon_local_find_user_by_name (daemon, name); -+ -+ if (daemon->priv->autologin != NULL && daemon->priv->autologin != user) { -+ g_object_set (daemon->priv->autologin, "automatic-login", FALSE, NULL); -+ g_signal_emit_by_name (daemon->priv->autologin, "changed", 0); -+ g_object_unref (daemon->priv->autologin); -+ daemon->priv->autologin = NULL; -+ } -+ - if (enabled) { - g_debug ("automatic login is enabled for '%s'\n", name); -- user = daemon_local_find_user_by_name (daemon, name); -- g_object_set (user, "automatic-login", TRUE, NULL); -- daemon->priv->autologin = g_object_ref (user); -+ if (daemon->priv->autologin != user) { -+ g_object_set (user, "automatic-login", TRUE, NULL); -+ daemon->priv->autologin = g_object_ref (user); -+ g_signal_emit_by_name (daemon->priv->autologin, "changed", 0); -+ } - } - else { - g_debug ("automatic login is disabled\n"); -@@ -513,6 +526,21 @@ on_passwd_monitor_changed (GFileMonitor *monitor, - reload_users (daemon); - } - -+static void -+on_gdm_monitor_changed (GFileMonitor *monitor, -+ GFile *file, -+ GFile *other_file, -+ GFileMonitorEvent event_type, -+ Daemon *daemon) -+{ -+ if (event_type != G_FILE_MONITOR_EVENT_CHANGED && -+ event_type != G_FILE_MONITOR_EVENT_CREATED) { -+ return; -+ } -+ -+ queue_reload_autologin (daemon); -+} -+ - static uid_t - get_minimal_uid (void) - { -@@ -603,6 +631,12 @@ daemon_init (Daemon *daemon) - NULL, - &error); - g_object_unref (file); -+ file = g_file_new_for_path (PATH_GDM_CUSTOM); -+ daemon->priv->gdm_monitor = g_file_monitor_file (file, -+ G_FILE_MONITOR_NONE, -+ NULL, -+ &error); -+ g_object_unref (file); - - if (daemon->priv->passwd_monitor != NULL) { - g_signal_connect (daemon->priv->passwd_monitor, -@@ -622,6 +656,15 @@ daemon_init (Daemon *daemon) - g_warning ("Unable to monitor %s: %s", PATH_SHADOW, error->message); - g_error_free (error); - } -+ if (daemon->priv->gdm_monitor != NULL) { -+ g_signal_connect (daemon->priv->gdm_monitor, -+ "changed", -+ G_CALLBACK (on_gdm_monitor_changed), -+ daemon); -+ } else { -+ g_warning ("Unable to monitor %s: %s", PATH_GDM_CUSTOM, error->message); -+ g_error_free (error); -+ } - - queue_reload_users (daemon); - queue_reload_autologin (daemon); --- -1.7.6 - |