IGNOREPATH=/home:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/var:/usr/src STRIPLIB=y STRIPBIN=y VERSION=2.6.0.3 PROGNAME="GNOME Display Manager $VERSION" DESC="\ gdm \n\ \n\ The Gnome Display Manager is a reimplementation of the well known \n\ xdm program. gdm implements all significant features required for \n\ managing local and remote displays." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnome.org/pub/gnome/sources/gdm/ PKGNAME=gdm-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/gdm-$VERSION.tar.bz2 cd gdm-$VERSION/ chown -R root.root . # Quiet the output from the gdm script when /etc/profile is sourced: # zcat $CWD/gdm.quiet.diff.gz | patch -p1 --verbose --suffix=.orig # gdm will add -g anyway. I suggest not fighting it. ;-) CFLAGS=-O2 \ ./configure --prefix=/usr \ --sysconfdir=/etc/X11 \ --localstatedir=/var/lib \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { make install DESTDIR=/package-gdm mkdir -p /package-gdm/usr/doc/gdm-$VERSION cp -a AUTHORS COPYING INSTALL NEWS README README.install TODO \ /package-gdm/usr/doc/gdm-$VERSION # Kind of silly, but it's either this or rm the one gdm installs cp -a $CWD/gdm.conf-graphical /package-gdm/etc/X11/gdm/gdm.conf mv /package-gdm/etc/X11/gdm/gdm.conf /package-gdm/etc/X11/gdm/gdm.conf.new mkdir -p /package-gdm/usr/share/faces # Simple session files designed to work with Slackware: mkdir -p /package-gdm/etc/X11/dm/Sessions for file in $CWD/Sessions/* ; do cp -a $file /package-gdm/etc/X11/dm/Sessions done # Use a version of Xsession that supports our session choices: ( cd /package-gdm/etc/X11/gdm zcat $CWD/Xsession.gz > Xsession ) ( cd /package-gdm/usr/man/man1 rm -f *.gz gzip -9 *.1 ) # Pat says... # This is kind of sloppy, but less so than having the package look for /var/scrollkeeper. # It appears those are the choices we have here... mkdir -p /package-gdm/var/log/gdm rm -rf /package-gdm/var/lib/log/gdm ( cd /package-gdm/var/lib/log ln -sf ../../log/gdm . ) mkdir -p /package-gdm/var/lib/scrollkeeper/ } attributes() { chown -R root.bin $PKG/package-gdm/usr/bin/ \ $PKG/package-gdm/usr/sbin/ chown -R gdm.gdm $PKG/package-gdm/var/lib/gdm/ chmod 750 $PKG/package-gdm/var/lib/gdm } special() { cd $PKG mv package-gdm/* ./ rmdir package-gdm/ cd $CTL cat $CWD/slack-desc > slack-desc zcat $CWD/doinst.sh.gz >> doinst.sh cat $CWD/config.sh >> doinst.sh echo config etc/X11/gdm/gdm.conf.new >> doinst.sh sed -e 's%package-gdm/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }