#!/bin/sh
dialog --title "Install packages from the IV series (InterViews)" \
       --checklist "Please select the packages you would like to run from the Slackware Professional CD-ROM.  The disk must be mounted under /cdrom for this to work. Press ENTER when you are done." \
12 70 3 \
"iv_bin" "Binaries and miscellaneous IV files" "off" \
"iv_docs" "Documentation files for InterViews" "off" \
"libiv_so" "Shared InterViews 3.1 libraries" "off" \
2> /tmp/return
if fgrep '"iv_bin"' /tmp/return 1> /dev/null 2> /dev/null ; then
 dialog --title "Installing package iv_bin to run from CD" --infobox \
"Binaries and miscellaneous files for InterViews 3.1\n\
\n\
Contains these binaries:\n\
alert  dclock  ibmkmf  iclass  idraw  ivmkmf  mailbox  cpu  doc\n\
ibuild  idemo  ifc  logo  remind\n\
\n\
This package also contains many sample files for 'doc', 'idraw',\n\
'build', and other InterViews programs.\n\
\n\
" 11 75
 installpkg iv1/iv_bin.tgz 1> /dev/null 2> /dev/null
fi
if fgrep '"iv_docs"' /tmp/return 1> /dev/null 2> /dev/null ; then
 dialog --title "Installing package iv_docs to run from CD" --infobox \
"Documentation files for InterViews 3.1.\n\
\n\
Adds the file refman.PS to /usr/doc/interviews, and adds man pages for\n\
the programs in InterViews 3.1 in /usr/man/preformat/catn.\n\
\n\
" 7 75
 installpkg iv1/iv_docs.tgz 1> /dev/null 2> /dev/null
fi
if fgrep '"libiv_so"' /tmp/return 1> /dev/null 2> /dev/null ; then
 dialog --title "Installing package libiv_so to run from CD" --infobox \
"Shared InterViews 3.1 libraries.\n\
\n\
These dynamic libraries are needed to run InterViews programs.\n\
\n\
" 6 75
 installpkg iv1/libiv_so.tgz 1> /dev/null 2> /dev/null
fi
rm -f /tmp/return
