aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/openssl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'chapter8/openssl.sh')
-rw-r--r--chapter8/openssl.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/chapter8/openssl.sh b/chapter8/openssl.sh
index 7a693aa..d7b5e9b 100644
--- a/chapter8/openssl.sh
+++ b/chapter8/openssl.sh
@@ -1,3 +1,16 @@
#!/bin/bash
+./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}"