apk upgrade
apk add \
- git binutils make autoconf automake gcc linux-headers diffutils texinfo \
- procps socat shadow sudo libgcrypt-dev \
+ git binutils make autoconf automake gcc linux-headers diffutils \
+ procps socat shadow sudo libgcrypt-dev texinfo texlive gzip \
openssl-dev zlib-dev lzo-dev ncurses-dev readline-dev musl-dev lz4-dev vde2-dev
}
apt-get upgrade -y
apt-get install -y \
- git binutils make autoconf automake gcc diffutils sudo texinfo netcat-openbsd procps socat \
+ git binutils make autoconf automake gcc diffutils sudo texinfo texlive netcat-openbsd procps socat \
zlib1g-dev:"$HOST" \
libssl-dev:"$HOST" \
liblzo2-dev:"$HOST" \
yum upgrade -y
yum install -y \
- git binutils make autoconf automake gcc diffutils sudo texinfo netcat procps systemd \
+ git binutils make autoconf automake gcc diffutils sudo texinfo-tex netcat procps systemd perl-IPC-Cmd \
findutils socat lzo-devel zlib-devel lz4-devel ncurses-devel readline-devel libgcrypt-devel "$@"
if yum info openssl11-devel; then
fi
}
+linux_openssl3() {
+ if [ -n "${HOST:-}" ]; then
+ echo >&2 "Not installing OpenSSL 3 to a cross-compilation job"
+ return
+ fi
+
+ src=/usr/local/src/openssl
+ ssl3=/opt/ssl3
+
+ mkdir -p $src
+
+ git clone --depth 1 --branch openssl-3.0.2 https://github.com/openssl/openssl $src
+ cd $src
+
+ ./Configure --prefix=$ssl3 --openssldir=$ssl3
+ make -j"$(nproc)"
+ make install_sw
+
+ ldconfig -v $ssl3/lib64
+
+ cd -
+}
+
deps_linux() {
. /etc/os-release
debian | ubuntu)
deps_linux_debian "$@"
+ linux_openssl3
;;
centos | almalinux | fedora)
deps_linux_rhel "$@"
+ linux_openssl3
;;
*) exit 1 ;;