#!/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 A (BASE LINUX SYSTEM)" \
       --checklist "Please select the packages you wish to install \
from series A. Use the \
UP/DOWN keys to scroll through the list, and the SPACE key to select \
the packages you wish to install. Certain important packages have \
already been selected for you, and you are cautioned against unselecting \
these packages. However, it's your system. :^)  For instance, be sure to \
install LILO or you won't be able to make system bootdisks. \
Press ENTER when you are \
done." 21 72 8 \
"ide"  "Linux 2.2.19 no SCSI (YOU NEED 1 KERNEL)" "on" \
"scsi" "Linux 2.2.19 with SCSI (YOU NEED 1 KERNEL)" "on" \
"i245"  "Linux 2.4.5 no SCSI (YOU NEED 1 KERNEL)" "on" \
"sc245" "Linux 2.4.5 with SCSI (YOU NEED 1 KERNEL)" "on" \
"aaa_base" "Basic filesystem, shell, and utils - REQUIRED" "on" \
"bash" "GNU bash-2.05 shell - REQUIRED" "on" \
"bash1" "GNU bash-1.14.7 shell" "on" \
"bin" "Various system utilities - REQUIRED" "on" \
"bzip2"  "bzip2 compression utility" "on" \
"cpio" "The GNU cpio backup/archiving utility" "on" \
"cxxlibs" "C++ shared libraries - REQUIRED" "on" \
"devfsd" "daemon for managing devfs - RECOMMENDED" "on" \
"devs" "Device files found in /dev - REQUIRED" "on" \
"e2fsprog" "Utilities for the ext2 file system - REQUIRED" "on" \
"elflibs" "Various ELF libraries -- REQUIRED" "on" \
"elvis" "elvis text editor (vi clone) - REQUIRED" "on" \
"etc"  "System config files & utilities - REQUIRED" "on" \
"fileutls" "GNU file utilities - REQUIRED" "on" \
"find" "GNU findutils" "on" \
"floppy" "Utilities for using DOS floppies" "on" \
"getty" "Getty_ps serial login support - OPTIONAL" "off" \
"glibcso" "Runtime glibc support libraries" "on" \
"gpm" "Cut and paste text with your mouse" "on" \
"grep" "GNU grep searching tool - REQUIRED" "on" \
"gzip"  "GNU zip compression utility - REQUIRED" "on" \
"hdsetup" "Slackware setup scripts - REQUIRED" "on" \
"infozip" "zip/unzip archive utilities" "on" \
"isapnp" "Plug'n'Play configuration tool" "on" \
"kbd" "Change keyboard and console mappings" "on" \
"less" "A text pager utility - REQUIRED" "on" \
"lilo" "Boot loader for Linux, DOS, OS/2, etc." "on" \
"loadlin" "Boots Linux (UMSDOS too!) from MS-DOS" "on" \
"lpr" "BSD lpr - printer spooling system" "on" \
"minicom" "Serial transfer and modem comm package" "on" \
"modules" "Linux 2.2.19 modules -- REQUIRED" "on" \
"mods245" "Linux 2.4.5 modules" "on" \
"modutils" "Kernel module utilities -- REQUIRED" "on" \
"ossllibs" "OpenSSL shared libraries -- REQUIRED" "on" \
"pciutils" "Linux PCI utilities" "on" \
"pcmcia" "PCMCIA card services support" "on" \
"procps" "Displays process info - REQUIRED" "on" \
"reiserfs" "Utilities for a journaling filesystem" "on" \
"sh_utils" "GNU shell utils -- REQUIRED" "on" \
"shadow" "Shadow password suite -- REQUIRED" "on" \
"sysklogd" "Logs system and kernel messages" "on" \
"sysvinit" "System V-like INIT programs - REQUIRED" "on" \
"tar" "GNU tar archive utility -- REQUIRED" "on" \
"tcsh" "Extended C shell /bin/tcsh" "on" \
"txtutils" "GNU text utils -- REQUIRED" "on" \
"umsprogs" "Utilities needed by the UMSDOS filesystem" "on" \
"util" "Util-linux utilities - REQUIRED" "on" \
"zoneinfo" "Configures your time zone" "on" \
2> $TMP/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
 rm -f $TMP/SeTpkgs
 > $TMP/SeTnewtag
 for pkg in aaa_base bash bin bzip2 cpio cxxlibs devs e2fsprog \
 i245 sc245 \
 elflibs bash1 devfsd \
 elvis etc fileutls find floppy getty glibcso gpm grep gzip hdsetup \
 ide isapnp kbd less lilo loadlin lpr minicom mods245 modules \
 modutils ossllibs pciutils pcmcia procps reiserfs scsi sh_utils shadow sysklogd \
 sysvinit tar tcsh txtutils umsprogs util infozip zoneinfo ; do
  echo "$pkg: SKP" >> $TMP/SeTnewtag
 done
 exit
fi
cat /dev/null > $TMP/SeTnewtag
for PACKAGE in aaa_base bash bin bzip2 cpio cxxlibs devfsd devs e2fsprog \
 elflibs bash1 \
 i245 sc245 \
 elvis etc fileutls find floppy getty glibcso gpm grep gzip hdsetup \
 ide isapnp kbd less lilo loadlin lpr minicom mods245 modules \
 modutils ossllibs pciutils pcmcia procps reiserfs scsi sh_utils shadow sysklogd \
 sysvinit tar tcsh txtutils umsprogs util infozip zoneinfo ; 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