#!/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 \
"GraphicsMagick" "GraphicsMagick" "on" \
"MPlayer" "media player and convertor : MPlayer" "on" \
"ORBit2" "ORBit2" "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" \
"alpine" "alpine: IMAP toolkit Environment" "on" \
"alsa_apps" "Applications adopted to ALSA sequenser" "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" \
"at_spi" "at-spi-idl: AT-SPI Interfaces and Subinterfaces" "off" \
"avahi" "avahi, A mDNS/DNS-SD Server" "off" \
"avidemux" "simple video editor" "off" \
"bluez" "Bluetooth 関連ライブラリ" "on" \
"boost" "advanced C++ libraries" "off" \
"c++_bindings" "C++ bindings" "off" \
"cadaver" "WebDAV client cadver" "on" \
"cdrtools" "CD/DVD burning tool" "on" \
"clucene_core" "Clucene" "on" \
"cmake" "cmake" "off" \
"desktop_file_utils" "Desktop file utilities for desktop-entry spec" "off" \
"devicekit" "devicekit" "on" \
"diffstat" "produces graph of changes introduced by a diff file" "on" \
"djvulibre" "OSS version of Djvu viewer" "on" \
"docbook_tools" "DocBook Tools" "off" \
"doxygen" "source code documentation generating tool" "on" \
"dvd+rw_tools" "DVD+RW tools" "on" \
"dvdauthor" "create DVD-Video file system" "on" \
"eggdbus" "Dbus binding tool" "on" \
"enchant" "Enchant spell check library" "on" \
"exempi" "XMP metadata library" "on" \
"exiv2" "exiv2" "on" \
"fftw" "FFT library : fftw" "on" \
"fribidi" "fribidi library" "on" \
"fuse" "Filesystem in User space" "on" \
"gamin" "gamin : another file alternate monitor" "on" \
"gcc_fortran" "GCC FORTRAN" "on" \
"gd" "Graphics generation Library GD" "on" \
"ggz" "GGZ(GGZ Gaming Zone)" "off" \
"gimp" "GIMP Image Manipulator" "on" \
"git" "git: another source code maintainance tools" "on" \
"gnome_parts" "common parts for GNOME/KDE" "off" \
"google_gadgets" "Google gadget" "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" \
"heimdal" "Heimdal" "off" \
"hicolor_icon_theme" "fallback theme for icons" "off" \
"hplip" "HP Linux Imaging and Printing" "off" \
"hyperestraier" "Hyper Estraier" "off" \
"icon_naming_utils" "icon naming utilities" "off" \
"icu" "unicode library for C++" "on" \
"ilmbase" "ilmbase: basic library for OpenEXR" "on" \
"iso_codes" "ISO codes for" "off" \
"jasper" "jasper library" "on" \
"jre" "jre : Java Runtime Environment" "on" \
"kasumi" "Anthy personal Dic maintainance tool" "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" \
"libexif" "libexif" "off" \
"libffi" "libffi" "on" \
"libgphoto2" "libgphoto2: library for digital photography" "on" \
"libgpod" "libgpod: library for iPod" "on" \
"libgsf_minimum" "simple file i/o library" "on" \
"libical" "libical: schedule management library" "on" \
"libimobiledevice" "libimobiledevice" "on" \
"libmcrypt" "libmcrypt" "on" \
"libmng" "MNG(Multiple image Network Graphics format) library" "on" \
"libmtp" "libmtp: library for MTP" "on" \
"libmusicbrainz" "MusicBrainz Client Library" "off" \
"libnice" "ICE library" "on" \
"libnotify" "libnotify: event notification library" "on" \
"liboil" "liboil: Optimized Inner Loop library" "off" \
"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" \
"libunique" "libunique" "on" \
"libv4l" "video4 linux library" "on" \
"libvisual" "audio vizualization library" "off" \
"libwmf" "Library for Windows Meta File" "on" \
"libwnck" "libwnck" "off" \
"libxml2" "XML Parser Library" "off" \
"libxslt" "XSLT Style Sheet Parser Library" "off" \
"lua" "Lua scripting language" "on" \
"lzo" "LZO data compression library" "on" \
"lzop" "LZOP file compressor" "on" \
"m17n" "Multilingualization Library" "on" \
"mcrypt" "Mcrypt" "on" \
"meanwhile" "meanwhile: OSS implementation of Lotus Sametime protocol" "on" \
"mecab" "MeCab: Yet Another Part-of-Speech and Morphological Analyzer" "on" \
"mecab_ipadic" "IPAdic for Mecab" "on" \
"mf2t" "Converter between standard MIDI file and ASCII text format" "on" \
"mh" "MH" "off" \
"mhash" "mhash" "on" \
"mjpegtools" "MJPEG video capture/editting/playback MPEG encoding" "on" \
"mplayerplug_in" "mplayer plugin for firefox" "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" \
"openal" "OpenAudio Library" "on" \
"openexr" "OpenEXR: HDRI library" "on" \
"openldap" "OpenLDAP" "on" \
"orc" "ORC: Optimized Inner Loop Runtime Compiler" "on" \
"ortp" "ORTP: Open RTP library" "on" \
"pam_krb5" "PAM module for Kerberos5" "off" \
"parted" "GNU parted" "on" \
"perl_append" "add-on modules for perl" "off" \
"pinentry" "PIN entry" "on" \
"pkcs11_helper" "Public Key Cryptography Standard #11" "on" \
"pmake" "BSD 4.4 make." "off" \
"prime" "PRIME(PRedictive Input Method Editor)" "off" \
"proftpd" "Proftpd 1.3.0rc1" "off" \
"pwlib" "Portable Window library" "off" \
"python_append" "add-on modules for python" "off" \
"qdbm" "QDBM" "off" \
"qpopper" "Qualecom's qpopper 4.0.8" "off" \
"qt" "Qt" "on" \
"qt_doc" "docs for Qt" "off" \
"qtscriptgenerator" "Qt Script generator" "on" \
"raptor" "Raptor: RDF parser library" "on" \
"rarian" "Document Catalog Management Tool" "on" \
"rasqal" "Rasqal : RDF query library" "on" \
"re2c" "writing fast and flexible lexers: re2c" "on" \
"redland" "Redland RDF library" "on" \
"redland_bindings" "Bindings to Redland library" "on" \
"remctl" "Kerberos5 remote authentication system" "on" \
"samba" "samba: SMB service" "off" \
"scim" "Smart Common Input Method" "off" \
"shared_desktop_ontologies" "Shared Desktop Ontologies" "on" \
"shared_mime_info" "shared-mime-info" "off" \
"sip" "SIP Python bindings generator" "on" \
"smplayer" "Qt based MPlayer frontend" "on" \
"sqlite" "Simple Database engine SQLite3" "on" \
"startup_notification" "startup notification library" "on" \
"strigi" "strigi: desktop serching program" "on" \
"subversion" "subversion : Version control system" "on" \
"swig" "SWIG interface Generator" "on" \
"sylpheed" "Light weight e-mail client with GTK+" "off" \
"tapioca_qt" "Tapioca Qt" "on" \
"uim" "multilingual input method library" "off" \
"unixODBC" "unixODBC" "on" \
"unrar" "RAR decompressor" "on" \
"usbmuxd" "USB Multiplex Daemon" "on" \
"vlc" "VLC media player" "on" \
"vte" "Virtual Terminal Emulator" "off" \
"wv2" "MS-Word access library" "on" \
"xawtv" "television viewer - X11 application" "on" \
"xdg_utils" "xdg desktop utility" "on" \
"xmlto" "xmlto: front-end to an XSL toolchain" "on" \
"xsane" "Xsane image scan utility" "on" \
"xulrunner" "Xulrunner: XML User-interface Language runner" "on" \
"xz" "XZ Utils" "on" \
2> /tmp/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
  rm -f /tmp/SeTpkgs
  > /tmp/SeTnewtag
  for pkg in GraphicsMagick MPlayer ORBit2 TiMidity++-00_TiMidity++ TiMidity++-01_88proS TiMidity++-02_eawplus aalib alpine alsa_apps anthy apr apr_iconv apr_util at_spi avahi avidemux bluez boost c++_bindings cadaver cdrtools clucene_core cmake desktop_file_utils devicekit diffstat djvulibre docbook_tools doxygen dvd+rw_tools dvdauthor eggdbus enchant exempi exiv2 fftw fribidi fuse gamin gcc_fortran gd ggz gimp git gnome_parts google_gadgets gsl gtk_doc gtkpod gtkspell heimdal hicolor_icon_theme hplip hyperestraier icon_naming_utils icu ilmbase iso_codes jasper jre kasumi libIDL libarchive libatomic_ops libcanberra libcroco libdaemon libexif libffi libgphoto2 libgpod libgsf_minimum libical libimobiledevice libmcrypt libmng libmtp libmusicbrainz libnice libnotify liboil libplist libproxy librsvg libsexy libsigc++ libsoup libspectre libunique libv4l libvisual libwmf libwnck libxml2 libxslt lua lzo lzop m17n mcrypt meanwhile mecab mecab_ipadic mf2t mh mhash mjpegtools mplayerplug_in neon net_snmp nspr nss ntfs_3g openal openexr openldap orc ortp pam_krb5 parted perl_append pinentry pkcs11_helper pmake prime proftpd pwlib python_append qdbm qpopper qt qt_doc qtscriptgenerator raptor rarian rasqal re2c redland redland_bindings remctl samba scim shared_desktop_ontologies shared_mime_info sip smplayer sqlite startup_notification strigi subversion swig sylpheed tapioca_qt uim unixODBC unrar usbmuxd vlc vte wv2 xawtv xdg_utils xmlto xsane xulrunner xz  ; do 
  echo "$pkg: SKP" >> /tmp/SeTnewtag
  done
  exit
