Skip to content

Commit c4745fe

Browse files
committed
Bumped apr for download
1 parent bdcf7c0 commit c4745fe

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

jni/tomcat-native.sh

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)