Skip to content
Snippets Groups Projects
Commit 2b51cebb authored by Dave Casper's avatar Dave Casper
Browse files

Configure database lookup

parent 53d45fc9
No related branches found
No related tags found
No related merge requests found
# $Id: CMakeLists.txt 720646 2016-01-29 14:01:10Z krasznaa $
#
# Build configuration for package AtlasAuthentication.
#
# Declare the package's name:
atlas_subdir( FaserAuthentication )
# If we are in release rebuilding mode, stop here:
if( ATLAS_RELEASE_MODE )
return()
endif()
# Install the local file(s) of the package:
atlas_install_xmls( data/*.xml )
atlas_install_runtime( data/dbreplica.config )
#atlas_install_scripts( share/setupLocalDBReplica_CERN.sh )
# Find the ATLAS externals area:
if( NOT SITEROOT )
if( ENV{SITEROOT} )
set( SITEROOT $ENV{SITEROOT} )
else()
set( SITEROOT "/afs/cern.ch" )
endif()
endif()
if( NOT FASER_EXTERNAL )
if( ENV{FASER_EXTERNAL} )
set( FASER_EXTERNAL $ENV{FASER_EXTERNAL} )
else()
set( FASER_EXTERNAL "${SITEROOT}/faser/offline/external" )
endif()
endif()
# Pick up authentication.xml:
set( FaserAuthentication_native_version "v18" )
set( FaserAuthentication_home
"${FASER_EXTERNAL}/FaserAuth/${FaserAuthentication_native_version}" )
atlas_install_xmls( ${FaserAuthentication_home}/authentication.xml )
# Configure the environment setup module:
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/FaserAuthenticationEnvironmentConfig.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/FaserAuthenticationEnvironmentConfig.cmake
@ONLY )
# And now "find" it:
set( FaserAuthenticationEnvironment_DIR ${CMAKE_CURRENT_BINARY_DIR}
CACHE PATH "Location of FaserAuthenticationEnvironmentConfig.cmake" )
find_package( FaserAuthenticationEnvironment )
# $Id: AtlasAuthenticationEnvironmentConfig.cmake.in 732717 2016-03-29 11:50:37Z krasznaa $
#
# This module is used to set up some environment variables for
# using authentication correctly.
#
# Set the environment variables:
set( FASERAUTHENTICATIONENVIRONMENT_ENVIRONMENT
FORCESET CORAL_AUTH_PATH
\${@CMAKE_PROJECT_NAME@_DIR}/@CMAKE_INSTALL_XMLDIR@/FaserAuthentication
FORCESET CORAL_DBLOOKUP_PATH
\${@CMAKE_PROJECT_NAME@_DIR}/@CMAKE_INSTALL_XMLDIR@/FaserAuthentication )
# Silently declare the module found:
set( FASERAUTHENTICATIONENVIRONMENT_FOUND TRUE )
<?xml version="1.0" ?>
<servicelist>
<logicalservice name="FASERDD">
<service name="sqlite_file:data/geomDB_sqlite" accessMode="read" />
</logicalservice>
</servicelist>
# Configuration for DBReplicaSvc
# lines are space-separated lists of domains, followed by = and list of
# Oracle servers (names as in tnsnames.ora file)
# parser for this file is primative - all tokens must be separated by 1 space
# autogenerated from TiersOfATLASCache.py - do not edit
default =
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment