#!/bin/sh
cat /dev/null > /tmp/SeTnewtag
dialog --title "select pkgs from ext(Extra packages)" \
  --checklist "select packages from ext series. \
You can move cursor with UP/DOWN key and push space \
key to select pkgs. After finish selecting, \
push Enter to start installation. " 24 72 15 \
"Clearlooks" "" "on" \
"LibVNCServer" "" "on" \
"ORBit2" "ORBit2" "on" \
"R" "" "on" \
"TiMidity++-00_TiMidity++" "MIDI-to-WAVE converter and player" "on" \
"TiMidity++-01_88proS" "Sound set based on SC-88Pro" "off" \
"TiMidity++-02_eawplus" "Sound set improved eawpats" "off" \
"aalib" "ASCII Art library" "on" \
"anthy" "Anthy: Library for Japanese Input method" "off" \
"apr" "Apache Portable Runtime library" "on" \
"apr_iconv" "APR Iconv" "on" \
"apr_util" "APR Utils" "on" \
"avahi" "avahi, A mDNS/DNS-SD Server" "off" \
"bluez" "" "on" \
"boost" "advanced C++ libraries" "off" \
"c++_bindings" "C++ bindings" "off" \
"cdrtools" "CD/DVD burning tool" "on" \
"cmake" "cmake" "off" \
"desktop_file_utils" "Desktop file utilities for desktop-entry spec" "off" \
"diffstat" "produces graph of changes introduced by a diff file" "on" \
"djvulibre" "OSS version of Djvu viewer" "on" \
"docbook" "" "off" \
"doxygen" "source code documentation generating tool" "on" \
"dvd+rw_tools" "DVD+RW tools" "on" \
"dvdauthor" "create DVD-Video file system" "on" \
"enchant" "Enchant spell check library" "on" \
"exiv2" "exiv2" "on" \
"facile" "Functional Constraint library" "on" \
"fftw" "FFT library : fftw" "on" \
"firefox" "" "on" \
"fribidi" "fribidi library" "on" \
"fuse" "Filesystem in User space" "on" \
"gamin" "gamin : another file alternate monitor" "on" \
"gcj" "" "on" \
"gd" "Graphics generation Library GD" "on" \
"gfortran" "" "on" \
"ggz_client_libs" "" "on" \
"gimp" "GIMP Image Manipulator" "on" \
"git" "git: another source code maintainance tools" "on" \
"gnome_parts" "common parts for GNOME/KDE" "off" \
"gperf" "" "on" \
"gpsd" "GPS daemon" "on" \
"gsl" "gsl 1.9" "on" \
"gtk_doc" "GTK+ Document Generation Tool" "off" \
"gtkpod" "gtkpod: iPod controller for Gtk" "on" \
"gtkspell" "GTK spell checker" "on" \
"hal_cups_utils" "" "on" \
"heimdal" "Heimdal" "off" \
"hplip" "HP Linux Imaging and Printing" "off" \
"hunspell" "" "on" \
"hyperestraier" "Hyper Estraier" "off" \
"ibus" "" "on" \
"ibus_anthy" "" "on" \
"icon_naming_utils" "icon naming utilities" "off" \
"icu" "unicode library for C++" "on" \
"ifuse" "" "on" \
"ilmbase" "ilmbase: basic library for OpenEXR" "on" \
"iso_codes" "ISO codes for" "off" \
"jasper" "jasper library" "on" \
"kasumi" "Anthy personal Dic maintainance tool" "on" \
"keyutils" "" "on" \
"lftp" "" "on" \
"libIDL" "IDL library for CORBA" "off" \
"libarchive" "libarchive" "on" \
"libatomic_ops" "libatomic_ops" "on" \
"libcanberra" "libcanberra" "on" \
"libcroco" "CSS parser library" "on" \
"libdaemon" "library for daemon software" "on" \
"libdbusmenu" "" "on" \
"libexif" "libexif" "off" \
"libffi" "libffi" "on" \
"libggz" "" "on" \
"libgphoto2" "libgphoto2: library for digital photography" "on" \
"libgpod" "libgpod: library for iPod" "on" \
"libical" "libical: schedule management library" "on" \
"libimobiledevice" "libimobiledevice" "on" \
"libiodbc" "" "on" \
"liblastfm" "" "on" \
"libmtp" "libmtp: library for MTP" "on" \
"libmusicbrainz" "MusicBrainz Client Library" "off" \
"libnice" "ICE library" "on" \
"libnotify" "libnotify: event notification library" "on" \
"libplist" "libplist" "on" \
"libproxy" "libproxy" "on" \
"librsvg" "library for svg" "on" \
"libsexy" "libsexy is a collection of GTK+ widgets" "off" \
"libsigc++" "C++ signal handling library" "off" \
"libsoup" "libsoup: an HTTP library implementation in C" "on" \
"libspectre" "libsprectre: Postscript rendering library" "on" \
"libtunepimp" "" "on" \
"libunique" "libunique" "on" \
"libupnp" "" "on" \
"libwmf" "Library for Windows Meta File" "on" \
"libwnck" "libwnck" "off" \
"libxslt" "XSLT Style Sheet Parser Library" "off" \
"loudmouth" "" "on" \
"lua" "Lua scripting language" "on" \
"m17n" "Multilingualization Library" "on" \
"meanwhile" "meanwhile: OSS implementation of Lotus Sametime protocol" "on" \
"mf2t" "Converter between standard MIDI file and ASCII text format" "on" \
"mplayer" "" "on" \
"neon" "WebDAV cliant library neon" "on" \
"net_snmp" "net_snmp: OSS implementation of SNMP" "on" \
"nspr" "NSPR(NetScape Portable Runtime)library" "on" \
"nss" "NSS(Network Security Service)library" "on" \
"ntfs_3g" "NTTFS-3g: Tuxera's NTFS implementation" "on" \
"ocaml" "" "on" \
"openexr" "OpenEXR: HDRI library" "on" \
"openldap" "OpenLDAP" "on" \
"orc" "ORC: Optimized Inner Loop Runtime Compiler" "on" \
"parted" "GNU parted" "on" \
"perl_append" "add-on modules for perl" "off" \
"pinentry" "PIN entry" "on" \
"prime" "PRIME(PRedictive Input Method Editor)" "off" \
"proftpd" "Proftpd 1.3.0rc1" "off" \
"python_append" "add-on modules for python" "off" \
"qdbm" "QDBM" "off" \
"qt" "" "on" \
"qtscriptgenerator" "" "on" \
"raptor" "Raptor: RDF parser library" "on" \
"rarian" "Document Catalog Management Tool" "on" \
"rasqal" "Rasqal : RDF query library" "on" \
"redland" "Redland RDF library" "on" \
"ruby1.9" "" "on" \
"rubygems" "" "on" \
"samba" "samba: SMB service" "off" \
"scim" "Smart Common Input Method" "off" \
"shared_mime_info" "shared-mime-info" "off" \
"smplayer" "Qt based MPlayer frontend" "on" \
"smplayer_themes" "" "on" \
"sqlite" "Simple Database engine SQLite3" "on" \
"startup_notification" "startup notification library" "on" \
"subversion" "subversion : Version control system" "on" \
"swig" "SWIG interface Generator" "on" \
"system_config_printer" "" "on" \
"thunderbird" "" "on" \
"tidy" "" "on" \
"udisks" "" "on" \
"uim" "multilingual input method library" "off" \
"unrar" "RAR decompressor" "on" \
"upower" "" "on" \
"usbmuxd" "USB Multiplex Daemon" "on" \
"vlc" "VLC media player" "on" \
"vte" "Virtual Terminal Emulator" "off" \
"x11vnc" "" "on" \
"xarchiver" "" "on" \
"xdg_utils" "xdg desktop utility" "on" \
"xmlto" "xmlto: front-end to an XSL toolchain" "on" \
"xsane" "Xsane image scan utility" "on" \
2> /tmp/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
  rm -f /tmp/SeTpkgs
  > /tmp/SeTnewtag
  for pkg in Clearlooks LibVNCServer ORBit2 R TiMidity++-00_TiMidity++ TiMidity++-01_88proS TiMidity++-02_eawplus aalib anthy apr apr_iconv apr_util avahi bluez boost c++_bindings cdrtools cmake desktop_file_utils diffstat djvulibre docbook doxygen dvd+rw_tools dvdauthor enchant exiv2 facile fftw firefox fribidi fuse gamin gcj gd gfortran ggz_client_libs gimp git gnome_parts gperf gpsd gsl gtk_doc gtkpod gtkspell hal_cups_utils heimdal hplip hunspell hyperestraier ibus ibus_anthy icon_naming_utils icu ifuse ilmbase iso_codes jasper kasumi keyutils lftp libIDL libarchive libatomic_ops libcanberra libcroco libdaemon libdbusmenu libexif libffi libggz libgphoto2 libgpod libical libimobiledevice libiodbc liblastfm libmtp libmusicbrainz libnice libnotify libplist libproxy librsvg libsexy libsigc++ libsoup libspectre libtunepimp libunique libupnp libwmf libwnck libxslt loudmouth lua m17n meanwhile mf2t mplayer neon net_snmp nspr nss ntfs_3g ocaml openexr openldap orc parted perl_append pinentry prime proftpd python_append qdbm qt qtscriptgenerator raptor rarian rasqal redland ruby1.9 rubygems samba scim shared_mime_info smplayer smplayer_themes sqlite startup_notification subversion swig system_config_printer thunderbird tidy udisks uim unrar upower usbmuxd vlc vte x11vnc xarchiver xdg_utils xmlto xsane  ; do 
  echo "$pkg: SKP" >> /tmp/SeTnewtag
  done
  exit
