diff --git a/opt.d/build-raspbian-stretch.sh b/opt.d/build-raspbian-stretch.sh index 7704253..a86a11f 100755 --- a/opt.d/build-raspbian-stretch.sh +++ b/opt.d/build-raspbian-stretch.sh @@ -16,14 +16,14 @@ zlib1g-dev " sudo aptitude install -y $shared_deps || exit 1 -# platform-independent openresty build +# build openresty SetupOpenRestyVars || exit 1 CustomiseVars || exit 1 SetupForBuild || exit 1 ConfigureOpenResty || exit 1 BuildAndCleanup || exit 1 -# platform-independent tor build (see lib.sh) +# build tor SetupTorVars || exit 1 CustomiseVars || exit 1 SetupForBuild || exit 1 diff --git a/opt.d/build-ubuntu-18.04.sh b/opt.d/build-ubuntu-18.04.sh new file mode 100755 index 0000000..010c1c4 --- /dev/null +++ b/opt.d/build-ubuntu-18.04.sh @@ -0,0 +1,34 @@ +#!/bin/sh -x + +# platform-independent lib.sh +opt_dir=`dirname $0` +opt_dir=`pwd` +. $opt_dir/lib.sh + +# platform dependencies +shared_deps=" +dirmngr +libevent-dev +libpcre3-dev +libssl-dev +libssl1.1 +zlib1g-dev +" +sudo aptitude install -y $shared_deps || exit 1 + +# build openresty +SetupOpenRestyVars || exit 1 +CustomiseVars || exit 1 +SetupForBuild || exit 1 +ConfigureOpenResty || 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