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