fi
cat /dev/null > /tmp/SeTnewtag
for PACKAGE in Clearlooks LibVNCServer ORBit2 R TiMidity++-00_TiMidity++ TiMidity++-01_88proS TiMidity++-02_eawplus aalib anthy apr apr_iconv apr_util avahi bluez boost c++_bindings cdrtools cmake desktop_file_utils diffstat djvulibre docbook doxygen dvd+rw_tools dvdauthor enchant exiv2 facile fftw firefox fribidi fuse gamin gcj gd gfortran ggz_client_libs gimp git gnome_parts gperf gpsd gsl gtk_doc gtkpod gtkspell hal_cups_utils heimdal hplip hunspell hyperestraier ibus ibus_anthy icon_naming_utils icu ifuse ilmbase iso_codes jasper kasumi keyutils lftp libIDL libarchive libatomic_ops libcanberra libcroco libdaemon libdbusmenu libexif libffi libggz libgphoto2 libgpod libical libimobiledevice libiodbc liblastfm libmtp libmusicbrainz libnice libnotify libplist libproxy librsvg libsexy libsigc++ libsoup libspectre libtunepimp libunique libupnp libwmf libwnck libxslt loudmouth lua m17n meanwhile mf2t mplayer neon net_snmp nspr nss ntfs_3g ocaml openexr openldap orc parted perl_append pinentry prime proftpd python_append qdbm qt qtscriptgenerator raptor rarian rasqal redland ruby1.9 rubygems samba scim shared_mime_info smplayer smplayer_themes sqlite startup_notification subversion swig system_config_printer thunderbird tidy udisks uim unrar upower usbmuxd vlc vte x11vnc xarchiver xdg_utils xmlto xsane  ; 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
