[Lunar-commits] <moonbase> gdm-old: gdm 2.20.10 for Xfce users that do not like gnome

samuel verstraete samuel.verstraete at gmail.com
Mon Oct 5 13:49:59 CEST 2009


commit 3ed321d23fdedbe48e711691f0289ae10e486e0c
Author: samuel verstraete <samuel.verstraete at gmail.com>
Date:   Tue Apr 21 14:03:30 2009 +0200

    gdm-old: gdm 2.20.10 for Xfce users that do not
    like gnome
---
 zbeta/gdm-old/BUILD                  |   45 ++++++++++++++++++++++
 zbeta/gdm-old/DEPENDS                |    2 +
 zbeta/gdm-old/DETAILS                |   50 +++++++++++++++++++++++++
 zbeta/gdm-old/Default                |   27 +++++++++++++
 zbeta/gdm-old/POST_INSTALL           |    5 ++
 zbeta/gdm-old/Sessions/gnome.desktop |   68 ++++++++++++++++++++++++++++++++++
 zbeta/gdm-old/gnomerc                |   13 ++++++
 zbeta/gdm-old/init.d/gdm             |   27 +++++++++++++
 zbeta/gdm-old/pam.d/gdm              |   14 +++++++
 zbeta/gdm-old/pam.d/gdm-autologin    |   13 ++++++
 10 files changed, 264 insertions(+), 0 deletions(-)

