This commit is contained in:
root 2018-11-02 09:48:37 +00:00
commit 8e39cf6a10
12 changed files with 48 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/openssl/bin
/zlib/bin
/libevent/bin

12
.gitmodules vendored Normal file
View File

@ -0,0 +1,12 @@
[submodule "tor"]
path = tor
url = https://git.torproject.org/tor.git
[submodule "libevent/repo"]
path = libevent/repo
url = https://github.com/libevent/libevent
[submodule "zlib/repo"]
path = zlib/repo
url = https://github.com/madler/zlib
[submodule "openssl/repo"]
path = openssl/repo
url = https://github.com/openssl/openssl

0
README.md Normal file
View File

25
build.sh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/bash
rootdir=/opt/tor_static

#build zlib
cd $rootdir/zlib/repo/
`cat ../config`
make && make install

#build libevent
cd $rootdir/libevent/repo/
./autogen.sh
`cat ../config`
make && make install

#build openssl
cd $rootdir/openssl/repo/
./autogen.sh
`cat ../config`
make && make install

#build static tor
cd $rootdir/tor
./autogen.sh
`cat ../config`
make && make install

1
config Normal file
View File

@ -0,0 +1 @@
./configure --with-libevent-dir=/opt/tor_static/libevent/bin/ --with-openssl-dir=/opt/tor_static/openssl/bin/lib/ --with-zlib-dir=/opt/tor_static/zlib/bin/ --enable-static-zlib --enable-static-libevent --enable-static-openssl --disable-systemd --disable-system-torrc --disable-asciidoc --prefix=/opt/tor_static/bin --enable-static-nss --enable-static-tor

1
libevent/config Normal file
View File

@ -0,0 +1 @@
./configure --enable-static-nss --prefix=/opt/tor_static/libevent/bin --enable-static --disable-shared

1
libevent/repo Submodule

@ -0,0 +1 @@
Subproject commit 69bc2da79fb2f358c22feba45e9ad4752729d320

1
openssl/config Normal file
View File

@ -0,0 +1 @@
./config --prefix=/opt/tor_static/openssl/bin --openssldir=/opt/tor_static/openssl/bin -static -static-libgcc

1
openssl/repo Submodule

@ -0,0 +1 @@
Subproject commit e5a8712d03334c4b7cb9f29d6d1daee399c1223e

1
tor Submodule

@ -0,0 +1 @@
Subproject commit a0402c6f33206468f57c381c0022e547520d14c2

1
zlib/config Normal file
View File

@ -0,0 +1 @@
./configure --const --static --prefix=/opt/tor_static/zlib/bin

1
zlib/repo Submodule

@ -0,0 +1 @@
Subproject commit cacf7f1d4e3d44d871b605da3b647f07d718623f