Integrate 0.9.3 SLP/IP, SQLite identities and complete token fix; build release 0.9.3-1
This commit is contained in:
11
build.sh
11
build.sh
@@ -5,12 +5,16 @@ base=$PWD
|
||||
source_dir=${MARS_SOURCE_DIR:-}
|
||||
prefix=${PREFIX:-/usr/local}
|
||||
[[ $prefix = /usr/local ]] || { echo 'PREFIX must be /usr/local for native service' >&2; exit 2; }
|
||||
for tool in cc make cmake git pkg-config; do
|
||||
rm -f upstream/build-complete
|
||||
for tool in cc make cmake git pkg-config python3 node; do
|
||||
command -v "$tool" >/dev/null || { echo "Missing build tool: $tool. See GUIDE.md." >&2; exit 1; }
|
||||
done
|
||||
pkg-config --exists json-c openssl || { echo 'Install libjson-c-dev and libssl-dev.' >&2; exit 1; }
|
||||
pkg-config --exists json-c openssl "sqlite3 >= 3.31" || { echo 'Install libjson-c-dev, libssl-dev and libsqlite3-dev.' >&2; exit 1; }
|
||||
printf '#include <civetweb.h>\n' | cc -E -x c - >/dev/null || { echo 'Install libcivetweb-dev.' >&2; exit 1; }
|
||||
make all check native check-native check-supervisor check-gateway check-gateway-auto check-winclient
|
||||
for adapter in mars_admin.inc mars_acl.inc mars_scripts.inc mars_trustee.inc; do
|
||||
test -s "upstream-adapter/$adapter" || { echo "Missing adapter: $adapter" >&2; exit 1; }
|
||||
done
|
||||
make check-release native
|
||||
mkdir -p upstream
|
||||
if [[ ! -d upstream/original ]]; then
|
||||
if [[ -n $source_dir ]]; then
|
||||
@@ -33,4 +37,5 @@ cmake -S upstream/patched -B upstream/build "${cmake_args[@]}" \
|
||||
-DMARS_PCAP_LIBRARY="$base/build/libmarspcap.a"
|
||||
cmake --build upstream/build --parallel "${JOBS:-$(getconf _NPROCESSORS_ONLN)}"
|
||||
printf '%s\n' "$prefix" > upstream/install-prefix.txt
|
||||
printf '%s\n' "$(cat upstream/source-revision.txt)" > upstream/build-complete
|
||||
printf '\nBuild finished. Run sudo ./install.sh (review configuration before starting).\n'
|
||||
|
||||
Reference in New Issue
Block a user