#!/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 L (Libraries)" \
       --checklist "Please confirm the packages you wish to install \
from series L.  Use the UP/DOWN keys to scroll through the list, and \
the SPACE key to deselect any items you don't want to install.  \
Keep in mind that many of these libraries are required by KDE \
or other parts of the system.  It's safest to install all of these \
packages even if you aren't sure if you need them.  Press ENTER when \
you are done." 22 74 10 \
"aalib" "ASCII Art library" "on" \
"apr" "Apache Portable Runtime library" "on" \
"apr-util" "Extra APR library interfaces" "on" \
"aspell" "Spell checking library" "on" \
"aspell-en" "English word list for Aspell" "on" \
"atk" "Accessability library" "on" \
"cairo" "Vector graphics library used by GTK+" "on" \
"db42" "Berkeley DB library, version 4.2" "on" \
"db44" "Berkeley DB library, version 4.4" "on" \
"dbus" "Message bus daemon" "on" \
"dbus-glib" "glib bindings for the dbus IPC library" "on" \
"dbus-qt3" "qt3 bindings for the D-Bus IPC suite" "on" \
"desktop-file-utils" "Tools for .desktop files" "on" \
"expat" "XML parser library" "on" \
"freetype" "Font rendering library" "on" \
"fribidi" "Unicode BiDirectional library" "on" \
"fuse" "Tools for using filesystems in userspace" "on" \
"gamin" "a minimalist FAM replacement" "on" \
"gd" "A graphics library" "on" \
"gdbm" "The GNU gdbm database library" "on" \
"glib" "Support library used by GTK+" "on" \
"glib2" "GLib version 2" "on" \
"glibc" "The GNU C library" "on" \
"glibc-i18n" "Internationalization support for glibc" "on" \
"glibc-profile" "Profiling support for glibc" "on" \
"gmime" "MIME parsing library" "on" \
"gmp" "A library for arithmetic" "on" \
"hal" "The HAL Hardware Abstraction Layer" "on" \
"hal-info" "Hardware device info for HAL" "on" \
"imlib" "Image loading and rendering library" "on" \
"lcms" "Little Color Management System" "on" \
"lesstif" "A Motif clone" "on" \
"libart_lgpl" "2D graphics library used by KDE" "on" \
"libcaca" "Colour AsCii Art library" "on" \
"libexif" "EXIF (image information) library" "on" \
"libglade" "An interface construction library" "on" \
"libgpod" "A library for a popular music device" "on" \
"libgsf" "File I/O library" "on" \
"libgtkhtml" "HTML rendering library" "on" \
"libidl" "Interface Definition Language library" "on" \
"libidn" "GNU Internationalized Domain Name library" "on" \
"libieee1284" "Library to identify parallel port devices" "on" \
"libjpeg" "JPEG image library and tools" "on" \
"libkarma" "A library for accessing the Rio Karma player" "on" \
"libmcs" "Manages configuration settings" "on" \
"libmng" "Multiple-image Network Graphics library" "on" \
"libmtp" "MTP media device support library" "on" \
"libmcrypt" "mcrypt library" "on" \
"libnjb" "Creative Nomad and related device library" "on" \
"libpng" "Portable Network Graphics library" "on" \
"librsvg" "Scalable Vector Graphics library" "on" \
"libtermcap" "GNU terminal control library" "on" \
"libtheora" "Theora video codec library" "on" \
"libtiff" "Tag Image File format library" "on" \
"libungif" "GIF extraction library" "on" \
"libusb" "A library for accessing USB devices" "on" \
"libwmf" "WMF graphics format library" "on" \
"libwmf-docs" "Documentation for libwmf" "on" \
"libxml2" "XML parser library v2" "on" \
"libxslt" "XML transformation library" "on" \
"lzo" "fast data compression library" "on" \
"mhash" "Thread-safe hash library" "on" \
"mm" "Shared Memory Allocation library" "on" \
"mpfr" "Another math lib based on GMP" "on" \
"ncurses" "CRT screen handling package" "on" \
"neon" "HTTP and WebDAV client library" "on" \
"netpbm" "Graphics library and tools" "on" \
"pango" "Text rendering library" "on" \
"pcre" "Perl-compatible regular expression library" "on" \
"pilot-link" "PalmOS communication library" "on" \
"poppler" "Portable Document Format (PDF) library" "on" \
"poppler-data" "Data files that can be used by poppler" "on" \
"popt" "Command line parsing library" "on" \
"qca" "QCA (Qt Cryptographic Architecture)" "on" \
"qca-tls" "SSL/TLS plugin for QCA (used by Jabber)" "on" \
"qt" "C++ GUI library used by KDE" "on" \
"readline" "Input library with editing" "on" \
"sdl" "Simple DirectMedia Layer library" "on" \
"shared-mime-info" "MIME database" "on" \
"slang" "S-Lang interpreted language and library v2" "on" \
"slang1" "S-Lang interpreted language and library v1" "on" \
"svgalib" "Super-VGA Graphics Library" "on" \
"svgalib_helper" "A kernel module required by svgalib" "on" \
"t1lib" "Library for handling Type 1 fonts" "on" \
"vte" "A terminal emulator for GTK+" "on" \
"wv2" "MS Word .doc import library" "on" \
"zlib" "general purpose data compression library" "on" \
2> $TMP/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
 rm -f $TMP/SeTpkgs
 > $TMP/SeTnewtag
 for pkg in \
aalib apr apr-util aspell aspell-en atk cairo db42 db44 dbus dbus-glib dbus-qt3 desktop-file-utils expat freetype fribidi fuse gamin gd gdbm glib glib2 glibc glibc-i18n glibc-profile gmime gmp hal hal-info imlib lcms lesstif libart_lgpl libcaca libexif libglade libgpod libgsf libgtkhtml libidl libidn libieee1284 libjpeg libkarma libmcs libmng libmtp libmcrypt libnjb libpng librsvg libtermcap libtiff libungif libusb libwmf libwmf-docs libxml2 libxslt lzo mhash mm mpfr ncurses neon netpbm pango pcre pilot-link poppler poppler-data popt qca qca-tls readline sdl shared-mime-info slang slang1 svgalib svgalib_helper t1lib vte wv2 zlib \
  ; do
  echo "$pkg: SKP" >> $TMP/SeTnewtag
 done
 exit
fi
cat /dev/null > $TMP/SeTnewtag
for PACKAGE in \
aalib apr apr-util aspell aspell-en atk cairo db42 db44 dbus dbus-glib dbus-qt3 desktop-file-utils expat freetype fribidi fuse gamin gd gdbm glib glib2 glibc glibc-i18n glibc-profile gmime gmp hal hal-info imlib lcms lesstif libart_lgpl libcaca libexif libglade libgpod libgsf libgtkhtml libidl libidn libieee1284 libjpeg libkarma libmcs libmng libmtp libmcrypt libnjb libpng librsvg libtermcap libtiff libungif libusb libwmf libwmf-docs libxml2 libxslt lzo mhash mm mpfr ncurses neon netpbm pango pcre pilot-link poppler poppler-data popt qca qca-tls readline sdl shared-mime-info slang slang1 svgalib svgalib_helper t1lib vte wv2 zlib \
 ; 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
