# Copyright (c) 1999 by Sun Microsystems, Inc.
# All rights reserved.
#
# "@(#)checkinstall    1.2    99/10/01     SMI"
# 
# This script does some of the pre installation  tasks for
# AdminSuite 3.0 installation.
#

##############################################################################################

OSRELEASE="5.8"

THIS_OSRELEASE=`/usr/bin/uname -r 2>&1`

# Make sure target system is a 2.8 platform,otherwise abort installation.

if [ "${THIS_OSRELEASE}" != "${OSRELEASE}" ]; then
 
        echo "\nTarget system is not running Solaris 8."
        echo "This package is for Solaris 8 platform only."
        echo "\nThe installation is being terminated.....\n"
          exit 3 
       fi

DEPEND_PACKAGE="SUNWseamj"
/usr/bin/pkginfo ${DEPEND_PACKAGE} >>/dev/null 2>&1

if [ "$?" != "0" ]; then

     echo "\nThe package SUNWseamj must be installed first before the package SUNWseams."
     echo "The installation is terminated.....\n"  
        exit 3 
       fi
 
#################################################################################################
## Done

echo "The dependency check succeeded..."
exit 0
