]> Frank Brehm's Git Trees - config/bruni/etc.git/commitdiff
committing changes in /etc after emerge run
authorfrank <frank@bruni.home.brehm-online.com>
Sun, 15 Jan 2012 23:55:03 +0000 (00:55 +0100)
committerFrank Brehm <root@bruni.home.brehm-online.com>
Sun, 15 Jan 2012 23:55:03 +0000 (00:55 +0100)
Package changes:
+sys-auth/consolekit-0.4.5-r1

.etckeeper
ConsoleKit/run-session.d/.keep_sys-auth_consolekit-0 [new file with mode: 0644]
ConsoleKit/seats.d/00-primary.seat [new file with mode: 0644]
X11/xinit/xinitrc.d/90-consolekit [new file with mode: 0755]
dbus-1/system.d/ConsoleKit.conf [new file with mode: 0644]
init.d/consolekit [new file with mode: 0755]

index 248f1fe561d01a24d880d11bf83f96df1ae34810..a7091436181b212a3547c85a5d961c321bb9a177 100755 (executable)
@@ -1,5 +1,6 @@
 # Generated by etckeeper.  Do not edit.
 
+mkdir -p './ConsoleKit/run-seat.d'
 mkdir -p './ca-certificates/update.d'
 mkdir -p './polkit-1/localauthority/10-vendor.d'
 mkdir -p './polkit-1/localauthority/20-org.d'
@@ -15,6 +16,12 @@ maybe chmod 0755 '.'
 maybe chmod 0700 './.etckeeper'
 maybe chmod 0644 './.gitignore'
 maybe chmod 0600 './.pwd.lock'
+maybe chmod 0755 './ConsoleKit'
+maybe chmod 0755 './ConsoleKit/run-seat.d'
+maybe chmod 0755 './ConsoleKit/run-session.d'
+maybe chmod 0644 './ConsoleKit/run-session.d/.keep_sys-auth_consolekit-0'
+maybe chmod 0755 './ConsoleKit/seats.d'
+maybe chmod 0644 './ConsoleKit/seats.d/00-primary.seat'
 maybe chmod 0644 './DIR_COLORS'
 maybe chmod 0755 './X11'
 maybe chmod 0755 './X11/mwm'
@@ -22,6 +29,7 @@ maybe chmod 0644 './X11/mwm/system.mwmrc'
 maybe chmod 0755 './X11/xinit'
 maybe chmod 0755 './X11/xinit/xinitrc.d'
 maybe chmod 0755 './X11/xinit/xinitrc.d/80-dbus'
+maybe chmod 0755 './X11/xinit/xinitrc.d/90-consolekit'
 maybe chmod 0600 './aiccu.conf'
 maybe chmod 0755 './bash'
 maybe chmod 0644 './bash/bash_logout'
@@ -96,6 +104,7 @@ maybe chmod 0644 './dbus-1/session.d/.keep_sys-apps_dbus-0'
 maybe chmod 0644 './dbus-1/system.conf'
 maybe chmod 0755 './dbus-1/system.d'
 maybe chmod 0644 './dbus-1/system.d/.keep_sys-apps_dbus-0'
+maybe chmod 0644 './dbus-1/system.d/ConsoleKit.conf'
 maybe chmod 0644 './dbus-1/system.d/org.freedesktop.PolicyKit1.conf'
 maybe chmod 0755 './default'
 maybe chmod 0600 './default/useradd'
@@ -240,6 +249,7 @@ maybe chmod 0755 './init.d'
 maybe chmod 0755 './init.d/aiccu'
 maybe chmod 0755 './init.d/bootmisc'
 maybe chmod 0755 './init.d/consolefont'
+maybe chmod 0755 './init.d/consolekit'
 maybe chmod 0755 './init.d/crypto-loop'
 maybe chmod 0755 './init.d/dbus'
 maybe chmod 0755 './init.d/devfs'
