#!/bin/sh
#
# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident	"@(#)checkinstall	1.2	07/04/24 SMI"
#

DISKLESS_SRVC=`echo ${PKG_INSTALL_ROOT} | /usr/bin/grep export/Solaris_`

if [ "$DISKLESS_SRVC" ]; then
	INSTALL_ROOT=${PKG_INSTALL_ROOT}/usr_$ARCH.all
else
	INSTALL_ROOT=${PKG_INSTALL_ROOT}
fi

if [ ! -f ${INSTALL_ROOT}/usr/lib/libkrb5.so.1 ]
then
	echo "Error: /usr/lib/libkrb5.so.1 not found."
	echo "Please install the patch for 6381288 (we should expose the krb5 api)."
	echo "The patch needed is 125077-02 for SPARC and 125078-02 for x86 systems."
	exit 1
fi

exit 0
