2022-09-15 00:24:08 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# this runs as root.
|
2023-10-31 22:08:21 +01:00
|
|
|
VERSION=3.1.3
|
2022-09-15 00:24:08 +02:00
|
|
|
echo "Using OpenSSL $VERSION" >> /etc/versions
|
|
|
|
|
source /etc/profile
|
|
|
|
|
cd /usr/local/cache
|
|
|
|
|
|
|
|
|
|
if ! test -f openssl-$VERSION.tar.gz; then
|
2024-11-01 14:12:34 +01:00
|
|
|
wget https://github.com/openssl/openssl/releases/download/openssl-$VERSION/openssl-$VERSION.tar.gz
|
2022-09-15 00:24:08 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cd ~builduser
|
|
|
|
|
export PATH="/opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH"
|
|
|
|
|
tar xf /usr/local/cache/openssl-$VERSION.tar.gz
|
|
|
|
|
cd openssl-$VERSION
|
2025-08-02 13:45:24 +02:00
|
|
|
./Configure shared android-arm64 --prefix=/opt/android-ssl
|
2022-09-15 00:24:08 +02:00
|
|
|
|
|
|
|
|
# don't compress these two into one, 'install' doesn't like -j
|
|
|
|
|
make -j`nproc` 2>&1 >/dev/null
|
|
|
|
|
make install 2>&1 >/dev/null
|
|
|
|
|
|
|
|
|
|
echo "SSL $VERSION DONE"
|