JBoss Native SVN: r3260 - trunk/build/unix.
by jbossnative-commits@lists.jboss.org
Author: jfrederic.clere(a)jboss.com
Date: 2014-03-04 09:01:48 -0500 (Tue, 04 Mar 2014)
New Revision: 3260
Modified:
trunk/build/unix/buildbin.mod_cluster.sh
trunk/build/unix/buildbin.mod_cluster.windows.sh
Log:
Adjust the name of mod_cluster_slotmem and mod_slotmem.
Modified: trunk/build/unix/buildbin.mod_cluster.sh
===================================================================
--- trunk/build/unix/buildbin.mod_cluster.sh 2014-03-04 12:21:50 UTC (rev 3259)
+++ trunk/build/unix/buildbin.mod_cluster.sh 2014-03-04 14:01:48 UTC (rev 3260)
@@ -135,7 +135,16 @@
fi
if $has_cluster; then
- add_conf="$add_conf --enable-proxy-cluster --enable-advertise --enable-cluster-slotmem --enable-manager --disable-proxy-balancer"
+ case $build_version in
+ 1.0.*|1.1.*|1.2.*)
+ add_conf="$add_conf --enable-proxy-cluster --enable-advertise --enable--slotmem --enable-manager --disable-proxy-balancer"
+ slotmem=slotmem
+ ;;
+ 1.3.*)
+ add_conf="$add_conf --enable-proxy-cluster --enable-advertise --enable-cluster-slotmem --enable-manager --disable-proxy-balancer"
+ slotmem=cluster_slotmem
+ ;;
+ esac
fi
# Ajust some more platform dependent stuff.
@@ -233,7 +242,7 @@
;;
1.1.*|1.2.*|1.3.*)
if [ "$BUILD_SYS" = "hpux" ]; then
- echo "Add the mod_cluster modules now because with can't use buildconf on hpux"
+ echo "Add the mod_cluster modules now because we can't use buildconf on hpux"
cat >> "${RPM_BUILD_ROOT}/opt/jboss/httpd/httpd/conf/httpd.conf" <<EOF
LoadModule proxy_module /opt/jboss/httpd/lib/httpd/modules/mod_proxy.so
@@ -243,7 +252,7 @@
LoadModule proxy_cluster_module /opt/jboss/httpd/lib/httpd/modules/mod_proxy_cluster.so
LoadModule manager_module /opt/jboss/httpd/lib/httpd/modules/mod_manager.so
-LoadModule cluster_slotmem_module /opt/jboss/httpd/lib/httpd/modules/mod_cluster_slotmem.so
+LoadModule ${slotmem}_module /opt/jboss/httpd/lib/httpd/modules/mod_${slotmem}.so
LoadModule advertise_module /opt/jboss/httpd/lib/httpd/modules/mod_advertise.so
EOF
@@ -392,7 +401,7 @@
if [ "${BUILD_SYS}" != "windows" ]; then
echo "Building mod_cluster modules with ${apxs}"
BASELOC=`(cd ../mod_cluster/test/java; ant base | grep echo | sed 's:\[echo\]::' | sed 's:^ *::' | sed 's: :/:g')`
- for dir in `echo mod_manager advertise mod_cluster_slotmem mod_proxy_cluster`
+ for dir in `echo mod_manager advertise mod_${slotmem} mod_proxy_cluster`
do
(cd ../mod_cluster/native/$dir
sh buildconf
Modified: trunk/build/unix/buildbin.mod_cluster.windows.sh
===================================================================
--- trunk/build/unix/buildbin.mod_cluster.windows.sh 2014-03-04 12:21:50 UTC (rev 3259)
+++ trunk/build/unix/buildbin.mod_cluster.windows.sh 2014-03-04 14:01:48 UTC (rev 3260)
@@ -115,6 +115,14 @@
# Add default mod_cluster conf in httpd.conf
case $build_version in
+ 1.0.*|1.1.*|1.2.*)
+ slotmem=slotmem
+ ;;
+ 1.3.*)
+ slotmem=cluster_slotmem
+ ;;
+esac
+case $build_version in
1.0.*)
;;
1.1.*|1.2.*|1.3.*)
@@ -129,7 +137,7 @@
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
LoadModule manager_module modules/mod_manager.so
-LoadModule cluster_slotmem_module modules/mod_cluster_slotmem.so
+LoadModule ${slotmem}_module modules/mod_${slotmem}.so
LoadModule advertise_module modules/mod_advertise.so
# MOD_CLUSTER_ADDS
@@ -173,7 +181,7 @@
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
LoadModule manager_module modules/mod_manager.so
-LoadModule cluster_slotmem_module modules/mod_cluster_slotmem.so
+LoadModule ${slotmem}_module modules/mod_${slotmem}.so
LoadModule advertise_module modules/mod_advertise.so
# MOD_CLUSTER_ADDS