##############################################################################
# Copyright (c) Members of the EGEE Collaboration. 2004. 
# See http://www.eu-egee.org/partners/ for details on the copyright 
# holders.  
#
# Licensed under the Apache License, Version 2.0 (the "License"); 
# you may not use this file except in compliance with the License. 
# You may obtain a copy of the License at 
#
#    http://www.apache.org/licenses/LICENSE-2.0 
#
# Unless required by applicable law or agreed to in writing, software 
# distributed under the License is distributed on an "AS IS" BASIS, 
# WITHOUT WARRANTIES OR CONDITIONS 
# OF ANY KIND, either express or implied. 
# See the License for the specific language governing permissions and 
# limitations under the License.
##############################################################################
#
# NAME :        config_wn
#
# DESCRIPTION : This function configures the 3.1 WN
#
# AUTHORS :     Andreas.Unterkircher@cern.ch
#               Gergely.Debreczeni@cern.ch
#               Robert.Harakaly@cern.ch
#
# NOTES :       
#
# YAIM MODULE:  glite-yaim-clients
#                 
##############################################################################

function config_wn_check () {

  requires $1 SITE_NAME
  return $?

}

function config_wn_setenv (){
  yaimgridenv_set     SITE_NAME		${SITE_NAME}					                          # general
#  yaimgridpath_append LD_LIBRARY_PATH 	${GLITE_EXTERNAL_ROOT:-}/opt/c-ares/lib/
  if [ -d ${INSTALL_ROOT}/classads/lib64/ ]; then	
    yaimgridpath_append LD_LIBRARY_PATH 	${INSTALL_ROOT}/classads/lib64/	
  fi

  yaimgridenv_set GLITE_ENV_SET TRUE
  if [ "$SITE_BDII_HOST" ]; then
    yaimgridenv_set SITE_GIIS_URL ${SITE_BDII_HOST}
  fi
  if [ "$EDG_WL_SCRATCH" ]; then
     yaimgridenv_set EDG_WL_SCRATCH ${EDG_WL_SCRATCH}
  fi
  if [ "$GLITE_LOCAL_CUSTOMIZATION_DIR" ]; then
     yaimgridenv_set GLITE_LOCAL_CUSTOMIZATION_DIR ${GLITE_LOCAL_CUSTOMIZATION_DIR}
  fi

}

function config_wn(){
	return 0
}
