# $Id: postremove.client,v 1.1 2006/06/01 18:26:55 elkner Exp $ if [ -z "$PKG_INSTALL_ROOT" ]; then BASE=$CLIENT_BASEDIR else BASE=${PKG_INSTALL_ROOT}$CLIENT_BASEDIR fi CF_DIRS="${BASE}/share/openldap/schema" echo " " echo "Only the default cschema files were deleted. In case you do" echo "NOT need your working schema files in" echo "$CF_DIRS" echo "anymore, you should delete them." echo " " if [ "$CLIENT_BASEDIR" = "/usr" -o "$CLIENT_BASEDIR" = "/usr/local" ]; then exit 0 fi LIBS="" for l in lib ; do _TMP=`crle | awk '/Default Library Path/ { print ":" $5 ":" }' \ | egrep ":$CLIENT_BASEDIR/$l"` if [ -n "$_TMP" ]; then LIBS="$LIBS \n$_TMP" fi done if [ -n "$LIBS" ]; then echo " " echo "NOTE: The following library path[s] are still listed in the systems" echo " default library search path (You may remove it using the crle" echo " tool in if they are not required anymore):" echo " " echo "$LIBS" echo " " fi exit 0