diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-06-05 05:38:55 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-06-05 05:38:55 +0000 |
commit | 70520addf9ca828a9e1c08652999902bdc8d1809 (patch) | |
tree | ac364cba9028a1c121a6edfaa23fea76d812e6f3 /sca-cpp/trunk/ubuntu | |
parent | 69c6e0618ad4f18d18771ef91aacbb5c5a68f3a2 (diff) |
Add build support for a minimum distribution using prebuilt dependencies from Ubuntu 9.10.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@951656 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/ubuntu/Makefile.am | 2 | ||||
-rwxr-xr-x | sca-cpp/trunk/ubuntu/ubuntu-bin-image | 4 | ||||
-rwxr-xr-x | sca-cpp/trunk/ubuntu/ubuntu-dev-image | 6 | ||||
-rwxr-xr-x | sca-cpp/trunk/ubuntu/ubuntu-install | 226 | ||||
-rwxr-xr-x | sca-cpp/trunk/ubuntu/ubuntu-install-all | 292 |
5 files changed, 314 insertions, 216 deletions
diff --git a/sca-cpp/trunk/ubuntu/Makefile.am b/sca-cpp/trunk/ubuntu/Makefile.am index 9c519eded4..3e81baa328 100644 --- a/sca-cpp/trunk/ubuntu/Makefile.am +++ b/sca-cpp/trunk/ubuntu/Makefile.am @@ -15,5 +15,5 @@ # specific language governing permissions and limitations # under the License. -dist_noinst_SCRIPTS = ubuntu-bin-image ubuntu-dev-image ubuntu-gcc-4.5 ubuntu-install uec2-bin-image uec2-conf uec2-setenv uec2-start uec2-status uec2-stop +dist_noinst_SCRIPTS = ubuntu-bin-image ubuntu-dev-image ubuntu-gcc-4.5 ubuntu-install ubuntu-install-all uec2-bin-image uec2-conf uec2-setenv uec2-start uec2-status uec2-stop diff --git a/sca-cpp/trunk/ubuntu/ubuntu-bin-image b/sca-cpp/trunk/ubuntu/ubuntu-bin-image index 4ba1a2fec4..523fcaff34 100755 --- a/sca-cpp/trunk/ubuntu/ubuntu-bin-image +++ b/sca-cpp/trunk/ubuntu/ubuntu-bin-image @@ -68,6 +68,6 @@ if [ "$?" != "0" ]; then fi # Download and install the Tuscany runtime -wget http://people.apache.org/~jsdelfino/tuscany/test/tuscany-sca-cpp-1.0.0-SNAPSHOT.tar.gz -tar xzf tuscany-sca-cpp-1.0.0-SNAPSHOT.tar.gz +wget http://people.apache.org/~jsdelfino/tuscany/test/tuscany-sca-cpp-1.0.tar.gz +tar xzf tuscany-sca-cpp-1.0.tar.gz diff --git a/sca-cpp/trunk/ubuntu/ubuntu-dev-image b/sca-cpp/trunk/ubuntu/ubuntu-dev-image index a2b45ece3b..3d3827bc81 100755 --- a/sca-cpp/trunk/ubuntu/ubuntu-dev-image +++ b/sca-cpp/trunk/ubuntu/ubuntu-dev-image @@ -32,7 +32,7 @@ cd /mnt/tuscany # Download and run install script sudo apt-get -y install wget -wget http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/ubuntu/ubuntu-install -chmod +x ./ubuntu-install -./ubuntu-install +wget http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/ubuntu/ubuntu-install-all +chmod +x ./ubuntu-install-all +./ubuntu-install-all diff --git a/sca-cpp/trunk/ubuntu/ubuntu-install b/sca-cpp/trunk/ubuntu/ubuntu-install index 1b71610367..fc8eb32a15 100755 --- a/sca-cpp/trunk/ubuntu/ubuntu-install +++ b/sca-cpp/trunk/ubuntu/ubuntu-install @@ -18,6 +18,9 @@ # Install the required system tools and libraries, the runtime dependencies and # the Tuscany SCA runtime on a fresh Ubuntu Server 9.10 system. +# Build a minimal distribution including only the core runtime, support for +# Python and C++ components, memcached and tinycdb. + # Display commands as they are executed set -x @@ -38,245 +41,48 @@ fi # exit $? #fi -# Build Apache HTTP server -sudo apt-get -y install libssl-dev +# Install Apache HTTP server +sudo apt-get -y install libssl-dev apache2 apache2-utils apache2-prefork-dev libaprutil1-dev libapr1-dev if [ "$?" != "0" ]; then exit $? fi -wget http://www.apache.org/dist/httpd/httpd-2.2.15.tar.gz -tar xzf httpd-2.2.15.tar.gz -cd httpd-2.2.15 -./configure --enable-ssl --enable-proxy --enable-rewrite --with-included-apr --with-mpm=prefork --prefix=$build/httpd-2.2.15-bin -make -make install -if [ "$?" != "0" ]; then - exit $? -fi -cd $build -# Build Memcached -sudo apt-get -y install libevent-dev +# Install Memcached +sudo apt-get -y install memcached if [ "$?" != "0" ]; then exit $? fi -wget http://memcached.googlecode.com/files/memcached-1.4.4.tar.gz -tar xzf memcached-1.4.4.tar.gz -cd memcached-1.4.4 -./configure --prefix=$build/memcached-1.4.4-bin -make -make install -if [ "$?" != "0" ]; then - exit $? -fi -cd $build -# Build Tinycdb -wget http://www.corpit.ru/mjt/tinycdb/tinycdb_0.77.tar.gz -tar xzf tinycdb_0.77.tar.gz -cd tinycdb-0.77 -make -make prefix=$build/tinycdb-0.77-bin install +# Install Tinycdb +sudo apt-get -y install tinycdb libcdb-dev if [ "$?" != "0" ]; then exit $? fi -cd $build -# Build Libcurl -wget http://curl.haxx.se/download/curl-7.19.5.tar.gz -tar xzf curl-7.19.5.tar.gz -cd curl-7.19.5 -./configure --prefix=$build/curl-7.19.5-bin -make -make install +# Install Libcurl +sudo apt-get -y install curl libcurl4-openssl-dev if [ "$?" != "0" ]; then exit $? fi -cd $build # Build Libxml2 -wget ftp://xmlsoft.org/libxml2/libxml2-sources-2.7.7.tar.gz -tar xzf libxml2-sources-2.7.7.tar.gz -cd libxml2-2.7.7 -./configure --prefix=$build/libxml2-2.7.7-bin -make -make install -if [ "$?" != "0" ]; then - exit $? -fi -cd $build - -# Build TraceMonkey -sudo apt-get -y install autoconf2.13 zip -if [ "$?" != "0" ]; then - exit $? -fi -wget -O tracemonkey-e4364736e170.tar.gz http://hg.mozilla.org/tracemonkey/archive/e4364736e170.tar.gz -tar xzf tracemonkey-e4364736e170.tar.gz -cd tracemonkey-e4364736e170/js/src -autoconf2.13 -./configure --prefix=$build/tracemonkey-bin -make -make install -if [ "$?" != "0" ]; then - exit $? -fi -cd $build - -# Install Google AppEngine SDK -wget http://googleappengine.googlecode.com/files/google_appengine_1.3.2.zip -unzip google_appengine_1.3.2.zip - -# Build Apache Axis2/C -sudo apt-get -y install pkg-config -if [ "$?" != "0" ]; then - exit $? -fi -wget http://www.apache.org/dist/ws/axis2-c/1_6_0/axis2c-src-1.6.0.tar.gz -tar xzf axis2c-src-1.6.0.tar.gz -cd axis2c-src-1.6.0 -./configure --enable-libxml2 LIBXML2_CFLAGS="-I$build/libxml2-2.7.7-bin/include/libxml2" LIBXML2_LIBS="-L$build/libxml2-2.7.7-bin/lib -lxml2" --enable-openssl --with-apache2=$build/httpd-2.2.15-bin/include --prefix=$build/axis2c-1.6.0-bin -make -make install -if [ "$?" != "0" ]; then - exit $? -fi -export AXIS2C_HOME=$build/axis2c-1.6.0-bin -cd samples -./configure --prefix=$build/axis2c-1.6.0-bin --with-axis2=$build/axis2c-1.6.0-bin/include/axis2-1.6.0 -make -make install -if [ "$?" != "0" ]; then - exit $? -fi -cd $build - -# Build Apache Qpid/C++ -sudo apt-get -y install libboost-dev libboost-program-options-dev libboost-filesystem-dev uuid-dev -if [ "$?" != "0" ]; then - exit $? -fi -sudo -s ln -s /usr/lib/libboost_program_options-mt.so /usr/lib/libboost_program_options.so -sudo -s ln -s /usr/lib/libboost_filesystem-mt.so /usr/lib/libboost_filesystem.so -wget http://www.apache.org/dist/qpid/0.6/qpid-cpp-0.6.tar.gz -tar xzf qpid-cpp-0.6.tar.gz -cd qpidc-0.6 -./configure --prefix=$build/qpidc-0.6-bin -make -make install +sudo apt-get -y install libxml2 libxml2-dev if [ "$?" != "0" ]; then exit $? fi -cd $build - -# Build Libexpat -wget http://sourceforge.net/projects/expat/files/expat/2.0.1/expat-2.0.1.tar.gz/download -tar xzf expat-2.0.1.tar.gz -cd expat-2.0.1 -./configure --prefix=$build/expat-2.0.1-bin -make -make install -if [ "$?" != "0" ]; then - exit $? -fi -cd $build - -# Build Libstrophe -git clone git://github.com/jsdelfino/libstrophe.git -cd libstrophe -./bootstrap.sh -./configure --prefix=$build/libstrophe-bin --with-expat=$build/expat-2.0.1-bin -make -make install -if [ "$?" != "0" ]; then - exit $? -fi - -# Install Apache Vysper -sudo apt-get -y install openjdk-6-jdk -if [ "$?" != "0" ]; then - exit $? -fi -wget http://www.apache.org/dist/mina/vysper/0.5/vysper-0.5-bin.tar.gz -tar xzf vysper-0.5-bin.tar.gz -if [ "$?" != "0" ]; then - exit $? -fi - -# Build PostgreSQL -sudo apt-get -y install libreadline-dev -if [ "$?" != "0" ]; then - exit $? -fi -wget ftp://ftp9.us.postgresql.org/pub/mirrors/postgresql/source/v9.0beta1/postgresql-9.0beta1.tar.gz -tar xzf postgresql-9.0beta1.tar.gz -cd postgresql-9.0beta1 -./configure --prefix=$build/postgresql-9.0-bin -make -make install -if [ "$?" != "0" ]; then - exit $? -fi -cd $build - -# Build Apache Thrift -sudo apt-get -y install bison flex -if [ "$?" != "0" ]; then - exit $? -fi -wget http://www.apache.org/dist/incubator/thrift/0.2.0-incubating/thrift-0.2.0-incubating.tar.gz -tar xzf thrift-0.2.0-incubating.tar.gz -cd thrift-0.2.0 -./bootstrap.sh -./configure --prefix=$build/thrift-0.2.0-bin PY_PREFIX=$build/thrift-0.2.0-bin --with-java=no --with-erlang=no --with-perl=no --with-ruby=no --with-csharp=no --disable-static -make -make install -if [ "$?" != "0" ]; then - exit $? -fi -cd $build - -# Build Facebook fb303 -cd thrift-0.2.0/contrib/fb303 -./bootstrap.sh -./configure --prefix=$build/thrift-0.2.0-bin/contrib/fb303 PY_PREFIX=$build/thrift-0.2.0-bin/contrib/fb303 --with-thriftpath=$build/thrift-0.2.0-bin --disable-static -make -make install -if [ "$?" != "0" ]; then - exit $? -fi -cp cpp/lib/libfb303.so $build/thrift-0.2.0-bin/contrib/fb303/lib -cd $build - -# Build Facebook Scribe -wget http://github.com/downloads/facebook/scribe/scribe-2.2.tar.gz -tar xzf scribe-2.2.tar.gz -cd scribe -./bootstrap.sh --prefix=$build/scribe-2.2-bin PY_PREFIX=$build/scribe-2.2-bin --with-thriftpath=$build/thrift-0.2.0-bin --with-fb303path=$build/thrift-0.2.0-bin/contrib/fb303 --disable-static -make -make install -if [ "$?" != "0" ]; then - exit $? -fi -cp src/lib/libscribe.so $build/scribe-2.2-bin/lib -cd $build -# Build Apache Libcloud -wget http://www.apache.org/dist/incubator/libcloud/apache-libcloud-incubating-0.3.1.tar.bz2 -tar xjf apache-libcloud-incubating-0.3.1.tar.bz2 -cd apache-libcloud-0.3.1 -python setup.py build -python setup.py install --home $build/libcloud-0.3.1-bin +# Install TraceMonkey +sudo apt-get -y install xulrunner-1.9.1 xulrunner-1.9.1-dev if [ "$?" != "0" ]; then exit $? fi -cd $build # Build Tuscany SCA git clone git://git.apache.org/tuscany-sca-cpp.git cd tuscany-sca-cpp cp etc/git-exclude .git/info/exclude ./bootstrap -./configure --prefix=$build/tuscany-sca-cpp-bin --with-curl=$build/curl-7.19.5-bin --with-apr=$build/httpd-2.2.15-bin --with-httpd=$build/httpd-2.2.15-bin --with-memcached=$build/memcached-1.4.4-bin --with-tinycdb=$build/tinycdb-0.77-bin --with-js-include=$build/tracemonkey-bin/include/js --with-js-lib=$build/tracemonkey-bin/lib --with-libcloud=$build/libcloud-0.3.1-bin --enable-threads --enable-python --enable-gae --with-gae=$build/google_appengine --enable-java --with-java=/usr/lib/jvm/java-6-openjdk --enable-webservice --with-libxml2=$build/libxml2-2.7.7-bin --with-axis2c=$build/axis2c-1.6.0-bin --enable-queue --with-qpidc=$build/qpidc-0.6-bin --enable-chat --with-libstrophe=$build/libstrophe-bin --with-vysper=$build/vysper-0.5 --enable-sqldb --with-pgsql=$build/postgresql-9.0-bin --enable-log --with-thrift=$build/thrift-0.2.0-bin --with-scribe=$build/scribe-2.2-bin +./configure --prefix=$build/tuscany-sca-cpp-bin make make install if [ "$?" != "0" ]; then @@ -285,5 +91,5 @@ fi cd $build # Create bin archive -tar czf tuscany-sca-cpp-1.0.0-SNAPSHOT.tar.gz tuscany-sca-cpp tuscany-sca-cpp-bin axis2c-1.6.0-bin libxml2-2.7.7-bin curl-7.19.5-bin httpd-2.2.15-bin tracemonkey-bin google_appengine libstrophe-bin memcached-1.4.4-bin tinycdb-0.77-bin qpidc-0.6-bin vysper-0.5 postgresql-9.0-bin thrift-0.2.0-bin scribe-2.2-bin libcloud-0.3.1-bin +tar czf tuscany-sca-cpp-1.0.tar.gz tuscany-sca-cpp tuscany-sca-cpp-bin diff --git a/sca-cpp/trunk/ubuntu/ubuntu-install-all b/sca-cpp/trunk/ubuntu/ubuntu-install-all new file mode 100755 index 0000000000..afa6ff3d28 --- /dev/null +++ b/sca-cpp/trunk/ubuntu/ubuntu-install-all @@ -0,0 +1,292 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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. + +# Install the required system tools and libraries, the runtime dependencies and +# the Tuscany SCA runtime on a fresh Ubuntu Server 9.10 system. + +# Build a complete distribution including the core runtime, all modules and +# components and dependencies from source. + +# Display commands as they are executed +set -x + +# Build and install in the current directory +build=`pwd` + +# Install core dev tools +sudo apt-get -y install wget git-core autoconf automake libtool g++ +if [ "$?" != "0" ]; then + exit $? +fi + +# Uncomment to install GCC 4.5 +#wget http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/ubuntu/ubuntu-gcc-4.5 +#chmod +x ./ubuntu-gcc-4.5 +#./ubuntu-gcc-4.5 +#if [ "$?" != "0" ]; then +# exit $? +#fi + +# Build Apache HTTP server +sudo apt-get -y install libssl-dev +if [ "$?" != "0" ]; then + exit $? +fi +wget http://www.apache.org/dist/httpd/httpd-2.2.15.tar.gz +tar xzf httpd-2.2.15.tar.gz +cd httpd-2.2.15 +./configure --enable-ssl --enable-proxy --enable-mods-shared=most --with-included-apr --with-mpm=prefork --prefix=$build/httpd-2.2.15-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Build Memcached +sudo apt-get -y install libevent-dev +if [ "$?" != "0" ]; then + exit $? +fi +wget http://memcached.googlecode.com/files/memcached-1.4.4.tar.gz +tar xzf memcached-1.4.4.tar.gz +cd memcached-1.4.4 +./configure --prefix=$build/memcached-1.4.4-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Build Tinycdb +wget http://www.corpit.ru/mjt/tinycdb/tinycdb_0.77.tar.gz +tar xzf tinycdb_0.77.tar.gz +cd tinycdb-0.77 +make +make prefix=$build/tinycdb-0.77-bin install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Build Libcurl +wget http://curl.haxx.se/download/curl-7.19.5.tar.gz +tar xzf curl-7.19.5.tar.gz +cd curl-7.19.5 +./configure --prefix=$build/curl-7.19.5-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Build Libxml2 +wget ftp://xmlsoft.org/libxml2/libxml2-sources-2.7.7.tar.gz +tar xzf libxml2-sources-2.7.7.tar.gz +cd libxml2-2.7.7 +./configure --prefix=$build/libxml2-2.7.7-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Build TraceMonkey +sudo apt-get -y install autoconf2.13 zip +if [ "$?" != "0" ]; then + exit $? +fi +wget -O tracemonkey-e4364736e170.tar.gz http://hg.mozilla.org/tracemonkey/archive/e4364736e170.tar.gz +tar xzf tracemonkey-e4364736e170.tar.gz +cd tracemonkey-e4364736e170/js/src +autoconf2.13 +./configure --prefix=$build/tracemonkey-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Install Google AppEngine SDK +wget http://googleappengine.googlecode.com/files/google_appengine_1.3.2.zip +unzip google_appengine_1.3.2.zip + +# Build Apache Axis2/C +sudo apt-get -y install pkg-config +if [ "$?" != "0" ]; then + exit $? +fi +wget http://www.apache.org/dist/ws/axis2-c/1_6_0/axis2c-src-1.6.0.tar.gz +tar xzf axis2c-src-1.6.0.tar.gz +cd axis2c-src-1.6.0 +./configure --enable-libxml2 LIBXML2_CFLAGS="-I$build/libxml2-2.7.7-bin/include/libxml2" LIBXML2_LIBS="-L$build/libxml2-2.7.7-bin/lib -lxml2" --enable-openssl --with-apache2=$build/httpd-2.2.15-bin/include --prefix=$build/axis2c-1.6.0-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +export AXIS2C_HOME=$build/axis2c-1.6.0-bin +cd samples +./configure --prefix=$build/axis2c-1.6.0-bin --with-axis2=$build/axis2c-1.6.0-bin/include/axis2-1.6.0 +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Build Apache Qpid/C++ +sudo apt-get -y install libboost-dev libboost-program-options-dev libboost-filesystem-dev uuid-dev +if [ "$?" != "0" ]; then + exit $? +fi +sudo -s ln -s /usr/lib/libboost_program_options-mt.so /usr/lib/libboost_program_options.so +sudo -s ln -s /usr/lib/libboost_filesystem-mt.so /usr/lib/libboost_filesystem.so +wget http://www.apache.org/dist/qpid/0.6/qpid-cpp-0.6.tar.gz +tar xzf qpid-cpp-0.6.tar.gz +cd qpidc-0.6 +./configure --prefix=$build/qpidc-0.6-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Build Libexpat +wget http://sourceforge.net/projects/expat/files/expat/2.0.1/expat-2.0.1.tar.gz/download +tar xzf expat-2.0.1.tar.gz +cd expat-2.0.1 +./configure --prefix=$build/expat-2.0.1-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Build Libstrophe +git clone git://github.com/jsdelfino/libstrophe.git +cd libstrophe +./bootstrap.sh +./configure --prefix=$build/libstrophe-bin --with-expat=$build/expat-2.0.1-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi + +# Install Apache Vysper +sudo apt-get -y install openjdk-6-jdk +if [ "$?" != "0" ]; then + exit $? +fi +wget http://www.apache.org/dist/mina/vysper/0.5/vysper-0.5-bin.tar.gz +tar xzf vysper-0.5-bin.tar.gz +if [ "$?" != "0" ]; then + exit $? +fi + +# Build PostgreSQL +sudo apt-get -y install libreadline-dev +if [ "$?" != "0" ]; then + exit $? +fi +wget ftp://ftp9.us.postgresql.org/pub/mirrors/postgresql/source/v9.0beta1/postgresql-9.0beta1.tar.gz +tar xzf postgresql-9.0beta1.tar.gz +cd postgresql-9.0beta1 +./configure --prefix=$build/postgresql-9.0-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Build Apache Thrift +sudo apt-get -y install bison flex +if [ "$?" != "0" ]; then + exit $? +fi +wget http://www.apache.org/dist/incubator/thrift/0.2.0-incubating/thrift-0.2.0-incubating.tar.gz +tar xzf thrift-0.2.0-incubating.tar.gz +cd thrift-0.2.0 +./bootstrap.sh +./configure --prefix=$build/thrift-0.2.0-bin PY_PREFIX=$build/thrift-0.2.0-bin --with-java=no --with-erlang=no --with-perl=no --with-ruby=no --with-csharp=no --disable-static +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Build Facebook fb303 +cd thrift-0.2.0/contrib/fb303 +./bootstrap.sh +./configure --prefix=$build/thrift-0.2.0-bin/contrib/fb303 PY_PREFIX=$build/thrift-0.2.0-bin/contrib/fb303 --with-thriftpath=$build/thrift-0.2.0-bin --disable-static +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cp cpp/lib/libfb303.so $build/thrift-0.2.0-bin/contrib/fb303/lib +cd $build + +# Build Facebook Scribe +wget http://github.com/downloads/facebook/scribe/scribe-2.2.tar.gz +tar xzf scribe-2.2.tar.gz +cd scribe +./bootstrap.sh --prefix=$build/scribe-2.2-bin PY_PREFIX=$build/scribe-2.2-bin --with-thriftpath=$build/thrift-0.2.0-bin --with-fb303path=$build/thrift-0.2.0-bin/contrib/fb303 --disable-static +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cp src/lib/libscribe.so $build/scribe-2.2-bin/lib +cd $build + +# Build Apache Libcloud +wget http://www.apache.org/dist/incubator/libcloud/apache-libcloud-incubating-0.3.1.tar.bz2 +tar xjf apache-libcloud-incubating-0.3.1.tar.bz2 +cd apache-libcloud-0.3.1 +python setup.py build +python setup.py install --home $build/libcloud-0.3.1-bin +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Build Tuscany SCA +git clone git://git.apache.org/tuscany-sca-cpp.git +cd tuscany-sca-cpp +cp etc/git-exclude .git/info/exclude +./bootstrap +./configure --prefix=$build/tuscany-sca-cpp-bin --with-curl=$build/curl-7.19.5-bin --with-apr=$build/httpd-2.2.15-bin --with-httpd=$build/httpd-2.2.15-bin --with-memcached=$build/memcached-1.4.4-bin --with-tinycdb=$build/tinycdb-0.77-bin --with-js-include=$build/tracemonkey-bin/include/js --with-js-lib=$build/tracemonkey-bin/lib --with-libcloud=$build/libcloud-0.3.1-bin --enable-threads --enable-python --enable-gae --with-gae=$build/google_appengine --enable-java --with-java=/usr/lib/jvm/java-6-openjdk --enable-webservice --with-libxml2=$build/libxml2-2.7.7-bin --with-axis2c=$build/axis2c-1.6.0-bin --enable-queue --with-qpidc=$build/qpidc-0.6-bin --enable-chat --with-libstrophe=$build/libstrophe-bin --with-vysper=$build/vysper-0.5 --enable-sqldb --with-pgsql=$build/postgresql-9.0-bin --enable-log --with-thrift=$build/thrift-0.2.0-bin --with-scribe=$build/scribe-2.2-bin +make +make install +if [ "$?" != "0" ]; then + exit $? +fi +cd $build + +# Create bin archive +tar czf tuscany-sca-cpp-1.0.tar.gz tuscany-sca-cpp tuscany-sca-cpp-bin axis2c-1.6.0-bin libxml2-2.7.7-bin curl-7.19.5-bin httpd-2.2.15-bin tracemonkey-bin google_appengine libstrophe-bin memcached-1.4.4-bin tinycdb-0.77-bin qpidc-0.6-bin vysper-0.5 postgresql-9.0-bin thrift-0.2.0-bin scribe-2.2-bin libcloud-0.3.1-bin + |