IGNOREPATH=/home:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/var:/usr/src STRIPLIB=y STRIPBIN=y VERSION=2.4.4.2 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/stable/sources/ 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 cp -a $CWD/gdm.conf-graphical /package-gdm/etc/X11/gdm/gdm.conf mkdir -p /package-gdm/usr/share/faces # Simple session files designed to work with Slackware: for file in $CWD/Sessions/* ; do cp -a $file /package-gdm/etc/X11/dm/Sessions chown root.root /package-gdm/etc/X11/dm/Sessions/`basename $file` chmod 755 /package-gdm/etc/X11/dm/Sessions/`basename $file` done ( cd /package-gdm/etc/X11/dm/Sessions # rm -f Xsession # ln -sf /etc/X11/xdm/Xsession . ) ( cd /package-gdm/usr/man/man1 rm -f *.gz gzip -9 *.1 ) 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 sed -e 's%package-gdm/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new cat << EOF >> doinst.sh if [ -x /usr/bin/scrollkeeper-update ]; then /usr/bin/scrollkeeper-update -p /var/lib/scrollkeeper 1> /dev/null 2> /dev/null fi EOF }