#Packager: George Vlahavas #Adapted to Slint by Didier Spaier pkgname=gdm pkgver=2.20.11 pkgrel=1slint source=("ftp://ftp.gnome.org/pub/gnome/sources/gdm/2.20/gdm-$pkgver.tar.bz2" "gdm-2.20.10-numlockx.patch" "gdm-2.20.11-crypt.diff") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") dotnew=(/etc/gdm/custom.conf) options=('noautodotnew' 'nosrcpack') 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 does not involve as much crack. It" "does not use any code from xdm, and hay 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 # Fix crypt() usage with glibc-2.17 and later patch -p1 < $startdir/src/gdm-2.20.11-crypt.diff || exit 1 ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var/state \ --sysconfdir=/etc \ --disable-static \ --disable-scrollkeeper \ --enable-secureremote=yes \ --enable-authentication-scheme=shadow \ --with-xdmcp=no \ --with-console-kit=yes \ --build=$arch-slackware-linux make -j $numjobs || 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 # The gdm user and group are created installing the etc package so # we won't have to take care of that during installation as we do # for lightdm. cp $startdir/custom.conf $startdir/pkg/etc/gdm/ chmod 644 $startdir/pkg/etc/gdm/custom.conf mkdir -p -m=770 $startdir/pkg/var/lib/gdm mkdir -p -m=711 $startdir/pkg/var/log/gdm chmod +t $startdir/pkg/var/lib/gdm chown gdm:gdm -R $startdir/pkg/var/lib/gdm chgrp gdm $startdir/pkg/var/log/gdm ( cd $startdir/pkg/etc/gdm/ cp $startdir/custom Init chmod 755 Init/custom sed 's|exit 0|[ -x /etc/gdm/Init/custom ] \&\& /etc/gdm/Init/custom\n\nexit 0|' \ Init/Default > bof mv bof Init/Default chmod 755 Init/Default printf %b '#!/bin/sh\npkill -u gdm at-spi\n' > \ PostLogin/Default chmod 755 PostLogin/Default ) mkdir -p $startdir/pkg/usr/doc/${pkgname}-$pkgver/ cp $startdir/{README.Slint,gnome-display-mgr*} \ $startdir/pkg/usr/doc/${pkgname}-$pkgver/ }