Author: jfrederic.clere(a)jboss.com
Date: 2010-03-20 13:16:52 -0400 (Sat, 20 Mar 2010)
New Revision: 2640
Added:
trunk/build/unix/buildbin.traffic_server.sh
trunk/build/unix/buildsrc.traffic_server.sh
Modified:
trunk/build/unix/package.list
Log:
Add TS :-)
Added: trunk/build/unix/buildbin.traffic_server.sh
===================================================================
--- trunk/build/unix/buildbin.traffic_server.sh (rev 0)
+++ trunk/build/unix/buildbin.traffic_server.sh 2010-03-20 17:16:52 UTC (rev 2640)
@@ -0,0 +1,66 @@
+#!/bin/sh
+# Copyright(c) 2010 Red Hat Middleware, LLC,
+# and individual contributors as indicated by the @authors tag.
+# See the copyright.txt in the distribution for a
+# full listing of individual contributors.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library in the file COPYING.LIB;
+# if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+#
+# @author Jean-Frederic Clere
+#
+echo ""
+echo "Running : `basename $0` $LastChangedDate: 2009-07-09 18:37:49 +0200 (Thu, 09
Jul 2009) $"
+echo ""
+echo "Started : `date`"
+echo "Common : $1"
+echo "Prefix : $2"
+echo "Output : $3"
+echo "OpenSSL : $4"
+echo "Static : $5"
+echo "Sources : $6"
+echo ""
+
+
+# parameters
+# $1: Location of the common libraries.
+# $2: Destination location.
+# $3: Location where to put the binaries.
+# $4: Use OpenSSL.
+# $5: Use static build.
+# $6: Location of the sources.
+
+common_loc=$1
+prefix_loc=$2
+output_loc=$3
+has_openssl_loc=$4
+has_static_loc=$5
+sources_loc=$6
+current_loc=`pwd`
+
+PREFIX=/opt/jboss/ts
+native_sources=srclib/`ls srclib | grep trafficserver`
+RPM_BUILD_ROOT=$output_loc
+
+cd $native_sources
+autoreconf -i || exit 1
+./configure --prefix=$PREFIX --without-sqlite3 --with-libdb --with-user=$USER
--with-group=$USER || exit 1
+echo "building..."
+make || exit 1
+echo "installing in $RPM_BUILD_ROOT"
+make DESTDIR=$RPM_BUILD_ROOT install || exit 1
+
+echo "Done"
+exit 0
Property changes on: trunk/build/unix/buildbin.traffic_server.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/build/unix/buildsrc.traffic_server.sh
===================================================================
--- trunk/build/unix/buildsrc.traffic_server.sh (rev 0)
+++ trunk/build/unix/buildsrc.traffic_server.sh 2010-03-20 17:16:52 UTC (rev 2640)
@@ -0,0 +1,67 @@
+#!/bin/sh
+# Copyright(c) 2010 Red Hat Middleware, LLC,
+# and individual contributors as indicated by the @authors tag.
+# See the copyright.txt in the distribution for a
+# full listing of individual contributors.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library in the file COPYING.LIB;
+# if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+#
+# @author Jean-Frederic Clere
+#
+echo ""
+echo "Running : `basename $0` $LastChangedDate: 2009-10-27 08:23:43 +0100 (Tue, 27
Oct 2009) $"
+echo ""
+echo "Started : `date`"
+echo "Tag : $1"
+echo "Target : $2"
+echo "Destdir : $3"
+echo ""
+
+# parameters
+# $1: The tag to use something like 2.2.6 or trunk
+# $2: Directory where to put the sources.
+
+tag=$1
+dist=$2
+destdir=$3
+
+# we need something like:
+#
http://anonsvn.jboss.org/repos/mod_cluster/trunk/
+case $tag in
+ trunk)
+
URLBASE=http://svn.apache.org/repos/asf/incubator/trafficserver/traffic/t...
+ ;;
+ branches/*)
+
URLBASE=http://svn.apache.org/repos/asf/incubator/trafficserver/traffic/b...
+ ;;
+ *)
+
URLBASE=http://svn.apache.org/repos/asf/incubator/trafficserver/traffic/t...
+ ;;
+esac
+
+echo "$tag using $URLBASE"
+(cd $package_src_dir/srclib
+svn export ${URLBASE} trafficserver
+)
+if [ $? -ne 0 ]; then
+ echo "svn co ${URLBASE} trafficserver FAILED"
+ exit 1
+fi
+if [ ! -d $package_src_dir/srclib/trafficserver ]; then
+ echo "$package_src_dir/srclib/trafficserver not found!"
+ echo "svn co ${URLBASE} trafficserver FAILED"
+ exit 1
+fi
Property changes on: trunk/build/unix/buildsrc.traffic_server.sh
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/build/unix/package.list
===================================================================
--- trunk/build/unix/package.list 2010-03-18 15:41:54 UTC (rev 2639)
+++ trunk/build/unix/package.list 2010-03-20 17:16:52 UTC (rev 2640)
@@ -41,3 +41,4 @@
mod_cluster|1.0.3.dev|2.2.13|ssl:v:0.9.8k|zlib:v:1.2.3|jk:v:1.2.27|iconv:v:1.11|expat:v:1.95.8|cluster:t:branches/1.0.x
mod_cluster|1.0.3.GA|2.2.13|ssl:v:0.9.8k|zlib:v:1.2.3|jk:v:1.2.27|iconv:v:1.11|expat:v:1.95.8|cluster:t:1.0.3.GA
mod_cluster|1.1.0.CR1|2.2.15|ssl:v:0.9.8k|zlib:v:1.2.3|jk:v:1.2.30|iconv:v:1.11|expat:v:1.95.8|cluster:t:1.1.0.CR1
+traffic_server|TS_Trunk|trunk