finished scripts to automate static tor builds for x86 and arm; new static tor 0.3.5.3-alpha for both
This commit is contained in:
parent
7a1e509985
commit
8eefcf843e
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
BUILD_DIR=${PWD}/build-tor
|
BUILD_DIR=${PWD}/build-tor-arm
|
||||||
ZLIB_VERSION=1.2.11
|
ZLIB_VERSION=1.2.11
|
||||||
LIBEVENT_VERSION=2.1.8-stable
|
LIBEVENT_VERSION=2.1.8-stable
|
||||||
OPENSSL_VERSION=1.0.2p
|
OPENSSL_VERSION=1.0.2p
|
||||||
TOR_VERSION=0.3.5.2-alpha
|
TOR_VERSION=0.3.5.3-alpha
|
||||||
|
|
||||||
mkdir ${BUILD_DIR}
|
mkdir ${BUILD_DIR}
|
||||||
cd ${BUILD_DIR}
|
cd ${BUILD_DIR}
|
||||||
|
@ -29,8 +29,7 @@ cd ..
|
||||||
|
|
||||||
curl -fsSL "https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz" | tar zxvf -
|
curl -fsSL "https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz" | tar zxvf -
|
||||||
cd openssl-${OPENSSL_VERSION}
|
cd openssl-${OPENSSL_VERSION}
|
||||||
export ANDROID_NDK_HOME="${BUILD_DIR}/ndk"
|
./Configure --openssldir=$PWD/install no-shared no-dso linux-armv4
|
||||||
./Configure --openssldir=$PWD/install no-shared no-dso android-armv7
|
|
||||||
make -j$(nproc) INSTALL_PREFIX=$PWD/install
|
make -j$(nproc) INSTALL_PREFIX=$PWD/install
|
||||||
make install
|
make install
|
||||||
cd ..
|
cd ..
|
||||||
|
@ -42,9 +41,8 @@ cd tor-${TOR_VERSION}
|
||||||
--with-libevent-dir=$PWD/../libevent-${LIBEVENT_VERSION}/install \
|
--with-libevent-dir=$PWD/../libevent-${LIBEVENT_VERSION}/install \
|
||||||
--with-openssl-dir=$PWD/../openssl-${OPENSSL_VERSION}/install \
|
--with-openssl-dir=$PWD/../openssl-${OPENSSL_VERSION}/install \
|
||||||
--with-zlib-dir=$PWD/../zlib-${ZLIB_VERSION}/install \
|
--with-zlib-dir=$PWD/../zlib-${ZLIB_VERSION}/install \
|
||||||
--host=arm-linux-gnueabihf \
|
--host=armv7-unknown-linux-gnueabi \
|
||||||
CC=arm-linux-gnueabihf-gcc \
|
--disable-tool-name-check
|
||||||
AR=arm-linux-gnueabihf-ar STRIP=arm-linux-gnueabihf-strip RANLIB=arm-linux-gnueabihf-ranlib
|
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
|
|
@ -1,47 +1,47 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
BUILD_DIR=build-tor
|
BUILD_DIR=${PWD}/build-tor-x86
|
||||||
ZLIB_VERSION=1.2.11
|
ZLIB_VERSION=1.2.11
|
||||||
LIBEVENT_VERSION=2.1.8-stable
|
LIBEVENT_VERSION=2.1.8-stable
|
||||||
OPENSSL_VERSION=1.0.2p
|
OPENSSL_VERSION=1.0.2p
|
||||||
TOR_VERSION=0.3.5.2-alpha
|
TOR_VERSION=0.3.5.3-alpha
|
||||||
|
|
||||||
mkdir ${BUILD_DIR} \
|
mkdir ${BUILD_DIR}
|
||||||
&& cd ${BUILD_DIR}
|
cd ${BUILD_DIR}
|
||||||
|
|
||||||
curl -fsSL "https://zlib.net/zlib-${ZLIB_VERSION}.tar.gz" | tar zxvf - \
|
curl -fsSL "https://zlib.net/zlib-${ZLIB_VERSION}.tar.gz" | tar zxvf -
|
||||||
&& cd zlib-${ZLIB_VERSION} \
|
cd zlib-${ZLIB_VERSION}
|
||||||
&& ./configure --prefix=$PWD/install \
|
./configure --prefix=$PWD/install
|
||||||
&& make -j$(nproc) \
|
make -j$(nproc)
|
||||||
&& make install \
|
make install
|
||||||
&& cd ..
|
cd ..
|
||||||
|
|
||||||
curl -fsSL "https://github.com/libevent/libevent/releases/download/release-${LIBEVENT_VERSION}/libevent-${LIBEVENT_VERSION}.tar.gz" | tar zxvf - \
|
curl -fsSL "https://github.com/libevent/libevent/releases/download/release-${LIBEVENT_VERSION}/libevent-${LIBEVENT_VERSION}.tar.gz" | tar zxvf -
|
||||||
&& cd libevent-${LIBEVENT_VERSION} \
|
cd libevent-${LIBEVENT_VERSION}
|
||||||
&& ./configure --prefix=$PWD/install \
|
./configure --prefix=$PWD/install \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--enable-static \
|
--enable-static \
|
||||||
--with-pic \
|
--with-pic
|
||||||
&& make -j$(nproc) \
|
make -j$(nproc)
|
||||||
&& make install \
|
make install
|
||||||
&& cd ..
|
cd ..
|
||||||
|
|
||||||
curl -fsSL "https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz" | tar zxvf - \
|
curl -fsSL "https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz" | tar zxvf -
|
||||||
&& cd openssl-${OPENSSL_VERSION} \
|
cd openssl-${OPENSSL_VERSION}
|
||||||
&& ./config --prefix=$PWD/install no-shared no-dso \
|
./config --prefix=$PWD/install no-shared no-dso
|
||||||
&& make -j$(nproc) \
|
make -j$(nproc)
|
||||||
&& make install \
|
make install
|
||||||
&& cd ..
|
cd ..
|
||||||
|
|
||||||
curl -fsSL "https://www.torproject.org/dist/tor-${TOR_VERSION}.tar.gz" | tar zxvf - \
|
curl -fsSL "https://www.torproject.org/dist/tor-${TOR_VERSION}.tar.gz" | tar zxvf -
|
||||||
&& cd tor-${TOR_VERSION} \
|
cd tor-${TOR_VERSION}
|
||||||
&& ./configure --prefix=$PWD/install \
|
./configure --prefix=$PWD/install \
|
||||||
--enable-static-tor \
|
--enable-static-tor \
|
||||||
--with-libevent-dir=$PWD/../libevent-${LIBEVENT_VERSION}/install \
|
--with-libevent-dir=$PWD/../libevent-${LIBEVENT_VERSION}/install \
|
||||||
--with-openssl-dir=$PWD/../openssl-${OPENSSL_VERSION}/install \
|
--with-openssl-dir=$PWD/../openssl-${OPENSSL_VERSION}/install \
|
||||||
--with-zlib-dir=$PWD/../zlib-${ZLIB_VERSION}/install \
|
--with-zlib-dir=$PWD/../zlib-${ZLIB_VERSION}/install
|
||||||
&& make -j$(nproc) \
|
make -j$(nproc)
|
||||||
&& make install
|
make install
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Results in ${BUILD_DIR}/tor-${TOR_VERSION}/install/bin"
|
echo "Results in ${BUILD_DIR}/tor-${TOR_VERSION}/install/bin"
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue