/*
 * $Id: site.def 3158 2010-02-05 13:10:27Z baud $
*/
/*
 * Copyright (C) 1993-2010 by CERN/IT/GD/CT
 * All rights reserved
 */

/*
 * $RCSfile: site.def,v $ $Revision: 3158 $ $Date: 2010-02-05 14:10:27 +0100 (Fri, 05 Feb 2010) $ CERN IT-GD/CT   Jean-Philippe Baud
 */
/* Platform is normally guessed from the CPP predefined symbols */


/* Prefix by default */
prefix = /opt/lcg

/* Default architecture specific libdir name, rewritten by the configure script */
_lib = lib

/* First define the flavour of Name Server to be built */
#define BuildNameServerAsLFC	NO
#define BuildNameServerAsDPNS	YES

#define CgsiGsoapLocation	/usr
#if defined(_WIN32)
#define CupvConfigFile	%%SystemRoot%%\\system32\\drivers\\etc\\CUPVCONFIG
#else
#define CupvConfigFile	/etc/CUPVCONFIG
#endif
#define CupvHost	"UNUSED"
#define CupvSpool	/var/spool/upv
#define DicomcopySpool	/var/log/dicomcopy
#define DliSpool	/var/log/dli
#define DomainName	cern.ch
#if defined(_WIN32)
#define DpmConfigFile	%%SystemRoot%%\\system32\\drivers\\etc\\DPMCONFIG
#else
#define DpmConfigFile	$(prefix)/etc/DPMCONFIG
#endif
#define DpmcopySpool	/var/log/dpmcopy
#define DpmHost	"UNUSED"
#define DpmSpool	/var/log/dpm
#define FilManDir       $(prefix)/share/man/man4
#define FilManSuffix    4
#define GlobusLocation	/opt/globus
#if defined(__ia64__) || defined(__x86_64)
#define GlobusFlavour	gcc64dbg
#else
#define GlobusFlavour	gcc32dbg
#endif
#define GsoapLocation	/usr/local
#define GsoapVersion	2.7
/* add '-z' here, if used with gSOAP v2.7.6e or higher */
#define GsoapWsdl2hFlags
#define ShareDir	$(prefix)/share
#define IdMapFile	$(prefix)/etc/lcgdm-mapfile
#if defined(_WIN32)
#define InstallBinDir	\\cern.ch\dfs\Applications\CERN\LFC\bin
#else
#define InstallBinDir	$(prefix)/bin
#endif
#if defined(_WIN32)
#define InstallIncludeDir       \\cern.ch\dfs\Applications\CERN\LFC\include
#else
#define InstallIncludeDir       $(prefix)/include
#endif
#if defined(_WIN32)
#define InstallLibDir	\\cern.ch\dfs\Applications\CERN\LFC\lib
#else
#define InstallLibDir	$(prefix)/$(_lib)
#endif
#if defined(_WIN32)
#define InstallPerlDir   \\cern.ch\dfs\Applications\CERN\LFC\lib\perl
#else
#define InstallPerlDir   $(shell perl -MConfig -e '$$x = $$Config{vendorarchexp}; $$x =~ s!$$Config{prefix}!$(prefix)! ; print $$x')
#endif
#if defined(_WIN32)
#define InstallPythonDir   \\cern.ch\dfs\Applications\CERN\LFC\lib\python
#else
#define InstallPythonDir   $(shell python -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,'$(prefix)')")
#endif
#define LibManDir       $(prefix)/share/man/man3
#define LibManSuffix    3
#if defined(_WIN32)
#define LocalHostsList	%%SystemRoot%%\\system32\\drivers\\etc\\shift.localhosts
#else
#define LocalHostsList	/etc/shift.localhosts
#endif
#define ManDir  $(prefix)/share/man/man1
#define ManSuffix       1
#define MySQLLocation	/usr
#define NfsRoot	/shift
#if defined(_WIN32)
#define NsConfigFile	%%SystemRoot%%\\system32\\drivers\\etc\\NSCONFIG
#else
#define NsConfigFile	$(prefix)/etc/NSCONFIG
#endif
#define NsHost	"UNUSED"
#if BuildNameServerAsLFC
#define NsHostPfx	lfc
#define NsSpool	/var/log/lfc
#define NsRoot  "/grid"
#else
#if BuildNameServerAsDPNS
#define NsHostPfx	dpns
#define NsSpool	/var/log/dpns
#define NsRoot  "/dpm"
#endif
#endif
#if defined(_WIN32)
#define OperatorDir	%%SystemRoot%%
#else
#define OperatorDir	/etc/operator
#endif
#if defined(_WIN32)
#define RemoteHostsList %%SystemRoot%%\\system32\\drivers\\etc\\shift.remhosts
#else
#define RemoteHostsList /etc/shift.remhosts
#endif
#define RfioSpool	/var/log/rfio
#define SacctDir	/var/spool/sacct
#if defined(_WIN32)
#define ShiftConfigFile	%%SystemRoot%%\\system32\\drivers\\etc\\shift.conf
#else
#define ShiftConfigFile	/etc/shift.conf
#endif
#define Srmv1Spool /var/log/srmv1
#define Srmv2Spool /var/log/srmv2
#define Srmv2_2Spool /var/log/srmv2.2
#define StagerSuperGroup	dpmmgr
#define StagerSuperUser		dpmmgr
#define SwigLocation	/usr
/* the swig library location below is rewritten by the configure script */
#define SwigLib			/usr/lib/swig
#define SysconfDir	$(prefix)/etc
#if BuildNameServerAsLFC
#define TopLibraryName		lfc
#else
#if BuildNameServerAsDPNS
#define TopLibraryName		dpm
#else
#define TopLibraryName		lcg-dm-common
#endif
#endif
#define VomsLocation	/opt/glite

#define BuildDicomCopy		NO
#define BuildDLI		NO
#define BuildDPMClient		YES
#define BuildDPMServer		YES
#define BuildInterfaces		YES
#define BuildNameServerClient	YES
#define BuildNameServerDaemon	YES
#define BuildNameServerLibrary	YES
#define BuildRfioClient		YES
#define BuildRfioServer		YES
#define BuildSecurity		YES
#define BuildSRMv1Server	YES
#define BuildSRMv2Server	YES
#define BuildSRMv2_2Server	YES
#define BuildTest		NO

#define Accounting		YES
#define UseCupv			NO
#define UseGSI			YES
#define UseKRB4			NO
#define UseKRB5			NO
#define UseMySQL		YES
#define UseNroff		NO
#define UseOracle		NO
#define UsePostgres		NO
#define UseVirtualIds		YES
#define UseVOMS			YES

#if BuildSecurity
#define SecMakeStaticLibrary	NO

#if UseHeimdalKrb5
#define Krb5Config		/usr/heimdal/bin/krb5-config
#else
#define Krb5Config		/usr/kerberos/bin/krb5-config
#endif
#define Krb4Config		/usr/kerberos4/bin/krb4-config
#endif /* BuildSecurity */
