# unpack_engine # # This file contains install information and procedures # specific to the vision engine # These shell variables specify which engine will be # installed. Set UNPACK_SUN to 1 if you want the # Sun version installed, UNPACK_AIX to 1 if you want # the IBM version installed, and/or UNPACK_HP to 1 if # you want the HP version installed. You can have any # or all of these set to 1 or 0, but these values need # to be consistent with UNPACK_ENGINE variable in # unpack_vision. . ./set_arch.sh UNPACK_SUN=0 UNPACK_SOLARIS=0 UNPACK_AIX=0 UNPACK_HP=0 case "$ARCH" in SunOS) UNPACK_SUN=1 ;; Solaris) UNPACK_SOLARIS=1 ;; AIX) UNPACK_AIX=1 ;; HP-UX) UNPACK_HP=1 ;; *) $echo "No engines found for this archicture (${ARCH})" ;; esac # unpack_engine # # This is the main routine to call to extract and install # the engine software unpack_engine() { if [ $UNPACK_SUN = 1 ] ; then PRODUCT="NL/Vision Sun Runtime Engine" DEFINSTALLDIR=/usr/ati DISKSPACE=10 VERFILE=vision/.engine_version VERSION=020300 SOFTWARE=nlv_engine TARFILE=engine${ARCH_SUFFIX}.tar # # ADDED BY BJP FOR AT-VIEW # echo "Please wait, preparing files..." $rm -f $TFLOC/engine_aix.tar.Z $rm -f $TFLOC/engine_hp.tar.Z $rm -f $TFLOC/engine_solaris.tar.Z $rm -f $TFLOC/engine_solaris2.4.tar.Z $uncompress $TFLOC/$TARFILE # # END BJP ADD # standard_steps fi if [ $UNPACK_SOLARIS = 1 ] ; then PRODUCT="NL/Vision Solaris Runtime Engine" DEFINSTALLDIR=/usr/ati DISKSPACE=10 VERFILE=vision/.engine_solaris_version VERSION=020300 SOFTWARE=nlv_engine # # ADDED BY BJP FOR SOLARIS 2.4 # # CHANGED FROM AT-VIEW 2.0.2 WILL NOW WORK WITH SOLARIS 2.5 # # IS_2_4=`$expr $ARCH_VER = '5.4'` # if test $IS_2_4 -eq 3 ; then IS_2_4=`$expr $ARCH_VER \>= 5.4` if test $IS_2_4 -eq 1 ; then # SOLARIS 2.4 TARFILE=engine${ARCH_SUFFIX}2.4.tar $rm -f $TFLOC/engine${ARCH_SUFFIX}.tar.Z else TARFILE=engine${ARCH_SUFFIX}.tar $rm -f $TFLOC/engine${ARCH_SUFFIX}2.4.tar.Z fi # # ADDED BY BJP FOR AT-VIEW # echo "Please wait, preparing files..." $rm -f $TFLOC/engine_aix.tar.Z $rm -f $TFLOC/engine_hp.tar.Z $rm -f $TFLOC/engine.tar.Z $uncompress $TFLOC/$TARFILE # # END BJP ADD # standard_steps fi if [ $UNPACK_AIX = 1 ] ; then PRODUCT="NL/Vision IBM Runtime Engine" DEFINSTALLDIR=/usr/ati DISKSPACE=50 VERFILE=vision/.engine_aix_version VERSION=020300 SOFTWARE=nlv_engine TARFILE=engine${ARCH_SUFFIX}.tar # # ADDED BY BJP FOR AT-VIEW # echo "Please wait, preparing files..." $rm -f $TFLOC/engine.tar.Z $rm -f $TFLOC/engine_hp.tar.Z $rm -f $TFLOC/engine_solaris.tar.Z $rm -f $TFLOC/engine_solaris2.4.tar.Z $uncompress $TFLOC/$TARFILE # # END BJP ADD # standard_steps fi if [ $UNPACK_HP = 1 ] ; then PRODUCT="NL/Vision HP Runtime Engine" DEFINSTALLDIR=/usr/ati DISKSPACE=70 VERFILE=vision/.engine_hp_version VERSION=020300 SOFTWARE=nlv_engine TARFILE=engine${ARCH_SUFFIX}.tar # # ADDED BY BJP FOR AT-VIEW # echo "Please wait, preparing files..." $rm -f $TFLOC/engine.tar.Z $rm -f $TFLOC/engine_aix.tar.Z $rm -f $TFLOC/engine_solaris.tar.Z $rm -f $TFLOC/engine_solaris2.4.tar.Z $uncompress $TFLOC/$TARFILE # # END BJP ADD # standard_steps fi } unpack_engine_prologue() { $clear cat << EOM I am now going to install the $PRODUCT software. This product is based on: NetLabs Vision Application Library Copyright 1989-1995 NetLabs, Inc. All rights reserved EOM QUESTION="" get_response } unpack_engine_epilogue() { # Set VISIONHOME in preparation for the dsf installation VISIONHOME=$INSTALLDIR # Set the permissions and ownerships set_engine_permissions } set_engine_permissions() { cat << EOM Please wait one moment while I adjust the ownership and permissions of the Vision files... EOM nfs_path_p $INSTALLDIR if test "$FSHOST" = "" ; then $chown -R bin $INSTALLDIR/vision${ARCH_SUFFIX} $chmod 755 $INSTALLDIR/vision${ARCH_SUFFIX}/* $chmod 755 $INSTALLDIR/vision${ARCH_SUFFIX}/bin/vision* $chmod 755 $INSTALLDIR/vision${ARCH_SUFFIX}/etc/visiongraphd${ARCH_SUFFIX} $chmod 744 $INSTALLDIR/vision${ARCH_SUFFIX}/bin/dsfutil${ARCH_SUFFIX} $chmod 777 $INSTALLDIR/vision${ARCH_SUFFIX}/config else $rsh $FSHOST "$chown -R bin $INSTALLDIR/vision${ARCH_SUFFIX}" $rsh $FSHOST "$chmod 755 $INSTALLDIR/vision${ARCH_SUFFIX}/*" $rsh $FSHOST "$chmod 755 $INSTALLDIR/vision${ARCH_SUFFIX}/bin/vision*" $rsh $FSHOST "$chmod 755 $INSTALLDIR/vision${ARCH_SUFFIX}/etc/visiongraphd*" $rsh $FSHOST "$chmod 744 $INSTALLDIR/vision${ARCH_SUFFIX}/bin/dsfutil${ARCH_SUFFIX}" $rsh $FSHOST "$chmod 777 $INSTALLDIR/vision${ARCH_SUFFIX}/config" fi cat << EOM The Vision engine files now have the correct ownership and permissions. EOM QUESTION="" get_response ynq }