mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 11:52:52 +00:00
Add 8.46 - Build openssl
This commit is contained in:
parent
9b57c56165
commit
7d93e1bd2d
2 changed files with 49 additions and 0 deletions
37
scripts/chapter8/8.46-openssl.sh
Normal file
37
scripts/chapter8/8.46-openssl.sh
Normal 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
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue