Author: jfrederic.clere(a)jboss.com
Date: 2007-12-10 13:36:56 -0500 (Mon, 10 Dec 2007)
New Revision: 1166
Added:
trunk/build/unix/buildsrc.rhel-httpd.sh
Modified:
trunk/build/unix/package.list
Log:
Build from rhel repos.
Added: trunk/build/unix/buildsrc.rhel-httpd.sh
===================================================================
--- trunk/build/unix/buildsrc.rhel-httpd.sh (rev 0)
+++ trunk/build/unix/buildsrc.rhel-httpd.sh 2007-12-10 18:36:56 UTC (rev 1166)
@@ -0,0 +1,73 @@
+#!/bin/sh
+# Copyright(c) 2007 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: 2007-06-01 18:00:27 +0200 (Fri, 01
Jun 2007) $"
+echo ""
+echo "Started : `date`"
+echo "Tag : $1"
+echo "Target : $2"
+echo ""
+
+# parameters
+# $1: The tag to use something like 2.2.6 or trunk
+# $2: Directory where to put the sources.
+
+native_tag=$1
+native_dist=$2
+
+# we need something like:
+#cvs -d :pserver:anonymous@cvs.devel.redhat.com:/cvs/dist export \
+# -r httpd-2_2_3-11_el5 httpd/RHEL-5
+
+cvsloc=:pserver:anonymous@cvs.devel.redhat.com:/cvs/dist
+if [ $native_tag = "trunk" ]; then
+ native_tag_opt="-r HEAD"
+ native_ext=current
+else
+ native_tag_opt="-r $native_tag"
+ # XXX: fix it to get 2_2_3-11_el5 into 2.2.3-11_el5.
+ native_ext="$tag"
+fi
+echo "Doing cvs -d ${cvsloc} export ${native_tag_opt} httpd/RHEL-5"
+cvs -d ${cvsloc} export ${native_tag_opt} httpd/RHEL-5
+
+# download something like:
+#
http://cvs.devel.redhat.com/repo/dist/httpd/httpd-2.2.3.tar.gz/f72ffb176e...
+fname=`cat httpd/RHEL-5/sources | awk '{ print $2 }'`
+dir=`cat httpd/RHEL-5/sources | awk '{ print $1 }'`
+wget --tries=0 --retry-connrefused
http://cvs.devel.redhat.com/repo/dist/httpd/${fname}/${dir}/${fname}
+gunzip -c ${fname} | tar -xf -
+dirsources=`gunzip -c ${fname} | tar -tf - | head -1 | awk '{ print $1 }'`
+
+#
+# Read the patches list and apply them
+WHERE=`pwd`
+grep ^%patch httpd/RHEL-5/httpd.spec | sed 's:%:@:' | sed 's: :@ :' | awk
' { print $1 " " $2 } ' > patch.cmd
+grep ^Patch httpd/RHEL-5/httpd.spec | sed 's:^Patch:@patch:' | sed
's/:/@/' | awk ' { print "s:" $1 ": patch -i @DIR@" $2
":" } ' > patch.files
+sed -f patch.files patch.cmd | sed "s:@DIR@:${WHERE}/httpd/RHEL-5/:" >
patch.sh
+echo "Applying the rhel patches to ${dirsources}"
+chmod a+x patch.sh
+(cd ${dirsources}
+ ../patch.sh
+)
Property changes on: trunk/build/unix/buildsrc.rhel-httpd.sh
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/build/unix/package.list
===================================================================
--- trunk/build/unix/package.list 2007-12-10 10:25:14 UTC (rev 1165)
+++ trunk/build/unix/package.list 2007-12-10 18:36:56 UTC (rev 1166)
@@ -10,3 +10,4 @@
jboss-sight|1.0.2|1.2.8|1.2.8||trunk
# httpd
jboss-httpd|0.0.1||||2.2.6
+rhel-httpd|0.0.1||||httpd-2_2_3-11_el5