freebsd initial

pull/70/head
Alec Muffett 2020-06-09 20:07:22 +01:00
rodzic 743a5214b3
commit 19a5d7c80e
4 zmienionych plików z 33 dodań i 4 usunięć

2
eotk
Wyświetl plik

@ -763,7 +763,7 @@ case "$cmd" in
;;
shell) ## run a shell in the eotk PATH environment
env PS1='eotk-env$ ' bash -i
env PS1='eotk-env$ ' ${SHELL:-sh} -i
;;
help|*) ## prints this text

Wyświetl plik

@ -0,0 +1,30 @@
#!/bin/sh -x
# platform-independent lib.sh
opt_dir=`dirname $0`
opt_dir=`pwd`
. $opt_dir/lib.sh
# platform dependencies
shared_deps="
gmake
libevent
"
: pkg install $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

Wyświetl plik

@ -6,7 +6,6 @@ opt_dir=`pwd`
. $opt_dir/lib.sh
# platform dependencies
# https://openresty.org/en/installation.html
shared_deps="
curl
pcre

Wyświetl plik

@ -19,8 +19,8 @@ SetupForBuild() {
}
BuildAndCleanup() {
make || exit 1
make install || exit 1
gmake || exit 1
gmake install || exit 1
cd $opt_dir || exit 1
for x in $tool_link_paths ; do ln -sf "$install_dir/$x" || exit 1 ; done
rm -rf "$tool_tarball" "$tool_sig" "$tool_dir" || exit 1