Enterprise-Onion-Toolkit/opt.d/build-macos-catalina.sh

35 wiersze
669 B
Bash
Executable File

#!/bin/sh -x
# platform-independent lib.sh
cd `dirname $0` || exit 1
opt_dir=`pwd`
. ./lib.sh || exit 1
# platform dependencies
shared_deps="
curl
pcre
openssl
gpg
"
brew install $shared_deps || exit 1
# build openresty
SetupOpenRestyVars || exit 1
CustomiseVars || exit 1
SetupForBuild || exit 1
ConfigureOpenResty \
--with-cc-opt="-I/usr/local/opt/openssl/include/ -I/usr/local/opt/pcre/include/" \
--with-ld-opt="-L/usr/local/opt/openssl/lib/ -L/usr/local/opt/pcre/lib/" || exit 1
BuildAndCleanup || exit 1
# build tor
SetupTorVars || exit 1
CustomiseVars || exit 1
SetupForBuild || exit 1
ConfigureTor || exit 1
BuildAndCleanup || exit 1
# done
exit 0