*** Copyright Notice ***
 
BeStMan Copyright (c) 2010-2012, The Regents of the University of California, th
rough Lawrence Berkeley National Laboratory (subject to receipt of any required 
approvals from the U.S. Dept. of Energy).  This software was developed under fun
ding from the U.S. Department of Energy and is associated with the Berkeley Lab 
Scientific Data Management Group projects. All rights reserved.

If you have questions about your rights to use or distribute this software, plea
se contact Berkeley Lab's Technology Transfer Department at  TTD@lbl.gov.

NOTICE.  This software was developed under funding from the U.S. Department of E
nergy.  As such, the U.S. Government has been granted for itself and others acti
ng on its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the 
Software to reproduce, prepare derivative works, and perform publicly and displa
y publicly.  Beginning five (5) years after the date permission to assert copyri
ght is obtained from the U.S. Department of Energy, and subject to any subsequen
t five (5) year renewals, the U.S. Government is granted for itself and others a
cting on its behalf a paid-up, nonexclusive, irrevocable, worldwide license in t
he Software to reproduce, prepare derivative works, distribute copies to the pub
lic, perform publicly and display publicly, and to permit others to do so.

#################################################

Berkeley Storage Manager (BeStMan) v2.2.2.x (a.k.a. BeStMan2 v2.2.x)
http://sdm.lbl.gov/bestman
Questions: srm@lbl.gov

BeStMan LICENSE: https://sdm.lbl.gov/wiki/Software/BeStMan/License
BeStMan COPYRIGHT: https://sdm.lbl.gov/wiki/Software/BeStMan/Copyright

Note: Support is not available for the sources.

Dependency requirements are below, and 
each software package follows its own license and copyright:
JDK 1.6.0_27 or 1.7.0
Apache ant 1.8.2
Axis 1.4  
WSDL4j-1.6.2  
Xerces-2.11.0  
Jetty 8.0.1.v20110908  
Java CoG JGlobus 1.8.0  
Java Servlet API 3.0
Slf4j-1.6.2   
Berkeley DB 4.1.10  
which4j-0.21   
vomsjapi 2.0.6   
commons collections 3.2.1 
commons lang 2.6
esapi 2.0.1
joda-time 1.6.2
opensaml 2.5.2
openws 1.4.3
privilege-xacml 2.2.5 
glite-security-trustmanager 2.5.5
glite-security-util-java 2.8.0
velocity 1.7  
Xalan 2.7.1  
XML-security 1.4.5  
Bouncy Castle crypto lib 1.4.6   

###########################################################################

1. To build bestman2 from the source, 
   one of the following JDK and Apache ANT 1.8.2 are required:
   Oracle/SUN JDK 1.6.0_26+, or 
   Oracle/SUN 1.7.0, or 
   OpenJDK 1.7.0

2. CLASSPATH must be defined in the env, 
   including all dependent libraries indicated above.

e.g.  echo $CLASSPATH
.:/software/bestman2/lib/axis/axis.jar:/software/bestman2/lib/axis/commons-discovery-0.2.jar:/software/bestman2/lib/axis/commons-logging-1.1.jar:/software/bestman2/lib/axis/jaxrpc.jar:/software/bestman2/lib/axis/wsdl4j-1.6.2.jar:/software/bestman2/lib/axis/xercesImpl-2.11.0.jar:/software/bestman2/lib/axis/xml-apis-2.11.0.jar:/software/bestman2/lib/gums2/commons-collections-3.2.1.jar:/software/bestman2/lib/gums2/commons-lang-2.6.jar/software/bestman2/lib/gums2/esapi-2.0.1.jar:/software/bestman2/lib/gums2/joda-time-1.6.2.jar:/software/bestman2/lib/gums2/opensaml-2.5.2.jar:/software/bestman2/lib/gums2/openws-1.4.3.jar:/software/bestman2/lib/gums2/privilege-xacml-2.2.5.jar:/software/bestman2/lib/gums2/velocity-1.7.jar:/software/bestman2/lib/gums2/xalan-2.7.1.jar:/software/bestman2/lib/gums2/xmlsec-1.4.5.jar:/software/bestman2/lib/gums2/xmltooling-1.3.3.jar:/software/bestman2/lib/gums2/glite-security-trustmanager-2.5.5.jar:/software/bestman2/lib/gums2/glite-security-util-java-2.8.0.jar:/software/bestman2/lib/jetty/jetty-client-8.0.1.v20110908.jar:/software/bestman2/lib/jetty/jetty-continuation-8.0.1.v20110908.jar:/software/bestman2/lib/jetty/jetty-deploy-8.0.1.v20110908.jar:/software/bestman2/lib/jetty/jetty-http-8.0.1.v20110908.jar:/software/bestman2/lib/jetty/jetty-io-8.0.1.v20110908.jar:/software/bestman2/lib/jetty/jetty-security-8.0.1.v20110908.jar:/software/bestman2/lib/jetty/jetty-server-8.0.1.v20110908.jar:/software/bestman2/lib/jetty/jetty-servlet-8.0.1.v20110908.jar:/software/bestman2/lib/jetty/jetty-util-8.0.1.v20110908.jar:/software/bestman2/lib/jetty/jetty-webapp-8.0.1.v20110908.jar:/software/bestman2/lib/jetty/jetty-xml-8.0.1.v20110908.jar:/software/bestman2/lib/jglobus/cog-axis-1.8.0.jar:/software/bestman2/lib/jglobus/cog-jglobus-1.8.0.jar:/software/bestman2/lib/jglobus/cog-url-1.8.0.jar:/software/bestman2/lib/jglobus/cryptix32.jar:/software/bestman2/lib/jglobus/cryptix-asn1.jar:/software/bestman2/lib/jglobus/jce-jdk13-131.jar:/software/bestman2/lib/jglobus/log4j-1.2.15.jar:/software/bestman2/lib/jglobus/puretls.jar:/software/bestman2/lib/others/jcl-over-slf4j-1.6.0.jar:/software/bestman2/lib/others/je-4.1.10.jar:/software/bestman2/lib/others/servlet-api-3.0.jar:/software/bestman2/lib/others/slf4j-api-1.6.2.jar:/software/bestman2/lib/others/slf4j-log4j12-1.6.2.jar:/software/bestman2/lib/others/slf4j-simple-1.6.2.jar:/software/bestman2/lib/others/which4j.jar:/software/bestman2/lib/voms/bcprov-jdk15-146.jar:/software/bestman2/lib/voms/vomsjapi-2.0.6.jar

3. Run "./configure"
   Default distribution directory is ./dist/
   Other configure options are available with --help.
   e.g. ./configure --prefix=/usr/local/bestman2

4. Run "ant all"
   It will build all bestman2 libraries, 
      install all bestman2 libraries to the distribution directory, and

5. (optional) To run all operations separately,
   Run the following in sequence:
      ant build     # build bestman2 libraries
      ant install   # install bestman2 libraries

6. (optional) Setup files are installed/deployed separately.
   In the LBNL setup directory,
      ant deploy    # deploy setup files including all bestman2 executable
                    # setup files and configuration entries to the distribution 
                    # directory.
