#!/bin/sh # Build svgalib-1.4.3 for Slackware. CWD=`pwd` cd /tmp tar xzvf $CWD/svgalib-1.4.3.tar.gz cd svgalib-1.4.3 zcat $CWD/svgalib.config.diff.gz | patch -p1 --backup --suffix=.orig --verbose mkdir -p /etc/vga mkdir -p /usr/doc/svgalib-1.4.3 cp -a 0-INSTALL 0-README lrmi-0.6m mach svgalib.lsm doc et4000 support svpmi /usr/doc/svgalib-1.4.3 ( cd /usr/doc/svgalib-1.4.3/doc ; rm -r man? tman ) chown -R root.root /usr/doc/svgalib-1.4.3 make clean make install ( cd /lib ; mv libvga* /usr/lib ) make demoprogs cd demos mkdir -p /usr/lib/svgalib cp -a accel bankspeed bg_test eventtest forktest fun joytest keytest lineart mjoytest mousetest printftest scrolltest speedtest spin testaccel testgl testlinear vgatest /usr/lib/svgalib cd .. # These might not be secure enough to install setuid root by default: chmod 755 /usr/lib/svgalib/* cp -a threeDKit /usr/lib cp Makefile.cfg /usr/lib/threeDKit ( cd /usr/lib/threeDKit ; zcat $CWD/threedkit-makefile.diff.gz | patch -p0 --backup --suffix=.orig ) rm /usr/lib/threeDKit/Makefile.orig chown -R root.root /usr/lib/threeDKit ( cd /usr/lib/threeDKit ; make clean ) cat << EOF chmod the /usr/bin things 755! EOF