-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Statically linking openssl | libevent in tor for mac
2. Correct binary naming for windows and linux 3. Move hashes/keys to env.sh
- Loading branch information
Showing
5 changed files
with
72 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,48 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
curl -fsSL "https://www.torproject.org/dist/tor-0.3.2.10.tar.gz" -o tor-0.3.2.10.tar.gz | ||
curl -fsSL "https://www.torproject.org/dist/tor-0.3.2.10.tar.gz.asc" -o tor-0.3.2.10.tar.gz.asc | ||
curl -fsSL "https://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz" -o openssl-$OPENSSL_VERSION.tar.gz && \ | ||
echo "$OPENSSL_HASH openssl-$OPENSSL_VERSION.tar.gz" | shasum -a 256 -c - && \ | ||
tar -xvzf openssl-$OPENSSL_VERSION.tar.gz && \ | ||
cd openssl-$OPENSSL_VERSION && \ | ||
./config --prefix=$PWD/install no-shared no-dso && \ | ||
make | ||
|
||
gpg --keyserver pgp.mit.edu/ --recv FE43009C4607B1FB | ||
gpg tor-0.3.2.10.tar.gz.asc | ||
cd .. | ||
|
||
curl -fsSL "https://github.com/libevent/libevent/releases/download/release-$LIBEVENT_VERSION/libevent-$LIBEVENT_VERSION.tar.gz" -o libevent-$LIBEVENT_VERSION.tar.gz && \ | ||
curl -fsSL "https://github.com/libevent/libevent/releases/download/release-$LIBEVENT_VERSION/libevent-$LIBEVENT_VERSION.tar.gz.asc" -o libevent-$LIBEVENT_VERSION.tar.gz.asc && \ | ||
|
||
gpg --keyserver pgp.mit.edu/ --recv $LIBEVENT_KEY && \ | ||
gpg libevent-$LIBEVENT_VERSION.tar.gz.asc && \ | ||
echo "$LIBEVENT_HASH libevent-$LIBEVENT_VERSION.tar.gz" | shasum -a 256 -c - && \ | ||
tar -zxvf libevent-$LIBEVENT_VERSION.tar.gz && \ | ||
cd libevent-$LIBEVENT_VERSION && \ | ||
./configure \ | ||
LDFLAGS="-L/usr/local/opt/openssl/lib" \ | ||
CPPFLAGS="-I/usr/local/opt/openssl/include" \ | ||
--prefix=$PWD/install \ | ||
--disable-shared \ | ||
--enable-static \ | ||
--with-pic && \ | ||
make && make check && make install | ||
|
||
cd .. | ||
|
||
curl -fsSL "https://www.torproject.org/dist/tor-$TOR_VERSION.tar.gz" -o tor-$TOR_VERSION.tar.gz | ||
curl -fsSL "https://www.torproject.org/dist/tor-$TOR_VERSION.tar.gz.asc" -o tor-$TOR_VERSION.tar.gz.asc | ||
|
||
tar -xvzf tor-0.3.2.10.tar.gz | ||
cd tor-0.3.2.10 | ||
./configure && make && make install | ||
gpg --keyserver pgp.mit.edu/ --recv $TOR_KEY | ||
gpg tor-$TOR_VERSION.tar.gz.asc | ||
echo "$TOR_HASH tor-$TOR_VERSION.tar.gz" | shasum -a 256 -c - && \ | ||
tar -xvzf tor-$TOR_VERSION.tar.gz | ||
cd tor-$TOR_VERSION && \ | ||
./configure --enable-static-libevent \ | ||
--enable-static-openssl \ | ||
--with-libevent-dir=$PWD/../libevent-$LIBEVENT_VERSION/install \ | ||
--with-openssl-dir=$PWD/../openssl-$OPENSSL_VERSION/install \ | ||
--disable-asciidoc && \ | ||
make && make check | ||
cd .. | ||
|
||
cp tor-0.3.2.10/src/or/tor tor-darwin-$TOR_VERSION-brave-$BRAVE_TOR_VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters