#!/bin/sh CWD=`pwd` cd /tmp tar xyvf $CWD/gdm-2.2.2.1.tar.bz2 cd gdm-2.2.2.1 zcat $CWD/gdm.rootlogin.diff.gz | patch -p1 --backup --verbose --suffix=.orig ./configure --prefix=/opt/gnome \ --sysconfdir=/etc/opt/gnome \ --localstatedir=/var/lib \ i386-slackware-linux make CFLAGS=-O2 make CFLAGS=-O2 install ( cd /etc/X11 ; rm -rf gdm ; ln -sf /etc/opt/gnome/gdm . ) installpkg $CWD/gdm-sessions.tgz rm -f /var/log/packages/gdm-sessions /var/log/scripts/gdm-sessions mkdir -p /usr/doc/gdm-2.2.2.1 cp -a ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README README.install RELEASENOTES TODO \ /usr/doc/gdm-2.2.2.1 chown -R root.root /usr/doc/gdm-2.2.2.1 chown -R gdm.gdm /var/lib/gdm echo "/opt/gnome/bin/gnome-session" > /etc/opt/gnome/gdm/gnomerc echo "Don't miss the empty /var/lib/gdm directory when packaging. :)"