#!/bin/sh
#item   ####description                                      ###on on ###
TMP=/var/log/setup/tmp
if [ ! -d $TMP ]; then
  mkdir -p $TMP
fi
cat /dev/null > $TMP/SeTnewtag
dialog --title "SELECTING PACKAGES FROM SERIES C (COMPATABILITY)" \
       --checklist "Please select the packages you wish to install \
from series C. Use the \
UP/DOWN keys to scroll through the list, and the SPACE key to select \
the packages you wish to install. Recommended packages have \
already been selected for you, but you may unselect them if you wish. \
Press ENTER when you are \
done." 22 72 11 \
"aaa_elflibs32" "Base 32-bit libraries" "on" \
"alsa-lib32" "32-bit ALSA libraries" "on" \
"atk32" "32-bit ATK library (needed by gtk32)" "on" \
"cairo32" "32-bit cairo library (needed by gtk32)" "on" \
"cups32" "32-bit cups libraries" "on" \
"devel32" "Helper scripts for 32-bit development" "off" \
"expat32" "32-bit expat library" "on" \
"gcc32" "32-bit output support for gcc" "off" \
"gcc32-g++" "32-bit output support for g++" "off" \
"gcc32-gfortran" "32-bit output support for gfortran" "off" \
"gcc32-java" "32-bit output support for gcj" "off" \
"gcc32-objc" "32-bit output support for Objective C" "off" \
"glib2-32" "32-bit Glib2 library (needed by gtk32)" "on" \
"glibc32" "32-bit glibc" "on" \
"glibc32-i18n" "32-bit internationalisation support for glibc" "off" \
"gtk+2-32" "32-bit GTK support" "on" \
"libtiff32" "32-bit libtiff" "on" \
"linux32" "Wrapper for 32-bit applications" "on" \
"mesa32" "32-bit OpenGL support" "on" \
"nspluginwrapper" "Support for 32-bit browser plugins" "on" \
"pango32" "32-bit pango library (needed by gtk32)" "on" \
"qt32" "32-bit Qt support" "on" \
"xlibs32" "32-bit X libraries" "on" \
2> $TMP/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
 rm -f $TMP/SeTpkgs
 > $TMP/SeTnewtag
 for pkg in aaa_elflibs32 alsa-lib32 atk32 cairo32 cups32 devel32 expat32 gcc32 gcc32-g++ gcc32-gfortran gcc32-java gcc32-objc glib2-32 glibc32 glibc32-i18n gtk+2-32 libtiff32 linux32 mesa32 nspluginwrapper pango32 qt32 xlibs32 ; do
  echo "$pkg: SKP" >> $TMP/SeTnewtag
 done
 exit
fi
cat /dev/null > $TMP/SeTnewtag
for PACKAGE in aaa_elflibs32 alsa-lib32 atk32 cairo32 cups32 devel32 expat32 gcc32 gcc32-g++ gcc32-gfortran gcc32-java gcc32-objc glib2-32 glibc32 glibc32-i18n gtk+2-32 libtiff32 linux32 mesa32 nspluginwrapper pango32 qt32 xlibs32 ; 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