Issue #2702 Removed openfire 3.7.1 tar. Fixed openfire patch to work

with openfire 3.9.1.  Updated package.sh to use openfire tar from awips2-static directory.
Added a -buildRPM target to build.sh to build a specific RPM.

Change-Id: I3502e42d92d519968aeb8b5fbc1f38b277f48c6a

Former-commit-id: f70d572802 [formerly cbac19d219] [formerly 09d27e99b5] [formerly f70d572802 [formerly cbac19d219] [formerly 09d27e99b5] [formerly 48b6c75bb3 [formerly 09d27e99b5 [formerly 606b269f39ed58e855d9fcba2487fccbaac3c28c]]]]
Former-commit-id: 48b6c75bb3
Former-commit-id: 4e44cdcfd4 [formerly f53845738c] [formerly 7d3abbb7bdae80a54f033641942cda32bb82bb2a [formerly 5d5ab33db3]]
Former-commit-id: 1e23556d6631c497f1ee4d7c61886ca51a27a2b2 [formerly b7df208cd7]
Former-commit-id: 0b558f0c93
This commit is contained in:
Brad Gonzales 2014-03-11 11:26:43 -05:00
parent ab2cc176e3
commit fe798a797c
4 changed files with 14 additions and 23 deletions

View file

@ -1,26 +1,6 @@
diff -crB openfire-a/bin/openfire openfire-b/bin/openfire
*** openfire-a/bin/openfire 2011-10-01 16:52:44.000000000 -0500
--- openfire-b/bin/openfire 2012-05-17 10:54:53.000000000 -0500
***************
*** 259,265 ****
start)
echo "Starting openfire"
! nohup "$app_java_home/bin/java" -server -Dinstall4j.jvmDir="$app_java_home" -Dexe4j.moduleName="$prg_dir/$progname" $INSTALL4J_ADD_VM_PARAMS -classpath "$local_classpath" com.install4j.runtime.Launcher start org.jivesoftware.openfire.starter.ServerStarter false false "$prg_dir/../logs/stderror.log" "$prg_dir/../logs/stdoutt.log" true true false "" true true 0 0 "" 20 20 "Arial" "0,0,0" 8 500 "version 3.7.1" 20 40 "Arial" "0,0,0" 8 500 -1 -DopenfireHome="$prg_dir/../" -Dopenfire.lib.dir="$app_home/lib" &
;;
--- 259,265 ----
start)
echo "Starting openfire"
! nohup "$app_java_home/bin/java" -server -Dinstall4j.jvmDir="$app_java_home" -Dexe4j.moduleName="$prg_dir/$progname" $INSTALL4J_ADD_VM_PARAMS -classpath "$local_classpath" com.install4j.runtime.Launcher start org.jivesoftware.openfire.starter.ServerStarter false false "$prg_dir/../logs/stderror.log" "$prg_dir/../logs/stdoutt.log" true true false "" true true 0 0 "" 20 20 "Arial" "0,0,0" 8 500 "version 3.7.1" 20 40 "Arial" "0,0,0" 8 500 -1 -DopenfireHome="$prg_dir/../" -Dopenfire.lib.dir="$app_home/lib" > /dev/null 2>&1 &
;;
diff -crB openfire-a/lib/log4j.xml openfire-b/lib/log4j.xml
*** openfire-a/lib/log4j.xml 2011-10-01 16:51:23.000000000 -0500
--- openfire-b/lib/log4j.xml 2012-05-17 10:48:34.000000000 -0500
*** openfire-a/lib/log4j.xml 2014-02-06 15:39:44.000000000 -0500
--- openfire-b/lib/log4j.xml 2014-02-07 10:48:34.000000000 -0500
***************
*** 3,9 ****
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

View file

@ -11,8 +11,10 @@
baseline_workspace="${1}"
RPM_BUILD_ROOT="${2}"
AWIPS2_STATIC=${AWIPSCM_SHARE}/awips2-static
srcdir="${baseline_workspace}/rpms/awips2.core/Installer.xmpp/dist"
source_tar="${srcdir}/openfire_3_7_1.tar.gz"
source_tar="${AWIPS2_STATIC}/foss/openfire/openfire_3_9_1.tar.gz"
patch_file0="${srcdir}/openfire.patch0"
patch_file1="${srcdir}/openfire.patch1"
plugin_dir="${srcdir}/plugins"

View file

@ -84,6 +84,15 @@ if [ "${2}" = "-nobinlightning" ]; then
LIGHTNING=false
fi
if [ "${1}" = "-buildRPM" -a -n "${2}" ]; then
echo "Building RPM: ${2}"
buildRPM ${2}
if [ $? -ne 0 ]; then
exit 1
fi
exit 0
fi
if [ "${1}" = "-64bit" ]; then
buildCAVE
if [ $? -ne 0 ]; then