fi
cat /dev/null > /tmp/SeTnewtag
for PACKAGE in GraphicsMagick MPlayer ORBit2 TiMidity++-00_TiMidity++ TiMidity++-01_88proS TiMidity++-02_eawplus aalib alpine alsa_apps anthy apr apr_iconv apr_util at_spi avahi avidemux bluez boost c++_bindings cadaver cdrtools clucene_core cmake desktop_file_utils devicekit diffstat djvulibre docbook_tools doxygen dvd+rw_tools dvdauthor eggdbus enchant exempi exiv2 fftw fribidi fuse gamin gcc_fortran gd ggz gimp git gnome_parts google_gadgets gsl gtk_doc gtkpod gtkspell heimdal hicolor_icon_theme hplip hyperestraier icon_naming_utils icu ilmbase iso_codes jasper jre kasumi libIDL libarchive libatomic_ops libcanberra libcroco libdaemon libexif libffi libgphoto2 libgpod libgsf_minimum libical libimobiledevice libmcrypt libmng libmtp libmusicbrainz libnice libnotify liboil libplist libproxy librsvg libsexy libsigc++ libsoup libspectre libunique libv4l libvisual libwmf libwnck libxml2 libxslt lua lzo lzop m17n mcrypt meanwhile mecab mecab_ipadic mf2t mh mhash mjpegtools mplayerplug_in neon net_snmp nspr nss ntfs_3g openal openexr openldap orc ortp pam_krb5 parted perl_append pinentry pkcs11_helper pmake prime proftpd pwlib python_append qdbm qpopper qt qt_doc qtscriptgenerator raptor rarian rasqal re2c redland redland_bindings remctl samba scim shared_desktop_ontologies shared_mime_info sip smplayer sqlite startup_notification strigi subversion swig sylpheed tapioca_qt uim unixODBC unrar usbmuxd vlc vte wv2 xawtv xdg_utils xmlto xsane xulrunner xz  ; 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
