X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=gdm-polkit.patch;h=f48d4513e27b9e055d28658b2a89bfefb6c19f30;hb=b9b76498c31f2e82abca5a384a762ebe73e7a0e8;hp=8a642c14e9889ad525119e6b8231d81d7dae737f;hpb=6c304bdfdf94d094e55a8a525f580f94eac75f6d;p=packages%2Fgdm.git diff --git a/gdm-polkit.patch b/gdm-polkit.patch index 8a642c1..f48d451 100644 --- a/gdm-polkit.patch +++ b/gdm-polkit.patch @@ -5,9 +5,99 @@ Subject: [PATCH 1/2] Add PolicyKit support to GDM settings D-Bus interface Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/395299 Upstream: http://bugzilla.gnome.org/show_bug.cgi?id=587750 -diff -Nur -x '*.orig' -x '*~' gdm-2.27.4/common/gdm-settings.c gdm-2.27.4.new/common/gdm-settings.c ---- gdm-2.27.4/common/gdm-settings.c 2009-05-19 16:18:12.000000000 +0100 -+++ gdm-2.27.4.new/common/gdm-settings.c 2009-08-07 09:25:34.000000000 +0100 +--- gdm-3.1.90/data/Makefile.am.wiget 2011-08-31 02:04:37.000000000 +0200 ++++ gdm-3.1.90/data/Makefile.am 2011-09-05 21:46:13.070224232 +0200 +@@ -45,6 +45,8 @@ schemasdir = $(pkgdatadir) + schemas_in_files = gdm.schemas.in + schemas_DATA = $(schemas_in_files:.schemas.in=.schemas) + ++@INTLTOOL_POLICY_RULE@ ++ + gdm.schemas.in: $(srcdir)/gdm.schemas.in.in + sed -e 's,[@]GDMPREFETCHCMD[@],$(GDMPREFETCHCMD),g' \ + -e 's,[@]GDM_CUSTOM_CONF[@],$(GDM_CUSTOM_CONF),g' \ +@@ -84,11 +86,18 @@ localealias_DATA = locale.alias + sessiondir = $(datadir)/gnome-session/sessions + session_DATA = gdm-fallback.session gdm-shell.session + ++polkitdir = $(datadir)/polkit-1/actions ++polkit_in_files = gdm.policy.in ++polkit_DATA = $(polkit_in_files:.policy.in=.policy) ++check: ++ $(POLKIT_POLICY_FILE_VALIDATE) $(polkit_DATA) ++ + EXTRA_DIST = \ + $(schemas_in_files) \ + $(schemas_DATA) \ + $(dbusconf_in_files) \ + $(localealias_DATA) \ ++ $(polkit_in_files) \ + gdm.schemas.in.in \ + gdm.conf-custom.in \ + Xsession.in \ +@@ -118,6 +127,7 @@ CLEANFILES = \ + + DISTCLEANFILES = \ + $(dbusconf_DATA) \ ++ $(polkit_DATA) \ + gdm-shell.session \ + gdm.schemas \ + dconf-override-db \ +--- gdm-3.1.90/data/gdm.conf.in.wiget 2011-08-09 22:08:42.000000000 +0200 ++++ gdm-3.1.90/data/gdm.conf.in 2011-09-05 21:44:39.831640332 +0200 +@@ -34,8 +34,6 @@ + + +- + +@@ -44,6 +42,10 @@ + + ++ ++ ++ + +--- gdm-3.1.90/data/gdm.policy.in.wiget 2011-09-05 21:44:39.831640332 +0200 ++++ gdm-3.1.90/data/gdm.policy.in 2011-09-05 21:44:39.831640332 +0200 +@@ -0,0 +1,18 @@ ++ ++ ++ ++ The GNOME Project ++ http://www.gnome.org/ ++ gdm ++ ++ ++ Change login screen configuration ++ Privileges are required to change the login screen configuration. ++ ++ no ++ auth_admin_keep ++ ++ ++ +--- gdm-3.1.90/common/Makefile.am.wiget 2011-08-09 22:08:42.000000000 +0200 ++++ gdm-3.1.90/common/Makefile.am 2011-09-05 21:44:39.831640332 +0200 +@@ -99,6 +99,7 @@ libgdmcommon_la_CFLAGS = \ + $(NULL) + + libgdmcommon_la_LIBADD = \ ++ $(COMMON_LIBS) \ + $(NULL) + + libgdmcommon_la_LDFLAGS = \ +--- gdm-3.1.90/common/gdm-settings.c.wiget 2011-08-09 22:08:42.000000000 +0200 ++++ gdm-3.1.90/common/gdm-settings.c 2011-09-05 21:44:39.831640332 +0200 @@ -36,6 +36,7 @@ #define DBUS_API_SUBJECT_TO_CHANGE #include @@ -16,7 +106,7 @@ diff -Nur -x '*.orig' -x '*~' gdm-2.27.4/common/gdm-settings.c gdm-2.27.4.new/co #include "gdm-settings.h" #include "gdm-settings-glue.h" -@@ -110,6 +111,90 @@ +@@ -108,6 +109,90 @@ gdm_settings_get_value (GdmSettings *set return res; } @@ -107,7 +197,7 @@ diff -Nur -x '*.orig' -x '*~' gdm-2.27.4/common/gdm-settings.c gdm-2.27.4.new/co /* dbus-send --system --print-reply --dest=org.gnome.DisplayManager /org/gnome/DisplayManager/Settings org.gnome.DisplayManager.Settings.SetValue string:"xdmcp/Enable" string:"false" */ -@@ -118,26 +203,30 @@ +@@ -116,26 +201,30 @@ gboolean gdm_settings_set_value (GdmSettings *settings, const char *key, const char *value, @@ -153,9 +243,23 @@ diff -Nur -x '*.orig' -x '*~' gdm-2.27.4/common/gdm-settings.c gdm-2.27.4.new/co } static gboolean -diff -Nur -x '*.orig' -x '*~' gdm-2.27.4/common/gdm-settings.h gdm-2.27.4.new/common/gdm-settings.h ---- gdm-2.27.4/common/gdm-settings.h 2009-05-19 16:18:12.000000000 +0100 -+++ gdm-2.27.4.new/common/gdm-settings.h 2009-08-07 09:25:34.000000000 +0100 +--- gdm-3.1.90/common/gdm-settings.xml.wiget 2011-04-25 17:55:04.000000000 +0200 ++++ gdm-3.1.90/common/gdm-settings.xml 2011-09-05 21:44:39.831640332 +0200 +@@ -5,7 +5,12 @@ + + + ++ ++ ++ ++ + ++ + + + +--- gdm-3.1.90/common/gdm-settings.h.wiget 2011-04-25 17:55:04.000000000 +0200 ++++ gdm-3.1.90/common/gdm-settings.h 2011-09-05 21:44:39.831640332 +0200 @@ -23,6 +23,7 @@ #define __GDM_SETTINGS_H @@ -164,7 +268,7 @@ diff -Nur -x '*.orig' -x '*~' gdm-2.27.4/common/gdm-settings.h gdm-2.27.4.new/co G_BEGIN_DECLS -@@ -70,10 +71,12 @@ +@@ -70,10 +71,12 @@ gboolean gdm_settings_get_val const char *key, char **value, GError **error); @@ -178,34 +282,17 @@ diff -Nur -x '*.orig' -x '*~' gdm-2.27.4/common/gdm-settings.h gdm-2.27.4.new/co G_END_DECLS -diff -Nur -x '*.orig' -x '*~' gdm-2.27.4/common/gdm-settings.xml gdm-2.27.4.new/common/gdm-settings.xml ---- gdm-2.27.4/common/gdm-settings.xml 2009-05-19 16:18:12.000000000 +0100 -+++ gdm-2.27.4.new/common/gdm-settings.xml 2009-08-07 09:25:34.000000000 +0100 -@@ -5,7 +5,12 @@ - - - -+ -+ -+ -+ - -+ - - - -diff -Nur -x '*.orig' -x '*~' gdm-2.27.4/configure.ac gdm-2.27.4.new/configure.ac ---- gdm-2.27.4/configure.ac 2009-08-07 09:25:33.000000000 +0100 -+++ gdm-2.27.4.new/configure.ac 2009-08-07 09:25:34.000000000 +0100 -@@ -40,6 +40,7 @@ +--- gdm-3.1.90/configure.ac.wiget 2011-08-30 20:24:43.000000000 +0200 ++++ gdm-3.1.90/configure.ac 2011-09-05 21:45:16.999745584 +0200 +@@ -56,6 +56,7 @@ dnl - Dependencies dnl --------------------------------------------------------------------------- DBUS_GLIB_REQUIRED_VERSION=0.74 +POLKIT_GOBJECT_REQUIRED_VERSION=0.92 - GLIB_REQUIRED_VERSION=2.15.4 - GTK_REQUIRED_VERSION=2.10.0 + GLIB_REQUIRED_VERSION=2.29.3 + GTK_REQUIRED_VERSION=2.91.1 PANGO_REQUIRED_VERSION=1.3.0 -@@ -59,6 +60,7 @@ +@@ -78,6 +79,7 @@ AC_SUBST(GTHREAD_LIBS) PKG_CHECK_MODULES(COMMON, dbus-glib-1 >= $DBUS_GLIB_REQUIRED_VERSION @@ -213,106 +300,11 @@ diff -Nur -x '*.orig' -x '*~' gdm-2.27.4/configure.ac gdm-2.27.4.new/configure.a gobject-2.0 >= $GLIB_REQUIRED_VERSION gio-2.0 >= $GLIB_REQUIRED_VERSION ) -@@ -67,6 +69,7 @@ +@@ -86,6 +88,7 @@ AC_SUBST(COMMON_LIBS) PKG_CHECK_MODULES(DAEMON, dbus-glib-1 >= $DBUS_GLIB_REQUIRED_VERSION + polkit-gobject-1 >= $POLKIT_GOBJECT_REQUIRED_VERSION gobject-2.0 >= $GLIB_REQUIRED_VERSION - hal - ) -diff -Nur -x '*.orig' -x '*~' gdm-2.27.4/data/gdm.conf.in gdm-2.27.4.new/data/gdm.conf.in ---- gdm-2.27.4/data/gdm.conf.in 2009-07-17 20:38:19.000000000 +0100 -+++ gdm-2.27.4.new/data/gdm.conf.in 2009-08-07 09:25:34.000000000 +0100 -@@ -34,8 +34,6 @@ - - -- - -@@ -44,6 +42,10 @@ - - -+ -+ -+ - -diff -Nur -x '*.orig' -x '*~' gdm-2.27.4/data/gdm.policy.in gdm-2.27.4.new/data/gdm.policy.in ---- gdm-2.27.4/data/gdm.policy.in 1970-01-01 01:00:00.000000000 +0100 -+++ gdm-2.27.4.new/data/gdm.policy.in 2009-08-07 09:25:34.000000000 +0100 -@@ -0,0 +1,18 @@ -+ -+ -+ -+ The GNOME Project -+ http://www.gnome.org/ -+ gdm -+ -+ -+ Change login screen configuration -+ Privileges are required to change the login screen configuration. -+ -+ no -+ auth_admin_keep -+ -+ -+ -diff -Nur -x '*.orig' -x '*~' gdm-2.27.4/data/Makefile.am gdm-2.27.4.new/data/Makefile.am ---- gdm-2.27.4/data/Makefile.am 2009-05-19 16:18:12.000000000 +0100 -+++ gdm-2.27.4.new/data/Makefile.am 2009-08-07 09:25:34.000000000 +0100 -@@ -44,6 +44,8 @@ - schemas_in_files = gdm.schemas.in - schemas_DATA = $(schemas_in_files:.schemas.in=.schemas) - -+@INTLTOOL_POLICY_RULE@ -+ - gdm.schemas.in: $(srcdir)/gdm.schemas.in.in - sed -e 's,[@]GDMPREFETCHCMD[@],$(GDMPREFETCHCMD),g' \ - -e 's,[@]GDM_CUSTOM_CONF[@],$(GDM_CUSTOM_CONF),g' \ -@@ -73,10 +75,17 @@ - -e 's,[@]sbindir[@],$(sbindir),g' \ - <$(srcdir)/gdm.schemas.in.in >gdm.schemas.in - -+polkitdir = $(datadir)/polkit-1/actions -+polkit_in_files = gdm.policy.in -+polkit_DATA = $(polkit_in_files:.policy.in=.policy) -+check: -+ $(POLKIT_POLICY_FILE_VALIDATE) $(polkit_DATA) -+ - EXTRA_DIST = \ - $(schemas_in_files) \ - $(schemas_DATA) \ - $(dbusconf_in_files) \ -+ $(polkit_in_files) \ - gdm.schemas.in.in \ - gdm.conf-custom.in \ - Xsession.in \ -@@ -99,7 +108,8 @@ - $(NULL) - - DISTCLEANFILES = \ -- $(dbusconf_DATA) \ -+ $(dbusconf_DATA) \ -+ $(polkit_DATA) \ - gdm.schemas \ - $(NULL) - ---- gdm-2.27.4/common/Makefile.am~ 2009-05-19 17:18:12.000000000 +0200 -+++ gdm-2.27.4/common/Makefile.am 2009-08-20 12:17:16.150977333 +0200 -@@ -110,6 +110,7 @@ - $(NULL) - - libgdmcommon_la_LIBADD = \ -+ $(COMMON_LIBS) \ - $(NULL) - - libgdmcommon_la_LDFLAGS = \ + gio-2.0 >= $GLIB_REQUIRED_VERSION + accountsservice >= $ACCOUNTS_SERVICE_REQUIRED_VERSION