Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 46 lines (37 sloc) 1.39 kB
c632f0f @bierbaum [split] add openssl patch; flush out script
bierbaum authored
1 #!/bin/bash
0ae08c9 @bierbaum [split] finagle-native: add tcnative patch and build script
bierbaum authored
2
3 VER="1.1.22"
4 REL="tomcat-native-$VER"
5 URL="http://www.apache.org/dist/tomcat/tomcat-connectors/native/$VER/source/$REL-src.tar.gz"
6 TARBALL="$REL-src.tar.gz"
c632f0f @bierbaum [split] add openssl patch; flush out script
bierbaum authored
7 SRC="$REL-src"
0ae08c9 @bierbaum [split] finagle-native: add tcnative patch and build script
bierbaum authored
8
9 here=`dirname $0`
10
11 function die {
12 echo $@ 1>&2
13 exit 1
14 }
15
16 test -d $REL && die "directory '$REL' already exists. remove it to continue."
17
18
19 test -f $TARBALL || \
1a5a858 @bierbaum [split] script nicer
bierbaum authored
20 (echo "Fetching $REL"; curl -# -O $URL) || \
0ae08c9 @bierbaum [split] finagle-native: add tcnative patch and build script
bierbaum authored
21 die "could not download tarball '$TARBALL' from '$URL'"
22
23 tar zxf $TARBALL
1a5a858 @bierbaum [split] script nicer
bierbaum authored
24 cd $SRC > /dev/null
c632f0f @bierbaum [split] add openssl patch; flush out script
bierbaum authored
25 git apply < ../tomcat-native-$VER.finagle.patch || die "patch did not apply"
1a5a858 @bierbaum [split] script nicer
bierbaum authored
26 cd - > /dev/null
c632f0f @bierbaum [split] add openssl patch; flush out script
bierbaum authored
27 rm $TARBALL
28
1a5a858 @bierbaum [split] script nicer
bierbaum authored
29 echo
30 echo "-------------------------------------------------------------------------------------"
c632f0f @bierbaum [split] add openssl patch; flush out script
bierbaum authored
31 echo "$REL in $SRC has been patched to support Finagle."
32 echo ""
33 echo "You should follow the instructions at http://tomcat.apache.org/native-doc/ to build."
34 echo ""
35 echo "You will need these:"
36 echo " APR: http://apr.apache.org/"
37 echo " OpenSSL: http://openssl.org/"
38 echo ""
39 echo "You need OpenSSL 1.0.1 or greater; or 1.0.0g with an SPDY NPN patch applied."
dcca1f8 @bierbaum [split] moved patch to gist (license conflict?)
bierbaum authored
40 echo "For OpenSSL 1.0.0g, an adaptation of Google's NPN patch is available at:"
41 echo " https://gist.github.com/1772441"
42 echo ""
43 echo "To use this patch, 'patch -p1 < openssl-1.0.0g-npn.patch' in the OpenSSL 1.0.0g tree."
1a5a858 @bierbaum [split] script nicer
bierbaum authored
44 echo "-------------------------------------------------------------------------------------"
45 echo
Something went wrong with that request. Please try again.