#!/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 \
"ConsoleKit" "ConsoleKit user session framework" "on" \
"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" \
"db46" "Berkeley DB library, version 4.6" "on" \
"dbus-glib" "glib bindings for the dbus IPC library" "on" \
"dbus-qt3" "qt3 bindings for the D-Bus IPC suite" "on" \
"dbus-python" "Python bindings for the D-Bus library" "on" \
"desktop-file-utils" "Tools for .desktop files" "on" \
"enchant" "A wrapper for spellcheck libraries" "on" \
"expat" "XML parser library" "on" \
"fftw" "Fast Fourier Transform 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" \
"gdk-pixbuf2" "Image library used by GTK+2" "on" \
"gdbm" "The GNU gdbm database library" "on" \
"giflib" "GIF image 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" \
"gnu-efi" "EFI Development files for the GNU toolchain" "on" \
"gtk+" "A graphical toolkit library" "on" \
"gtk+2" "GTK+ version 2" "on" \
"gtk+3" "GTK+ version 3" "on" \
"hal" "The HAL Hardware Abstraction Layer" "on" \
"hal-info" "Hardware device info for HAL" "on" \
"icu4c" "International Components for Unicode" "on" \
"imlib" "Image loading and rendering library" "on" \
"jasper" "JPEG-2000 library" "on" \
"lcms" "Little Color Management System" "on" \
"lcms2" "little cms engine, version 2" "on" \
"lesstif" "A Motif clone" "on" \
"libatasmart" "ATA S.M.A.R.T. library" "on" \
"libaio" "Asynchronous I/O library" "on" \
"libarchive" "Archive reading library" "on" \
"libart_lgpl" "2D graphics library used by KDE" "on" \
"libcaca" "Colour AsCii Art library" "on" \
"libcroco" "CSS2 parsing and manipulation library" "on" \
"libcap" "POSIX capabilities library" "on" \
"libdaemon" "Unix daemonizing library" "on" \
"libexif" "EXIF (image information) library" "on" \
"libelf" "ELF object file access library" "on" \
"libevent" "libevent – an event notification library" "on" \
"libffi" "Foreign Function Interface 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" \
"libmpc" "Multiple Precision Complex Library" "on" \
"libmtp" "MTP media device support library" "on" \
"libmcrypt" "mcrypt library" "on" \
"libnjb" "Creative Nomad and related device library" "on" \
"libnl" "Netlink socket library" "on" \
"libnl3" "Netlink socket library version 3" "on" \
"libpcap" "Packet Capture library" "on" \
"libpng" "Portable Network Graphics library" "on" \
"libprelude" "libprelude library" "on" \
"librsvg" "Scalable Vector Graphics library" "on" \
"libssh" "SSH C library" "on" \
"libtermcap" "GNU terminal control library" "on" \
"libtheora" "Theora video codec library" "on" \
"libtiff" "Tag Image File format library" "on" \
"libusb" "A library for accessing USB devices" "on" \
"libusb-compat" "Compat library for the old libusb API/ABI" "on" \
"libwmf" "WMF graphics format library" "on" \
"libwmf-docs" "Documentation for libwmf" "on" \
"libxml2" "XML parser library v2" "on" \
"libxslt" "XML transformation library" "on" \
"libzip" "Zip archive library" "on" \
"loudmouth" "Jabber protocol 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" \
"parted" "GNU parted, a partition manipulation program" "on" \
"pcre" "Perl-compatible regular expression library" "on" \
"pilot-link" "PalmOS communication library" "on" \
"polkit" "Authentication policy framework" "on" \
"poppler" "Portable Document Format (PDF) library" "on" \
"poppler-data" "Data files that can be used by poppler" "on" \
"pycairo" "Python bindings for cairo" "on" \
"pycups" "Python bindings for the CUPS API" "on" \
"pygobject" "GObject bindings for Python" "on" \
"pygtk" "GTK+ bindings for Python" "on" \
"pyrex" "A Python extension language" "on" \
"pysqlite" "Python DB-API 2.0 interface for SQLite" "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" \
"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 \
ConsoleKit aalib apr apr-util aspell aspell-en atk cairo db42 db44 db46 dbus-glib dbus-qt3 dbus-python desktop-file-utils enchant expat fftw freetype fribidi fuse gamin gd gdk-pixbuf2 gdbm giflib glib glib2 glibc glibc-i18n glibc-profile gmime gmp gnu-efi gtk+ gtk+2 gtk+3 hal hal-info icu4c imlib jasper lcms lcms2 lesstif libatasmartlibcap libaio libarchive libart_lgpl libcaca libcroco libdaemon libelf libexif libevent libffi libglade libgpod libgsf libgtkhtml libidl libidn libieee1284 libjpeg libkarma libmcs libmng libmpc libmtp libmcrypt libnjb libnl libnl3 libpcap libpng libprelude librsvg libssh libtermcap libtiff libusb libusb-compat libwmf libwmf-docs libxml2 libxslt libzip loudmouth lzo mhash mm mpfr ncurses neon netpbm pango parted pcre pilot-link polkit poppler poppler-data popt pycairo pycups pygobject pygtk pyrex pysqlite qca qca-tls readline sdl shared-mime-info slang slang1 svgalib  t1lib vte wv2 zlib \
  ; do
  echo "$pkg: SKP" >> $TMP/SeTnewtag
 done
 exit
fi
cat /dev/null > $TMP/SeTnewtag
for PACKAGE in \
ConsoleKit aalib apr apr-util aspell aspell-en atk cairo db42 db44 db46 dbus-glib dbus-qt3 dbus-python desktop-file-utils enchant expat fftw freetype fribidi fuse gamin gd gdk-pixbuf2 gdbm giflib glib glib2 glibc glibc-i18n glibc-profile gmime gmp gnu-efi gtk+ gtk+2 gtk+3 hal hal-info icu4c imlib jasper lcms lcms2 lesstif libatasmart libcap libaio libarchive libart_lgpl libcaca libcroco libdaemon libelf libexif libevent libffi libglade libgpod libgsf libgtkhtml libidl libidn libieee1284 libjpeg libkarma libmcs libmng libmtp libmpc libmcrypt libnjb libnl libnl3 libpcap libpng libprelude librsvg libssh libtermcap libtiff libusb libusb-compat libwmf libwmf-docs libxml2 libxslt libzip loudmouth lzo mhash mm mpfr ncurses neon netpbm pango parted pcre pilot-link poppler polkit poppler-data popt pycairo pycups pygobject pygtk pyrex pysqlite qca qca-tls readline sdl shared-mime-info slang slang1 svgalib  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