diff --git a/ConsoleKit/run-session.d/.keep_sys-auth_consolekit-0 b/ConsoleKit/run-session.d/.keep_sys-auth_consolekit-0
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/ConsoleKit/seats.d/00-primary.seat b/ConsoleKit/seats.d/00-primary.seat
new file mode 100644 (file)
index 0000000..6e61db4
--- /dev/null
@@ -0,0 +1,5 @@
+[Seat Entry]
+Version=1.0
+Name=Primary seat
+Hidden=false
+Devices=
\ No newline at end of file
diff --git a/X11/xinit/xinitrc.d/90-consolekit b/X11/xinit/xinitrc.d/90-consolekit
new file mode 100755 (executable)
index 0000000..358fc24
--- /dev/null
@@ -0,0 +1,32 @@
+# -*- sh -*-
+# Xsession.d script for ck-launch-session.
+#
+#
+# This file is sourced by Xsession(5), not executed.
+
+CK_LAUNCH_SESSION=/usr/bin/ck-launch-session
+
+is_on_console() {
+       session=$(dbus-send --system --dest=org.freedesktop.ConsoleKit \
+               --type=method_call --print-reply --reply-timeout=2000 \
+               /org/freedesktop/ConsoleKit/Manager \
+               org.freedesktop.ConsoleKit.Manager.GetCurrentSession \
+               | grep path | awk '{print $3}' | sed s/\"//g)
+       x11_display=$(dbus-send --system --dest=org.freedesktop.ConsoleKit \
+               --type=method_call --print-reply --reply-timeout=2000 \
+               $session org.freedesktop.ConsoleKit.Session.GetX11Display \
+               | grep string | awk '{print $2}' | sed s/\"//g)
+
+       if [ -z "$x11_display" ] ; then
+               return 0
+       else
+               return 1
+       fi
+}
+
+# gdm already creates a CK session for us, so do not run the expensive D-Bus
+# calls if we have $GDMSESSION
+if [ -z "$GDMSESSION" ] && [ -x "$CK_LAUNCH_SESSION" ] && \
+ ( [ -z "$XDG_SESSION_COOKIE" ] || is_on_console ) ; then
+    command="$CK_LAUNCH_SESSION $command"
+fi
diff --git a/dbus-1/system.d/ConsoleKit.conf b/dbus-1/system.d/ConsoleKit.conf
new file mode 100644 (file)
index 0000000..948f95f
--- /dev/null
@@ -0,0 +1,147 @@
+<!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.freedesktop.ConsoleKit"/>
+
+    <!-- Allow all methods on interfaces -->
+    <allow send_destination="org.freedesktop.ConsoleKit"/>
+  </policy>
+
+  <!-- Deny all and then allow some methods on interfaces -->
+  <policy context="default">
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.DBus.Introspectable"/>
+    <deny send_destination="org.freedesktop.ConsoleKit" 
+          send_interface="org.freedesktop.ConsoleKit.Manager"/>
+    <deny send_destination="org.freedesktop.ConsoleKit" 
+          send_interface="org.freedesktop.ConsoleKit.Seat"/>
+    <deny send_destination="org.freedesktop.ConsoleKit" 
+          send_interface="org.freedesktop.ConsoleKit.Session"/>
+    <deny send_destination="org.freedesktop.ConsoleKit"
+          send_interface="org.freedesktop.DBus.Properties" />
+
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Manager"
+           send_member="Restart"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Manager"
+           send_member="CanRestart"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Manager"
+           send_member="Stop"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Manager"
+           send_member="CanStop"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Manager"
+           send_member="OpenSession"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Manager"
+           send_member="CloseSession"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Manager"
+           send_member="GetSeats"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Manager"
+           send_member="GetSessions"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Manager"
+           send_member="GetSessionForCookie"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Manager"
+           send_member="GetSessionForUnixProcess"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Manager"
+           send_member="GetCurrentSession"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Manager"
+           send_member="GetSessionsForUnixUser"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Manager"
+           send_member="GetSessionsForUser"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Manager"
+           send_member="GetSystemIdleHint"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Manager"
+           send_member="GetSystemIdleSinceHint"/>
+
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Seat"
+           send_member="GetId"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Seat"
+           send_member="GetSessions"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Seat"
+           send_member="GetDevices"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Seat"
+           send_member="GetActiveSession"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Seat"
+           send_member="CanActivateSessions"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Seat"
+           send_member="ActivateSession"/>
+
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="GetId"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="GetSeatId"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="GetLoginSessionId"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="GetSessionType"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="GetUser"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="GetUnixUser"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="GetX11Display"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="GetX11DisplayDevice"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="GetDisplayDevice"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="GetRemoteHostName"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="IsActive"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="IsLocal"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="GetCreationTime"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="Activate"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="GetIdleHint"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="SetIdleHint"/>
+    <allow send_destination="org.freedesktop.ConsoleKit"
+           send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="GetIdleSinceHint"/>
+    <allow send_interface="org.freedesktop.ConsoleKit.Session"
+           send_member="SetIdleHint"/>
+  </policy>
+
+</busconfig>
diff --git a/init.d/consolekit b/init.d/consolekit
new file mode 100755 (executable)
index 0000000..d469b46
--- /dev/null
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/consolekit/files/consolekit-0.1.rc,v 1.2 2009/09/12 19:46:19 nirbheek Exp $
+
+depend() {
+       need dbus
+       use logger
+}
+
+start() {
+       ebegin "Starting ConsoleKit daemon"
+
+       start-stop-daemon --start -q \
+               --pidfile /var/run/ConsoleKit/pid \
+               --exec /usr/sbin/console-kit-daemon -- 
+       eend $?
+}
+
+stop() {
+       ebegin "Stopping ConsoleKit daemon"
+       start-stop-daemon --stop -q --pidfile /var/run/ConsoleKit/pid 
+       eend $?
+}