Add 8.46 - Build openssl

This commit is contained in:
Aditya 2023-01-12 14:16:25 +05:30
parent 9b57c56165
commit 7d93e1bd2d
2 changed files with 49 additions and 0 deletions

View file

@ -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

View file

@ -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