diff --git a/zbeta/gdm-old/BUILD b/zbeta/gdm-old/BUILD
new file mode 100644
index 0000000..98cdea6
--- /dev/null
+++ b/zbeta/gdm-old/BUILD
@@ -0,0 +1,45 @@
+(
+
+ sedit 's:GDM_KEY_HALT "daemon/DefaultPath:GDM_KEY_HALT "daemon/HaltCommand:' daemon/gdm.h
+
+ add_priv_user gdm:gdm
+
+ if    module_installed  Linux-PAM;  then  SCHEME="pam"
+ elif  module_installed  shadow;     then  SCHEME="shadow"
+                                     else  SCHEME="auto"
+ fi
+
+ OPTS="$OPTS --enable-authentication-scheme=$SCHEME"
+
+ LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
+ 
+ ./configure   --build=$BUILD                                        \
+               --prefix=${GNOME210_PREFIX:-/usr}                     \
+               --with-xinerama=yes                                   \
+               --sysconfdir=/etc/X11                                 \
+               --localstatedir=/var                                  \
+               --infodir=${GNOME210_PREFIX:-/usr}/share/info         \
+               --mandir=${GNOME210_PREFIX:-/usr}/share/man           \
+               $OPTS                                                 &&
+
+ sedit 's#$(LINK)#$(LINK) $(LIBS)#' daemon/Makefile                  &&
+ make                                                                &&
+ prepare_install                                                     &&
+ make install                                                        &&
+
+ mkdir  -p           /var/gdm                                        &&
+ chown  -R  gdm:gdm  /var/gdm                                        &&
+ chmod  750          /var/gdm                                        &&
+
+ # This has to be a DIRECTORY, not a FILE
+ if [ -e "/etc/X11/gdm/Sessions" ]; then
+   rm -fr /etc/X11/gdm/Sessions || true
+ fi
+
+ mkdir -p /etc/X11/gdm/Sessions/                                   &&
+ install --mode=644 $SCRIPT_DIRECTORY/gnomerc /etc/X11/gdm/gnomerc &&
+ install --mode=755 $SCRIPT_DIRECTORY/Sessions/gnome.desktop /etc/X11/dm/Sessions &&
+ install --mode=755 $SCRIPT_DIRECTORY/Default /etc/X11/gdm/PreSession/ &&
+ install --mode=755 $SCRIPT_DIRECTORY/Default /etc/X11/gdm/Sessions/ 
+
+) > $C_FIFO 2>&1
diff --git a/zbeta/gdm-old/DEPENDS b/zbeta/gdm-old/DEPENDS
new file mode 100644
index 0000000..7a8a2dd
--- /dev/null
+++ b/zbeta/gdm-old/DEPENDS
@@ -0,0 +1,2 @@
+depends librsvg
+depends gnome-doc-utils
diff --git a/zbeta/gdm-old/DETAILS b/zbeta/gdm-old/DETAILS
new file mode 100644
index 0000000..0f61f85
--- /dev/null
+++ b/zbeta/gdm-old/DETAILS
@@ -0,0 +1,50 @@
+          MODULE=gdm-old
+             MOD=gdm
+         VERSION=2.20.10
+           MAJOR=2.20
+          SOURCE=$MOD-$VERSION.tar.bz2
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MOD-$VERSION	  
+      SOURCE_URL=$GNOME_URL/sources/$MOD/$MAJOR/
+      SOURCE_VFY=sha1:42e9e52184393352f005f1735843a30f764aef18
+        WEB_SITE=http://www.gnome.org/projects/gdm/
+         ENTERED=20020716
+         UPDATED=20080710
+           SHORT="the Gnome Display Manager"
+
+cat << EOF
+The Gnome Display Manager is a re-implementation of the well known xdm
+program.  gdm 2.5 implements all significant features required for
+managing local and remote displays.
+
+gdm daemon:
+ o X Authentication
+ o Default and per-display initialization scripts
+ o Pre and post session scripts
+ o Pluggable Authentication Modules
+ o XDMCP
+ o TCP Wrappers for access control
+ o Autologin for single user workstations
+ o Timed login for kiosks and public terminals
+
+gdmlogin:
+ o Logo image
+ o Background image/color
+ o Halt and reboot
+ o Iconified login window
+ o Session selection support
+ o Language selection support
+ o GNOME session selection support
+ o Face browser
+ o Background program support
+ o Xinerama support
+
+gdmchooser:
+ o Visual host browser
+ o Customizable icons
+
+gdmconfig:
+ o GUI way to configure everything about GDM
+
+Most features can be turned on and off in the configuration file by
+the sysadmin.
+EOF
diff --git a/zbeta/gdm-old/Default b/zbeta/gdm-old/Default
new file mode 100644
index 0000000..f91d3ab
--- /dev/null
+++ b/zbeta/gdm-old/Default
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# Note that any setup should come before the sessreg command as
+# that must be 'exec'ed for the pid to be correct (sessreg uses the parent
+# pid)
+#
+# Note that output goes into the .xsession-errors file for easy debugging
+#
+XSETROOT=`which xsetroot 2>/dev/null`
+if [ x$XSETROOT != x ] ; then
+        $XSETROOT -cursor_name left_ptr -solid "#363047"
+fi
+
+
+SESSREG=`which sessreg 2>/dev/null`
+if [ x$SESSREG != x ] ; then
+        # some output for easy debugging
+        echo "$0: Registering your session with wtmp and utmp"
+        echo "$0: running: $SESSREG -a -w /var/log/wtmp -u /var/run/utmp -x \"$X_SERVERS\" -h \"$REMOTE_HOST\" -l $DISPLAY $USER"
+
+        exec $SESSREG -a -w /var/log/wtmp -u /var/run/utmp -x "$X_SERVERS" -h "$REMOTE_HOST" -l $DISPLAY $USER
+        # this is not reached
+fi
+
+# some output for easy debugging
+echo "$0: could not find the sessreg utility, cannot update wtmp and utmp"
+exit 0
diff --git a/zbeta/gdm-old/POST_INSTALL b/zbeta/gdm-old/POST_INSTALL
new file mode 100644
index 0000000..f393d4a
--- /dev/null
+++ b/zbeta/gdm-old/POST_INSTALL
@@ -0,0 +1,5 @@
+
+if module_installed gnome-session; then lin -c gnome-session; fi
+if module_installed gnome-desktop; then lin -c gnome-desktop; fi
+
+
diff --git a/zbeta/gdm-old/Sessions/gnome.desktop b/zbeta/gdm-old/Sessions/gnome.desktop
new file mode 100644
index 0000000..6777c17
--- /dev/null
+++ b/zbeta/gdm-old/Sessions/gnome.desktop
@@ -0,0 +1,68 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=GNOME
+Name[az]=GNOME
+Name[be]=GNOME
+Name[ca]=GNOME
+Name[cs]=GNOME
+Name[cy]=GNOME
+Name[da]=Gnome
+Name[de]=GNOME
+Name[el]=GNOME
+Name[es]=GNOME
+Name[et]=GNOME
+Name[fi]=Gnome
+Name[fr]=GNOME
+Name[he]=GNOME
+Name[hu]=GNOME
+Name[it]=GNOME
+Name[ko]=그놈
+Name[ms]=GNOME
+Name[nl]=GNOME
+Name[no]=GNOME
+Name[pl]=GNOME
+Name[pt]=GNOME
+Name[pt_BR]=GNOME
+Name[ru]=GNOME
+Name[sk]=GNOME
+Name[sl]=GNOME
+Name[sq]=GNOME
+Name[sr]=Гном
+Name[sr at Latn]=Gnom
+Name[sv]=GNOME
+Name[uk]=GNOME
+Name[zh_CN]=GNOME
+Name[zh_TW]=GNOME
+Comment=This session logs you into GNOME
+Comment[az]=Bu iclas sizi GNOME'a daxil edəcək
+Comment[be]=Гэтая сэсыя завядзе вас у GNOME
+Comment[ca]=Aquesta sessió entra en GNOME
+Comment[cs]=Toto sezení vás přihlásí do GNOME
+Comment[cy]=Mae'r sesiwn hwn yn eich mewngofnodi i GNOME
+Comment[da]=Denne session logger dig på Gnome
+Comment[de]=Diese Sitzung meldet Sie an GNOME an
+Comment[el]=Αυτή η συνεδρία σας εισάγει στο GNOME
+Comment[es]=Con esta sesión accede a GNOME
+Comment[fi]=Tämä istunto kirjaa sisään Gnomeen
+Comment[fr]=Cette session vous connectera dans GNOME
+Comment[he]=תצורת הפעלה זו מחברת אותך ל GNOME
+Comment[ko]=GNOME세션으로 로그인합니다
+Comment[ms]=Sesi ini akan log anda  ke GNOME
+Comment[nl]=Deze sessie meldt u aan bij GNOME
+Comment[no]=Denne sesjonen logger deg inn til GNOME
+Comment[pl]=Sesja logowania do GNOME
+Comment[pt]=Esta sessão inicia-o no GNOME
+Comment[pt_BR]=Logar no ambiente GNOME
+Comment[sk]=Toto sedenie vás prihlási do prostredia GNOME
+Comment[sl]=Ta seja vas prijavi v GNOMe
+Comment[sq]=Kjo seancë do t'ju fusë në GNOME
+Comment[sr]=Ова сесија вас пријављује на Гнома
+Comment[sr at Latn]=Ova sesija vas prijavljuje na Gnoma
+Comment[sv]=Denna session loggar in dig i GNOME
+Comment[uk]=Сеанс роботи в середовищі GNOME
+Comment[zh_CN]=此会话使您登录到 GNOME
+Comment[zh_TW]=選取這個作業階段後會進入 GNOME 環境
+Exec=/usr/bin/gnome-session
+# no icon yet, only the top three are currently used
+Icon=
+Type=Application
diff --git a/zbeta/gdm-old/gnomerc b/zbeta/gdm-old/gnomerc
new file mode 100644
index 0000000..1fd5585
--- /dev/null
+++ b/zbeta/gdm-old/gnomerc
@@ -0,0 +1,13 @@
+startssh=
+sshagent=/usr/bin/ssh-agent
+gnomesession=/usr/bin/gnome-session
+
+if [ -x $sshagent -a -z "$SSH_AUTH_SOCK" ]; then
+  startssh=yes
+fi
+
+if [ -n "$startssh" ]; then
+  exec $sshagent -- $gnomesession
+else
+  exec $gnomesession
+fi
diff --git a/zbeta/gdm-old/init.d/gdm b/zbeta/gdm-old/init.d/gdm
new file mode 100644
index 0000000..32922f5
--- /dev/null
+++ b/zbeta/gdm-old/init.d/gdm
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+# chkconfig: 5 95 05
+# description: gdm is gnome's version of the xdm graphical login manager
+# processname: /usr/sbin/gdm
+# sigreload: HUP
+
+. /lib/lsb/init-functions $1
+
+stop() {
+  kill `cat /var/run/gdm.pid`
+  evaluate_retval
+}
+ 
+status() {
+  if [ -f /var/run/gdm.pid ]; then
+    if ps -p `cat /var/run/gdm.pid` > /dev/null; then
+      echo "gdm is running with Process ID $(cat /var/run/gdm.pid)"
+    else
+      echo "gdm is not running but /var/run/gdm.pid exists"
+      return 1
+    fi
+  else
+    echo "gdm is not running"
+  fi
+}
+
diff --git a/zbeta/gdm-old/pam.d/gdm b/zbeta/gdm-old/pam.d/gdm
new file mode 100644
index 0000000..47f0938
--- /dev/null
+++ b/zbeta/gdm-old/pam.d/gdm
@@ -0,0 +1,14 @@
+#%PAM-1.0
+#
+# The PAM configuration file for the `gdm' service
+#
+auth       required    pam_env.so
+auth       include     system-auth
+account    required    pam_nologin.so
+account    include     system-auth
+password   include     system-auth
+session    include     system-auth
+session    required    pam_loginuid.so
+session    optional    pam_console.so
+
+
diff --git a/zbeta/gdm-old/pam.d/gdm-autologin b/zbeta/gdm-old/pam.d/gdm-autologin
new file mode 100644
index 0000000..a4b0dab
--- /dev/null
+++ b/zbeta/gdm-old/pam.d/gdm-autologin
@@ -0,0 +1,13 @@
+#%PAM-1.0
+#
+# The PAM configuration file for the `gdm-autologin' service
+#
+auth       required    pam_env.so
+auth       required    pam_permit.so
+account    required    pam_nologin.so
+account    include     system-auth
+password   include     system-auth
+session    include     system-auth
+session    required    pam_loginuid.so
+session    optional    pam_console.so
+


More information about the Lunar-commits mailing list