diff --git a/scripts/chapter8/8.46-openssl.sh b/scripts/chapter8/8.46-openssl.sh new file mode 100644 index 0000000..7f2929a --- /dev/null +++ b/scripts/chapter8/8.46-openssl.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +cd /sources +tar xf openssl-3.0.5.tar.gz +cd openssl-3.0.5 + +./config --prefix=/usr \ + --openssldir=/etc/ssl \ + --libdir=lib \ + shared \ + zlib-dynamic + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make test + +make test + +sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile +make MANSUFFIX=ssl install + +mv -v /usr/share/doc/openssl /usr/share/doc/openssl-3.0.5 + +cp -vfr doc/* /usr/share/doc/openssl-3.0.5 + +cd /sources +rm -rf openssl-3.0.5 diff --git a/scripts/main.sh b/scripts/main.sh index c22ade0..d9067f5 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -1091,3 +1091,15 @@ then stop_script "chapter8/8.45-automake.sh" fi +# Chapter 8.46 +# ============ +echo "Building openssl" +su -c "bash $SCRIPT/chapter8/8.45-openssl.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + exit 1 +fi +