summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@fedoraproject.org>2008-01-16 16:16:53 +0000
committerMatthias Clasen <mclasen@fedoraproject.org>2008-01-16 16:16:53 +0000
commit4f11e7cfeb86aaa47a5c9827d59153f5a8fcdc78 (patch)
tree360d420a095abbde22df6d4b86815def5b4a2f75
parent4c266738a5c2e52f112a7d380c8f818c7677d40d (diff)
downloadgnome-panel-4f11e7cfeb86aaa47a5c9827d59153f5a8fcdc78.tar.gz
gnome-panel-4f11e7cfeb86aaa47a5c9827d59153f5a8fcdc78.tar.xz
gnome-panel-4f11e7cfeb86aaa47a5c9827d59153f5a8fcdc78.zip
-rw-r--r--glue.patch130
1 files changed, 130 insertions, 0 deletions
diff --git a/glue.patch b/glue.patch
new file mode 100644
index 0000000..dd5aac7
--- /dev/null
+++ b/glue.patch
@@ -0,0 +1,130 @@
+diff -up gnome-panel-2.21.5/applets/clock/gnome-clock-applet-mechanism.policy.glue gnome-panel-2.21.5/applets/clock/gnome-clock-applet-mechanism.policy
+--- gnome-panel-2.21.5/applets/clock/gnome-clock-applet-mechanism.policy.glue 2008-01-16 10:57:15.000000000 -0500
++++ gnome-panel-2.21.5/applets/clock/gnome-clock-applet-mechanism.policy 2008-01-16 10:56:56.000000000 -0500
+@@ -0,0 +1,37 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<!DOCTYPE policyconfig PUBLIC
++ "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
++ "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
++
++<!-- needs i18n work -->
++
++<policyconfig>
++
++ <action id="org.gnome.clockapplet.mechanism.settimezone">
++ <description>Change system time zone</description>
++ <message>Changing the system time zone requires privileges.</message>
++ <defaults>
++ <allow_inactive>no</allow_inactive>
++ <allow_active>auth_self_keep_always</allow_active>
++ </defaults>
++ </action>
++
++ <action id="org.gnome.clockapplet.mechanism.settime">
++ <description>Change system time</description>
++ <message>Changing the system time requires privileges.</message>
++ <defaults>
++ <allow_inactive>no</allow_inactive>
++ <allow_active>auth_self_keep_always</allow_active>
++ </defaults>
++ </action>
++
++ <action id="org.gnome.clockapplet.mechanism.configurehwclock">
++ <description>Configure hardware clock</description>
++ <message>Configuring the hardware clock requires privileges.</message>
++ <defaults>
++ <allow_inactive>no</allow_inactive>
++ <allow_active>auth_self_keep_always</allow_active>
++ </defaults>
++ </action>
++
++</policyconfig>
+diff -up gnome-panel-2.21.5/applets/clock/Makefile.am.glue gnome-panel-2.21.5/applets/clock/Makefile.am
+--- gnome-panel-2.21.5/applets/clock/Makefile.am.glue 2008-01-14 18:05:22.000000000 -0500
++++ gnome-panel-2.21.5/applets/clock/Makefile.am 2008-01-16 10:54:37.000000000 -0500
+@@ -138,7 +138,7 @@ gnome_clock_applet_mechanism_SOURCES =
+ gnome-clock-applet-mechanism-main.c
+
+ if HAVE_POLKIT
+-BUILT_SOURCES += gnome-clock-applet-mechanism.h
++BUILT_SOURCES += gnome-clock-applet-mechanism-glue.h
+ endif
+
+ gnome_clock_applet_mechanism_INCLUDES = \
+diff -up gnome-panel-2.21.5/applets/clock/Makefile.in.glue gnome-panel-2.21.5/applets/clock/Makefile.in
+--- gnome-panel-2.21.5/applets/clock/Makefile.in.glue 2008-01-14 18:18:16.000000000 -0500
++++ gnome-panel-2.21.5/applets/clock/Makefile.in 2008-01-16 10:54:43.000000000 -0500
+@@ -34,7 +34,7 @@ PRE_UNINSTALL = :
+ POST_UNINSTALL = :
+ build_triplet = @build@
+ host_triplet = @host@
+-@HAVE_POLKIT_TRUE@am__append_1 = gnome-clock-applet-mechanism.h
++@HAVE_POLKIT_TRUE@am__append_1 = gnome-clock-applet-mechanism-glue.h
+ @CLOCK_INPROCESS_FALSE@libexec_PROGRAMS = clock-applet$(EXEEXT) \
+ @CLOCK_INPROCESS_FALSE@ $(am__EXEEXT_1)
+ @CLOCK_INPROCESS_TRUE@libexec_PROGRAMS = $(am__EXEEXT_1)
+@@ -43,6 +43,7 @@ subdir = applets/clock
+ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+ am__aclocal_m4_deps = $(top_srcdir)/m4/d-type.m4 \
++ $(top_srcdir)/m4/gnome-compiler-flags.m4 \
+ $(top_srcdir)/m4/gnome-doc-utils.m4 \
+ $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/intltool.m4 \
+ $(top_srcdir)/configure.in
+@@ -80,7 +81,7 @@ am__libclock_applet_la_SOURCES_DIST = ca
+ clock-zonetable.c clock-zonetable.h gweather-xml.c \
+ gweather-xml.h clock-marshallers.c clock-marshallers.h \
+ clock-typebuiltins.c clock-typebuiltins.h \
+- gnome-clock-applet-mechanism.h calendar-client.c \
++ gnome-clock-applet-mechanism-glue.h calendar-client.c \
+ calendar-client.h calendar-sources.c calendar-sources.h \
+ calendar-debug.h set-timezone-dummy.c set-timezone.h \
+ set-timezone.c
+@@ -132,7 +133,7 @@ am__clock_applet_SOURCES_DIST = calendar
+ clock-zoneinfo.h clock-zonetable.c clock-zonetable.h \
+ gweather-xml.c gweather-xml.h clock-marshallers.c \
+ clock-marshallers.h clock-typebuiltins.c clock-typebuiltins.h \
+- gnome-clock-applet-mechanism.h calendar-client.c \
++ gnome-clock-applet-mechanism-glue.h calendar-client.c \
+ calendar-client.h calendar-sources.c calendar-sources.h \
+ calendar-debug.h set-timezone-dummy.c set-timezone.h \
+ set-timezone.c
+@@ -346,6 +347,7 @@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE
+ RANLIB = @RANLIB@
+ REBUILD = @REBUILD@
+ SCROLLKEEPER_CONFIG = @SCROLLKEEPER_CONFIG@
++SED = @SED@
+ SET_MAKE = @SET_MAKE@
+ SHELL = @SHELL@
+ STRIP = @STRIP@
+diff -up /dev/null gnome-panel-2.21.5/applets/clock/org.gnome.ClockApplet.Mechanism.service.in
+--- /dev/null 2008-01-16 08:23:02.430982355 -0500
++++ gnome-panel-2.21.5/applets/clock/org.gnome.ClockApplet.Mechanism.service.in 2008-01-16 10:54:37.000000000 -0500
+@@ -0,0 +1,4 @@
++[D-BUS Service]
++Name=org.gnome.ClockApplet.Mechanism
++Exec=@LIBEXECDIR@/gnome-clock-applet-mechanism
++User=root
+diff -up /dev/null gnome-panel-2.21.5/applets/clock/org.gnome.ClockApplet.Mechanism.conf
+--- /dev/null 2008-01-16 08:23:02.430982355 -0500
++++ gnome-panel-2.21.5/applets/clock/org.gnome.ClockApplet.Mechanism.conf 2008-01-16 10:54:37.000000000 -0500
+@@ -0,0 +1,19 @@
++<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
++
++<!DOCTYPE busconfig PUBLIC
++ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
++ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
++<busconfig>
++
++ <!-- Only root can own the service -->
++ <policy user="root">
++ <allow own="org.gnome.ClockApplet.Mechanism"/>
++ <allow send_interface="org.gnome.ClockApplet.Mechanism.SetTimezoneInterface"/>
++ </policy>
++
++ <!-- Allow anyone to invoke methods on the interfaces -->
++ <policy context="default">
++ <allow send_interface="org.gnome.ClockApplet.Mechanism.SetTimezoneInterface"/>
++ </policy>
++
++</busconfig>