[24431] in Source-Commits
/svn/athena r24022 - in trunk/debathena/config/gdm-config/debian: . PostSession PreSession
daemon@ATHENA.MIT.EDU (Evan Broder)
Mon Sep 28 14:49:41 2009
Date: Mon, 28 Sep 2009 14:49:23 -0400
From: Evan Broder <broder@MIT.EDU>
Message-Id: <200909281849.n8SInNxP004760@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: broder
Date: 2009-09-28 14:49:23 -0400 (Mon, 28 Sep 2009)
New Revision: 24022
Added:
trunk/debathena/config/gdm-config/debian/PostSession/
trunk/debathena/config/gdm-config/debian/PostSession/Default.debathena
trunk/debathena/config/gdm-config/debian/PreSession/
trunk/debathena/config/gdm-config/debian/PreSession/Default.debathena
Modified:
trunk/debathena/config/gdm-config/debian/changelog
trunk/debathena/config/gdm-config/debian/control.in
trunk/debathena/config/gdm-config/debian/debathena-gdm-config.dirs
trunk/debathena/config/gdm-config/debian/debathena-gdm-config.install
trunk/debathena/config/gdm-config/debian/rules
Log:
In gdm-config:
* Provide /etc/gdm/{Pre,Post}Session.d directories so that multiple
packages can insert scripts.
Added: trunk/debathena/config/gdm-config/debian/PostSession/Default.debathena
===================================================================
--- trunk/debathena/config/gdm-config/debian/PostSession/Default.debathena 2009-09-28 18:30:53 UTC (rev 24021)
+++ trunk/debathena/config/gdm-config/debian/PostSession/Default.debathena 2009-09-28 18:49:23 UTC (rev 24022)
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# This script runs as root at the end of a gdm login session. gdm
+# blocks until it finishes. DISPLAY is set but the X server might be
+# dead in some cases.
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+for i in `run-parts --list /etc/gdm/PostSession.d`; do . "$i"; done
+
+# Chain over to the native post-session default script.
+exec /etc/gdm/PostSession/Default.debathena-orig
Property changes on: trunk/debathena/config/gdm-config/debian/PostSession/Default.debathena
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/debathena/config/gdm-config/debian/PreSession/Default.debathena
===================================================================
--- trunk/debathena/config/gdm-config/debian/PreSession/Default.debathena 2009-09-28 18:30:53 UTC (rev 24021)
+++ trunk/debathena/config/gdm-config/debian/PreSession/Default.debathena 2009-09-28 18:49:23 UTC (rev 24022)
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# This script runs as root at the beginning of a gdm login session.
+# gdm blocks until it finishes.
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+for i in `run-parts --list /etc/gdm/PreSession.d`; do . "$i"; done
+
+# Chain over to the native pre-session default script.
+exec /etc/gdm/PreSession/Default.debathena-orig
Property changes on: trunk/debathena/config/gdm-config/debian/PreSession/Default.debathena
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/debathena/config/gdm-config/debian/changelog
===================================================================
--- trunk/debathena/config/gdm-config/debian/changelog 2009-09-28 18:30:53 UTC (rev 24021)
+++ trunk/debathena/config/gdm-config/debian/changelog 2009-09-28 18:49:23 UTC (rev 24022)
@@ -1,3 +1,10 @@
+debathena-gdm-config (1.14) unstable; urgency=low
+
+ * Provide /etc/gdm/{Pre,Post}Session.d directories so that multiple
+ packages can insert scripts.
+
+ -- Evan Broder <broder@mit.edu> Sat, 26 Sep 2009 23:00:49 -0400
+
debathena-gdm-config (1.13) unstable; urgency=low
* Update the GDM theme to use pixmaps and text labels instead of
Modified: trunk/debathena/config/gdm-config/debian/control.in
===================================================================
--- trunk/debathena/config/gdm-config/debian/control.in 2009-09-28 18:30:53 UTC (rev 24021)
+++ trunk/debathena/config/gdm-config/debian/control.in 2009-09-28 18:49:23 UTC (rev 24022)
@@ -10,7 +10,8 @@
Depends: gdm, ${misc:Depends}
Provides: ${diverted-files}
Conflicts: ${diverted-files}
+Breaks: debathena-reactivate (<< 1.22~)
+Replaces: debathena-reactivate (<< 1.22~)
Description: GDM configuration for Debathena
This packages configures gdm to use the Debathena logo, store
xauthority files in /tmp, and welcome the user to Debathena.
-
Modified: trunk/debathena/config/gdm-config/debian/debathena-gdm-config.dirs
===================================================================
--- trunk/debathena/config/gdm-config/debian/debathena-gdm-config.dirs 2009-09-28 18:30:53 UTC (rev 24021)
+++ trunk/debathena/config/gdm-config/debian/debathena-gdm-config.dirs 2009-09-28 18:49:23 UTC (rev 24022)
@@ -1,2 +1,4 @@
etc/gdm
usr/share/pixmaps
+etc/gdm/PreSession.d
+etc/gdm/PostSession.d
Modified: trunk/debathena/config/gdm-config/debian/debathena-gdm-config.install
===================================================================
--- trunk/debathena/config/gdm-config/debian/debathena-gdm-config.install 2009-09-28 18:30:53 UTC (rev 24021)
+++ trunk/debathena/config/gdm-config/debian/debathena-gdm-config.install 2009-09-28 18:49:23 UTC (rev 24022)
@@ -1,3 +1,5 @@
debian/debathena.png usr/share/pixmaps
debian/default.desktop.debathena usr/share/gdm/BuiltInSessions
+debian/PreSession/Default.debathena etc/gdm/PreSession
+debian/PostSession/Default.debathena etc/gdm/PostSession
debathena /usr/share/gdm/themes/
Modified: trunk/debathena/config/gdm-config/debian/rules
===================================================================
--- trunk/debathena/config/gdm-config/debian/rules 2009-09-28 18:30:53 UTC (rev 24021)
+++ trunk/debathena/config/gdm-config/debian/rules 2009-09-28 18:49:23 UTC (rev 24022)
@@ -12,6 +12,8 @@
${GDM_CONFFILE}
DEB_TRANSFORM_SCRIPT_${GDM_CONFFILE} = debian/transform_gdm.conf.debathena
DEB_DIVERT_FILES_debathena-gdm-config += \
+ /etc/gdm/PreSession.d/Default.debathena \
+ /etc/gdm/PostSession.d/Default.debathena \
/usr/share/gdm/BuiltInSessions/default.desktop.debathena
DEB_REMOVE_FILES_debathena-gdm-config += \
/usr/share/xsessions/ssh.desktop