#!/sbin/sh

#
# checkinstall for cpqary3
#

# base set of classes
CPQARY3_CLASSES="none master devlink"


#
# traditionally, we must make several entries in
# bootenv.rc.  however, s10u1 and beyond do not
# have this requirement.  it doesn't hurt to have
# these entries present however, but because
# bootenv.rc is a symlink in the newboot-style
# miniroot, pkgadd gets all wierded out and so
# one has to do funky things to get cpqary3 installed
# to a newboot-style miniroot.
#
# since the newboot-style miniroots were introduced
# in s10u1, we can avoid the above mentioned problem
# by simply not modifying bootenv.rc on a s10u1 or
# beyond system.  here in checkinstall, we'll decide
# whether or not this is a >=s10u1 system and
# adjust CLASSES accordingly.
#

# this is the way that solaris's cd install-finish
# script checks this
if [ ! -f ${PKG_INSTALL_ROOT}/platform/i86pc/multiboot ] ; then
	# <s10u1, so need bootenv.rc mods
	CPQARY3_CLASSES="${CPQARY3_CLASSES} bootenv.rc"
fi

# output CLASSES
echo "CLASSES=${CPQARY3_CLASSES}" >> $1


exit 0

