File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,22 +26,27 @@ pushd tomcat-native
2626 fi
2727 tar -xf $ANT
2828 export ANT_HOME=" ` pwd` /apache-ant-$ant_version /"
29- wget --no-check-certificate https://github.com/apache/tomcat-native/archive/1.2.24.tar.gz
30- APR=apr-1.7.0 .tar.gz
29+ APR=apr-1.7.0
30+ APR_FILE= ${APR} .tar.gz
3131 if [ ! -e $APR ] ; then
32- cp " /mnt/shared/jdk-images/apache/$APR " . || echo " local copy $APR not found, will try to download"
32+ cp " /mnt/shared/jdk-images/apache/$APR_FILE " . || echo " local copy $APR not found, will try to download"
3333 fi
34- if [ ! -e $APR ] ; then
34+ if [ ! -e $APR_FILE ] ; then
35+ APR=apr-1.7.6
36+ APR_FILE=${APR} .tar.gz
3537 wget --no-check-certificate https://mirror.hosting90.cz/apache/apr/$APR
3638 fi
37- tar -xf 1.2.24.tar.gz
38- tar -xf $APR
39+ tar -xf $APR_FILE
40+ tomcat_native_version=1.2.24
41+ tomcat_native=${tomcat_native_version} .tar.gz
42+ wget --no-check-certificate https://github.com/apache/tomcat-native/archive/$tomcat_native
43+ tar -xf $tomcat_native
3944 export JAVA_HOME=/usr/lib/jvm/java
40- pushd tomcat-native-1.2.24
45+ pushd tomcat-native-${tomcat_native_version}
4146 D=" -Dbase.path=` pwd` -Dbase-maven.loc=https://repo.maven.apache.org/maven2"
4247 $ANT_HOME /bin/ant $D
4348 pushd native
44- sh buildconf --with-apr=../../apr-1.7.0
49+ sh buildconf --with-apr=../../$APR
4550 ./configure
4651 make
4752 popd
You can’t perform that action at this time.
0 commit comments