#!/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 GTK (GTK/GNOME APPS)" \
      --checklist "Please select the packages you wish to install \
from series GTK. This series consists of the GNOME desktop environment \
and other programs that use GTK+, such as GIMP.  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. \
If you're planning to run GNOME, be careful not to unselect any required \
packages marked with a (*). \
Press ENTER when you are \
done." 21 70 7 \
"audiofil" "* GNOME audio file format library" "on" \
"control" "* The GNOME control center" "on" \
"econf" "* Enlightenment configuration applet" "on" \
"enlight" "* Enlightenment window manager" "on" \
"esound" "* Enlightened Sound Daemon" "on" \
"eterm" "* snazzy xterm replacement" "on" \
"fnlib" "* color font rendering library" "on" \
"freefont" "Extra fonts for the GIMP" "on" \
"freetype" "* FreeType font rendering library" "on" \
"gdm" "GNOME Display Manager" "on" \
"gedit" "text editor for GNOME" "on" \
"gftp" "multithreaded FTP client" "on" \
"gimp" "GNU Image Manipulation Program" "on" \
"gmc" "Midnight Commander for GNOME" "on" \
"gnoadmin" "* GNOME system admin programs" "on" \
"gnoaudio" "extra sound files for GNOME" "on" \
"gnogames" "games for GNOME" "on" \
"gnoguide" "GNOME User's Guide" "on" \
"gnomcore" "* core programs for the GNOME GUI" "on" \
"gnomedia" "GNOME multimedia programs" "on" \
"gnomeicu" "clone of ICQ written with GTK" "on" \
"gnomenet" "* Network programs for GNOME" "on" \
"gnomepim" "GNOME Personal Information Manager" "on" \
"gnomlibs" "* libraries needed by GNOME" "on" \
"gnomobjc" "* GNOME Objective C libraries" "on" \
"gnoprint" "* print related GNOME libraries" "on" \
"gnotepad" "simple text editor" "on" \
"gnoutils" "* Some utilities for GNOME" "on" \
"gnpython" "GTK extension module for Python" "on" \
"gnumeric" "GNOME spreadsheet program" "on" \
"gtkeng" "* graphical engines for GTK+  themes" "on" \
"gtkglib" "* GTK+, GLIB, and other libs for GIMP/GNOME" "on" \
"guile" "* extension language library" "on" \
"imlib" "* image loading and rendering library" "on" \
"libghttp" "* GNOME http client library" "on" \
"libglade" "* user interface library" "on" \
"libgtop" "* system information library" "on" \
"libungif" "* non-LZW GIF handling library" "on" \
"libxml" "* library for handling XML" "on" \
"orbit" "* CORBA ORB (object request broker)" "on" \
"wmaker" "GNU window manager for X" "on" \
"xchat" "IRC client for X" "on" \
"xscrsave" "screen saver and locker for X" "on" \
2> $TMP/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
rm -f $TMP/SeTpkgs
> $TMP/SeTnewtag
for pkg in audiofil control econf enlight esound eterm fnlib freefont \
  freetype gdm gedit gftp gimp gmc gnoadmin \
  gnoaudio gnogames gnoguide gnomcore \
  gnomedia gnomeicu gnomenet gnomepim gnomlibs gnomobjc gnoprint gnotepad \
  gnoutils gnpython gnumeric gtkeng gtkglib guile imlib libghttp libglade \
  libgtop libungif libxml orbit wmaker xchat xscrsave ; do
 echo "$pkg: SKP" >> $TMP/SeTnewtag
done
exit
fi
cat /dev/null > $TMP/SeTnewtag
for PACKAGE in audiofil control econf enlight esound eterm fnlib freefont \
  freetype gdm gedit gftp gimp gmc gnoadmin \
  gnoaudio gnogames gnoguide gnomcore \
  gnomedia gnomeicu gnomenet gnomepim gnomlibs gnomobjc gnoprint gnotepad \
  gnoutils gnpython gnumeric gtkeng gtkglib guile imlib libghttp libglade \
  libgtop libungif libxml orbit wmaker xchat xscrsave ; 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