#!/bin/sh
#
# dcgi_env.sh -- set up the DCGI environment
#
#======================================================================
# This  section returns an HTML-document which warns the user that
# theirs is a new installation, and that they must edit this file in
# order to make daycgi work.  
#
# This section should be removed (or commented out) of this shell
# script, after the required environment-variables have been set.
#
# NOTE: For slight improvement in efficiency, one could remove all
# comments from this script after it has been debugged and is working
# (the shell must parse any comments; save yourself a few
# milliseconds).  Keep an original copy of this file somewhere else
# for reference.
#
# The above section should be removed/commented out.  Edit the
# environment variables below this line.
#======================================================================

#
# define Daylight root directory
# 

DY_ROOT=/daylight/v461
export DY_ROOT

#
# define runtime library search path.  This is the path which the
# system uses to find shared libraries at runtime.  The daylight
# toolkit libraries are linked shared in 4.61 and later, so this
# variable must be set.

LD_LIBRARY_PATH=/lib:/usr/lib:$DY_ROOT/lib
export LD_LIBRARY_PATH

#
#  Define Daylight license and password files.  You need to un-comment
#  these lines if your license file is NOT in $DY_ROOT/etc/dy_license.dat
#  (Normally you DO move your license when you customize it, so you'll
#  want to uncomment and modify this line.)
#

DY_LICENSEDATA=/daylight/dy_license.dat
export DY_LICENSEDATA

DY_DATABASE_PASSWORDS_FILE=/daylight/dy_passwords.dat
export DY_DATABASE_PASSWORDS_FILE

#
# define the CEX root directory
#

CX_ROOT=$DY_ROOT/exotic/cex/cex121
export CX_ROOT

#
# define standard sizes (allows HTML IMG optimization)
#

DY_WIDE_WIDTH=400
DY_WIDE_HEIGHT=200
export DY_WIDE_WIDTH DY_WIDE_HEIGHT

DY_LARGE_WIDTH=640
DY_LARGE_HEIGHT=480
export DY_LARGE_WIDTH DY_LARGE_HEIGHT

DY_MEDIUM_WIDTH=240
DY_MEDIUM_HEIGHT=200
export DY_MEDIUM_WIDTH DY_MEDIUM_HEIGHT

DY_SMALL_WIDTH=96
DY_SMALL_HEIGHT=64
export DY_SMALL_WIDTH DY_SMALL_HEIGHT

#
# Definitions for database interfaces
#
# Defaults, if not specified below are:
#
#  server     = the current host
#  thor svc   = "thor" (or $DY_THOR_IPC_SERVICE)
#  merlin svc = "merlin" (or $DY_MERLIN_IPC_SERVICE)
#  user       = "anonymous"
#  userpass   = NULL
#  database   = wdi971demo, acd951demo, spresi95demo, medchem97demo
#  dbpass     = NULL
#
#
#  These are optional.
#
# DY_THOR_IPC_SERVICE="thor"
# DY_MERLIN_IPC_SERVICE="merlin"
# export DY_THOR_IPC_SERVICE DY_MERLIN_IPC_SERVICE
#
# Set the following to the database specification for your thor/merlin
# server and database, as appropriate.
#

DCGI_ACDSPEC="acd972demo@::anonymous"
export DCGI_ACDSPEC

DCGI_MEDCHEMSPEC="medchem98demo@::anonymous"
export DCGI_MEDCHEMSPEC

DCGI_SAVANT_THORSPEC="spresi95demo@::anonymous"
DCGI_SAVANT_MERLINSPEC="spresi95demo@::anonymous"
export DCGI_SAVANT_THORSPEC DCGI_SAVANT_MERLINSPEC

DCGI_WDISPEC="wdi981demo@::anonymous"
export DCGI_WDISPEC

#
# New in 4.51
#

DY_WIZ_HOST=""
DY_WIZ_SERVICE="merlin"
DY_WIZ_INFOUSER="thorinfo"
export DY_WIZ_HOST DY_WIZ_SERVICE DY_WIZ_INFOUSER