#
# $Id$ Copyright (c) 2011-2017 EMC Corporation
#

#
# Define environment variables required to run NetWorker daemons.
# End-users should not modify this file to add user environment variables.
# This file will be removed automatically upon package removal.
#

case linux86w in
linux86|linuxppc64)
	NSR_LIBS=XPKG_BASEDIRX/lib/nsr
	;;
linuxs390x|linuxppc64le)
	NSR_LIBS=XPKG_BASEDIRX/lib/nsr/lib64
	;;
linux86w)
	# cst path is required to locate dynamic libraries of cst (also loads internal bsafe crypto libraries).
	# It must be the first entry of LD_LIBRARY_PATH otherwise it fails to load libraries.
	# cst comes with own bsafe library. cst bsafe library version may or may not be the same
	# version of bsafe library used by other components in the product.
	NSR_LIBS=XPKG_BASEDIRX/lib/nsr/lib64/cst:XPKG_BASEDIRX/lib/nsr/lib64

	ERLCOOKIE_HOME=/nsr/rabbitmq
	export ERLCOOKIE_HOME
	# nsrmqd uses libcommonssl(OpenSSL) library to make ssl connection to BRM server.
	# OpenSSL has some incompatibility with BRM server when default
	# ciphers are used. It requires explicitly specify ciphers.
	# export cipher list which is read by nsrmqd and set in SSL connection.
	NSRMQD_CIPHERS="DHE-RSA-AES256-SHA:AES256-SHA"
	export NSRMQD_CIPHERS
	;;
esac

LD_LIBRARY_PATH=${NSR_LIBS}:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

PATH=XPKG_BASEDIRX/sbin:XPKG_BASEDIRX/bin:$PATH
export PATH

CATALOG_HOME=/opt/nsr
export CATALOG_HOME
