#!/bin/sh
#item   ####description                                      ###on off ###
cat /dev/null > /tmp/SeTnewtag 
dialog --title "A(Base) series" \
       --checklist "select packages from A series" 20 72 14 \
"aaa_base" "Basic Linux file system package" "on" \
"basebin" "command install into /bin and /usr/bin directories" "on" \
"baseutil" "basic utitiles collection for Linux" "on" \
"bash" "GNU bash-2.04-with I18N patch" "on" \
"bsdlpr" "BSD lpr-5.9-13" "on" \
"complibs" "compatible libraries for Plamo 2.0" "on" \
"cpio" "GNU cpio file backup/restor tool" "on" \
"devs" "device files" "on" \
"e2fsbn" "ext2fs utiles v. 1.12" "on" \
"elflibs" "library for libc5 format" "off" \
"etc" "configuration files for /etc directory" "on" \
"find" "GNU find utility 4.1.7" "on" \
"gawk" "GNU awk with multibyte extension" "on" \
"getty" "getty_ps 2.0.7i" "off" \
"glibc2" "shared library of Glibc2" "on" \
"gpm" "GPM(General purpose mouse) v1.10" "off" \
"grep" "GNU grep + multi-lingual extension" "on" \
"grub" "GRUB " "on" \
"gzip" "GNU zip compression utilities. (v. 1.2.4)" "on" \
"hdsetup" "Slackware setup/management packages" "on" \
"jbase" "basic utities for Japanese language" "on" \
"jman" "Japanese man" "on" \
"kbd" "kbd 0.94" "on" \
"konbin" "KON(Kanji ON)" "on" \
"konfnt" "KON fonts" "on" \
"ldso" "dynamic linker/loader ld.so 1.9.5" "off" \
"less" "less" "on" \
"lilo" "LILO 21" "on" \
"loadlin" "LOADLIN v1.6" "on" \
"murasaki" "Plug'n play tool Murasaki" "on" \
"notekern" "Linux kernel 2.4.19 for Note PC " "off" \
"pcmcia" "pcmcia-cs-3.1.0" "off" \
"pnp" "isapnptools-1.15" "on" \
"prutil" "printer utitiles" "on" \
"ps" "procps 1.27" "on" \
"readln" "GNU readline library" "on" \
"recjis" "recover jis packages" "off" \
"scsi" "Linux kernel 2.4.19 for SCSI devices." "on" \
"sed" "GNU sed with multibyte extension" "on" \
"sh_utils" "GNU sh-utils-1.16" "on" \
"shadow" "Shadow password program" "on" \
"sysklogd" "Sysklogd 1.3" "on" \
"sysvinit" "SysVinit v. 2.69" "on" \
"tar" "GNU tar 1.12" "on" \
"tcsh" "tcsh 6.06 with Japanese extentions" "on" \
"txtutils" "GNU textutils-1.22" "on" \
"zoneinfo" "Timezone control program" "on" \
2> /tmp/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then 
 rm -f /tmp/SeTpkgs 
 > /tmp/SeTnewtag 
for pkg in aaa_base basebin baseutil bash bsdlpr complibs cpio devs e2fsbn elflibs etc find gawk getty glibc2 gpm grep grub gzip hdsetup jbase jman kbd konbin konfnt ldso less lilo loadlin murasaki notekern pcmcia pnp prutil ps readln recjis scsi sed sh_utils shadow sysklogd sysvinit tar tcsh txtutils zoneinfo scsi98 note98 pcmcia98 grub98 ; do
  echo "$pkg: SKP" >> /tmp/SeTnewtag 
 done 
 exit 
fi 
cat /dev/null > /tmp/SeTnewtag
for PACKAGE in aaa_base basebin baseutil bash bsdlpr complibs cpio devs e2fsbn elflibs etc find gawk getty glibc2 gpm grep grub gzip hdsetup jbase jman kbd konbin konfnt ldso less lilo loadlin murasaki notekern pcmcia pnp prutil ps readln recjis scsi sed sh_utils shadow sysklogd sysvinit tar tcsh txtutils zoneinfo ; do
  if grep \"$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
