#!/bin/sh
#item   ####description                                      ###on off ###
TMP=/var/log/setup/tmp
if [ ! -d $TMP ]; then
  mkdir -p $TMP
fi
cat /dev/null > $TMP/SeTnewtag
dialog --title "SELECTING PACKAGES FROM SERIES SPARC (Sparc Utilities)" \
       --checklist "Use this menu to select the packages you \
wish to install for series SPARC (Sparc Utilites). Use the \
UP/DOWN keys to scroll through the list, and the SPACE key to \
toggle packages on or off. RECOMMENDED and REQUIRED packages have \
been preselected. REQUIRED packages have also been marked with a [*]. \
Press ENTER when you are \
done." 16 70 4 \
"gcc64" "64bit gcc for compiling the UltraSparc kernel *" "on" \
"silo" "Sparc Improved boot LOader" "on" \
"sparcutils" "Assorted sparc utilities" "on" \
2> $TMP/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
 rm -f $TMP/SeTpkgs
 > $TMP/SeTnewtag
 for pkg in gcc64 silo sparcutil ; do
  echo "$pkg: SKP" >> $TMP/SeTnewtag
 done
 exit
fi
cat /dev/null > $TMP/SeTnewtag
for PACKAGE in gcc64 silo sparcutil ; 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
