#Packager: George Vlahavas pkgname=gdm pkgver=2.20.10 pkgrel=6gv arch=x86_64 source=("ftp://ftp.gnome.org/pub/gnome/sources/gdm/2.20/gdm-2.20.10.tar.bz2" "http://pnboy.pinguix.com/gapan/sources/gdm/SalixBlue.tar.gz" "gdm-2.20.10-numlockx.patch") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainters") dotnew=(/etc/gdm/custom.conf) options=('noautodotnew') doinst() { # Update the scrollkeeper database (Remove stale pieces) if [ -x usr/bin/scrollkeeper-update ]; then usr/bin/scrollkeeper-update > /dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "gdm (the Gnome Display Manager)" "GDM is the little program that runs in the background, runs your X" "sessions, presents you with a login box and then tells you to bug off" "because you forgot your password. It does pretty much everything that" "you would want to use xdm for, but doesn\'t involve as much crack. It" "doesn\'t use any code from xdm, and has a more paranoid and safer" "design overall. It also includes many features over xdm, the biggest" "one of which is that it is more user friendly, even if your X setup" "is failing. The goal is that users should never, ever have to use the" "command line to customize or troubleshoot GDM." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/gdm-2.20.10-numlockx.patch || exit 1 ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var/state --sysconfdir=/etc --disable-debug --disable-static --disable-scrollkeeper --with-console-kit=no --with-prefetch=no make || return 1 make install DESTDIR=$startdir/pkg # gnome should not be an option in the menu if it's not installed rm $startdir/pkg/usr/share/xsessions/gnome.desktop rm -rf $startdir/pkg/usr/share/omf rm -rf $startdir/pkg/usr/share/gnome cp -a $startdir/src/SalixBlue/ $startdir/pkg/usr/share/gdm/themes/ chown -R root:root $startdir/pkg/usr/share/gdm/themes sed -i "s/^Exec=.*/Exec=gksu gdmsetup/" $startdir/pkg/usr/share/gdm/applications/gdmsetup.desktop sed -i "/^TryExec/d" $startdir/pkg/usr/share/gdm/applications/gdmsetup.desktop sed -i "s|^#Greeter=\(.*\)|Greeter=/usr/libexec/gdmgreeter|" $startdir/pkg/usr/share/gdm/defaults.conf sed -i "s/^#DefaultSession=\(.*\)/DefaultSession=xfce.desktop/" $startdir/pkg/usr/share/gdm/defaults.conf sed -i "s/^#GtkTheme=\(.*\)/GtkTheme=Clearlooks/" $startdir/pkg/usr/share/gdm/defaults.conf sed -i "s/^#GraphicalTheme=\(.*\)/GraphicalTheme=SalixBlue/" $startdir/pkg/usr/share/gdm/defaults.conf sed -i "s/^AllowRoot=\(.*\)/AllowRoot=false/" $startdir/pkg/usr/share/gdm/defaults.conf }