#!/bin/sh
#item   ####description                                      ###on off ###
rm -f /tmp/SeTnewtag # empty the return file
dialog --title "SELECTING X SERVER FROM SERIES X (XFree86 3.1.2)" \
      --checklist "Please select the X server you wish to install \
from series X. \
In most cases, you'll only want to \
install the X server needed for your video card, but if you plan to \
export your /usr partition via NFS, you may need other servers as well. \
Press ENTER when you are \
done." 22 70 11 \
"x3128514" "X server for cards using IBM8514 chips" "off" \
"x312agx" "X server for cards using AGX chips" "off" \
"x312ma8" "X server for cards using Mach8 chips" "off" \
"x312ma32" "X server for cards using Mach32 chips" "off" \
"x312ma64" "X server for cards using Mach64 chips" "off" \
"x312mono" "A Monochrome X server" "off" \
"x312p9k" "X server for cards using P9000 chips" "off" \
"x312s3" "X server for cards using S3 chips" "off" \
"x312svga" "X server for SuperVGA cards" "off" \
"x312vga" "A 16-color generic X server" "off" \
"x312w32" "X server for cards using the ET4000/W32 chipset" "off" \
2> /tmp/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
rm -f /tmp/SeTpkgs
exit
fi
cat /dev/null > /tmp/SeTnewtag
for PACKAGE in x3128514 x312agx x312ma8 x312ma32 x312ma64 x312mono x312p9k \
x312s3 x312svga x312vga x312w32 ; do
if fgrep \"$PACKAGE\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then
 echo "$PACKAGE: ADD" >> /tmp/SeTnewtag
else
 echo "$PACKAGE: SKP" >> /tmp/SeTnewtag
fi
done
dialog --title "SELECTING PACKAGES FROM SERIES X (XFree86 3.1.2)" \
      --checklist "Please select the packages you wish to install \
from series X. \
Recommended packages have already been selected. \
Press ENTER when you are \
done." 21 70 12 \
"x312doc" "Documentation for XFree86 3.1.2" "off" \
"fvwmicns" "Color icons from xpm3icons.tar.Z" "off" \
"x312cfg" "XDM configuration, chooser, and FVWM" "on" \
"x312ctrb" "Extra programs from X11R6 contrib" "off" \
"x312bin" "Basic client binaries required for X" "on" \
"x312ubin" "Daemon needed for rstart" "off" \
"x312inc" "Header files for X programming" "on" \
"x312lib" "Libraries and bitmaps for X" "on" \
"x312man" "Man pages for XFree86 3.1.2" "on" \
"oldlibs5" "XFree86 2.1.1 shared libraries" "on" \
"oldlibs6" "XFree86 3.1.1 shared libraries" "on" \
"xpm" "The Xpm shared library" "on" \
"x312xtra" "Two experimental X servers" "off" \
"x312fnt" "Basic fonts needed to run X" "on" \
"x312f75" "75 dpi fonts" "on" \
"fnt100_1" "100 dpi fonts, part one" "off" \
"fnt100_2" "100 dpi fonts, part two" "off" \
"fntbig1" "Big fonts, part one" "off" \
"fntbig2" "Big fonts, part two" "off" \
"fntbig3" "Big fonts, part three" "off" \
"x312fcyr" "Cyrillic fonts" "off" \
"x312fscl" "Scalable Speedo/Type1 fonts" "off" \
"xlock" "A screensaver/locker for X" "on" \
2> /tmp/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
rm -f /tmp/SeTpkgs
exit
fi
for PACKAGE in x312doc fvwmicns x312cfg x312ctrb x312bin x312ubin x312inc \
x312lib x312man oldlibs5 oldlibs6 xpm x312xtra x312fnt x312f75 \
fnt100_1 fnt100_2 \
fntbig1 fntbig2 fntbig3 x312fscl x312fcyr xlock ; do
if fgrep \"$PACKAGE\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then
 echo "$PACKAGE: ADD" >> /tmp/SeTnewtag
else
 echo "$PACKAGE: SKP" >> /tmp/SeTnewtag
fi
done
rm -f /tmp/SeTpkgs