From 1303049a9884b9fbc1e8c42c26bb3a68831445a6 Mon Sep 17 00:00:00 2001 From: Alec Muffett Date: Tue, 9 Jun 2020 15:12:02 +0000 Subject: [PATCH] commit: build on ubuntu18 --- opt.d/build-raspbian-stretch.sh | 4 ++-- opt.d/build-ubuntu-18.04.sh | 34 +++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100755 opt.d/build-ubuntu-18.04.sh 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