2017-03-28 09:58:13 +02:00
|
|
|
#!/bin/sh
|
|
|
|
set -ev
|
2018-03-29 12:42:35 +02:00
|
|
|
VERSION=5.44
|
2017-03-28 09:58:13 +02:00
|
|
|
DST=stunnel-$VERSION-android
|
|
|
|
|
|
|
|
# to build OpenSSL:
|
2018-03-29 12:42:35 +02:00
|
|
|
# ./Configure threads no-shared no-dso --cross-compile-prefix=arm-linux-androideabi- --prefix=/opt/androideabi/sysroot linux-armv4
|
2017-03-28 09:58:13 +02:00
|
|
|
# make install
|
|
|
|
|
2017-11-15 15:03:25 +01:00
|
|
|
test -f Makefile && make distclean
|
2017-03-28 10:18:03 +02:00
|
|
|
mkdir -p bin/android
|
|
|
|
cd bin/android
|
2017-11-15 15:03:25 +01:00
|
|
|
../../configure --with-sysroot --build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix=/data/local
|
2017-03-28 09:58:13 +02:00
|
|
|
make clean
|
|
|
|
make
|
2017-03-28 10:18:03 +02:00
|
|
|
cd ../..
|
2017-03-28 09:58:13 +02:00
|
|
|
mkdir $DST
|
2017-11-15 15:03:25 +01:00
|
|
|
cp bin/android/src/stunnel $DST
|
2017-03-28 09:58:13 +02:00
|
|
|
# arm-linux-androideabi-strip $DST/stunnel $DST/openssl
|
2017-11-15 15:03:25 +01:00
|
|
|
# cp /opt/androideabi/sysroot/bin/openssl $DST
|
|
|
|
# arm-linux-androideabi-strip $DST/openssl
|
2017-03-28 09:58:13 +02:00
|
|
|
zip -r $DST.zip $DST
|
|
|
|
rm -rf $DST
|
2017-11-15 15:03:25 +01:00
|
|
|
# sha256sum $DST.zip
|
|
|
|
# mv $DST.zip ../dist/
|