Signed-off-by: geraldo netto <geraldone...@gmail.com> --- tomcat/GET | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/tomcat/GET b/tomcat/GET index 0a21749..a15be5f 100755 --- a/tomcat/GET +++ b/tomcat/GET @@ -1,32 +1,34 @@ #!/usr/bin/env bash set -e -MAJOR=8 -VERSION=${MAJOR}.0.15 +MAJOR=9 +VERSION=${MAJOR}.0.11 dir=apache-tomcat-$VERSION archive=$dir.tar.gz mkdir -p upstream pushd upstream + wget -c http://archive.apache.org/dist/tomcat/tomcat-${MAJOR}/v${VERSION}/bin/${archive} -wget -c http://archive.apache.org/dist/tomcat/tomcat-${MAJOR}/v${VERSION}/bin/${archive}.md5 -if [ "$(md5sum -c ${archive}.md5)" != "${archive}: OK" ]; +wget -c http://archive.apache.org/dist/tomcat/tomcat-${MAJOR}/v${VERSION}/bin/${archive}.sha1 + +if [ "$(sha1sum -c ${archive}.sha1)" != "${archive}: OK" ]; then - echo "Aborting: invalid md5 for Apache Tomcat $VERSION" + echo "Aborting: invalid sha1 for Apache Tomcat $VERSION" exit 1 fi + tar zxvf $archive pushd $dir -for p in $(find ../../patches/perf/ -name '*.patch' | sort); do - echo "Applying $p" - patch -p1 < $p +for patch in $(find ../../patches/perf/ -name '*.patch' | sort); do + echo "Applying $patch" + patch -p1 < "$patch" done popd popd - mkdir ROOTFS mkdir -p ROOTFS/usr/tomcat mv upstream/$dir/* ROOTFS/usr/tomcat -- 2.17.1 -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.