aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/openssl.sh
blob: 59699f5cd0760485e02b620cb818377df714c1a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
set -e

./config --prefix=/usr \
         --openssldir=/etc/ssl \
         --libdir=lib \
         shared  \
         zlib-dynamic &&

make &&

sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile &&
make MANSUFFIX=ssl install &&

mv -v /usr/share/doc/openssl /usr/share/doc/openssl-"${VERSION}" &&

cp -vfr doc/* /usr/share/doc/openssl-"${VERSION}"