source: chapter06/openssl.xml@ 8eb3fe4

multilib-10.1
Last change on this file since 8eb3fe4 was 8eb3fe4, checked in by Thomas Trepl <thomas@…>, 5 years ago

First apply of multilib-patch of April 1st, 2019

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11566 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 7.3 KB
RevLine 
[1fa2099]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-openssl" role="wrap">
9 <?dbhtml filename="openssl.html"?>
10
11 <sect1info condition="script">
12 <productname>openssl</productname>
13 <productnumber>&openssl-version;</productnumber>
14 <address>&openssl-url;</address>
15 </sect1info>
16
17 <title>OpenSSL-&openssl-version;</title>
18
19 <indexterm zone="ch-system-openssl">
20 <primary sortas="a-OpenSSL">OpenSSL</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The OpenSSL package contains management tools and libraries relating
27 to cryptography. These are useful for providing cryptographic functions
28 to other packages, such as OpenSSH, email applications and web browsers
29 (for accessing HTTPS sites). </para>
30
31 <segmentedlist>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
34
35 <seglistitem>
36 <seg>&openssl-ch6-sbu;</seg>
37 <seg>&openssl-ch6-du;</seg>
38 </seglistitem>
39 </segmentedlist>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of OpenSSL</title>
45
46 <para>Prepare OpenSSL for compilation:</para>
47
48<screen><userinput remap="configure">./config --prefix=/usr \
49 --openssldir=/etc/ssl \
50 --libdir=lib \
51 shared \
52 zlib-dynamic</userinput></screen>
53
54 <para>Compile the package:</para>
55
56<screen><userinput remap="make">make</userinput></screen>
57
58 <para>To test the results, issue:</para>
59
60<screen><userinput remap="test">make test</userinput></screen>
61<!--
62 <para>One subtest in the test 40-test_rehash.t fails in the lfs chroot
63 environment, but passes when run as a regular user.</para>
64-->
65 <para>Install the package:</para>
66
67<screen><userinput remap="install">sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile
68make MANSUFFIX=ssl install</userinput></screen>
69
70 <para>If desired, install the documentation:</para>
71
72<screen><userinput remap="install">mv -v /usr/share/doc/openssl /usr/share/doc/openssl-&openssl-version;
73cp -vfr doc/* /usr/share/doc/openssl-&openssl-version;</userinput></screen>
74
75 </sect2>
76
[8eb3fe4]77 <!-- ~~~~~ 32-bit ~~~~~ -->
78 <sect2 arch="multilib" role="installation">
79 <title>Installation of OpenSSL - 32-bit</title>
80
81 <para>Clean previous build:</para>
82
83<screen><userinput remap="pre">make distclean</userinput></screen>
84
85 <para>Prepare OpenSSL for compilation:</para>
86
87<screen><userinput remap="configure">MACHINE="i686" \
88CC="gcc -m32 -march=i686" \
89CXX="g++ -m32 -march=i686" \
90 ./config \
91 --prefix=/usr \
92 --libdir=/usr/lib32 \
93 --openssldir=/etc/ssl \
94 --libdir=lib32 \
95 shared \
96 zlib-dynamic</userinput></screen>
97
98 <para>Compile the package:</para>
99
100<screen><userinput remap="make">make</userinput></screen>
101 <para>Install the package:</para>
102
103<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
104cp -Rv DESTDIR/usr/lib32/* /usr/lib32
105rm -rf DESTDIR</userinput></screen>
106
107 </sect2>
108
109 <!-- ~~~~~ x32-bit ~~~~~ -->
110 <sect2 arch="multilib" role="installation">
111 <title>Installation of OpenSSL - x32-bit</title>
112
113 <para>Clean previous build:</para>
114
115<screen><userinput remap="pre">make distclean</userinput></screen>
116
117 <para>Prepare OpenSSL for compilation:</para>
118
119<screen><userinput remap="configure">MACHINE="x86_64" \
120CC="gcc -mx32" \
121CXX="g++ -mx32" \
122 ./config \
123 --prefix=/usr \
124 --libdir=/usr/libx32 \
125 --openssldir=/etc/ssl \
126 --libdir=libx32 \
127 shared \
128 zlib-dynamic</userinput></screen>
129
130 <para>Compile the package:</para>
131
132<screen><userinput remap="make">make</userinput></screen>
133 <para>Install the package:</para>
134
135<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
136cp -Rv DESTDIR/usr/libx32/* /usr/libx32
137rm -rf DESTDIR</userinput></screen>
138
139 </sect2>
140
[1fa2099]141 <sect2 id="contents-openssl" role="content">
142 <title>Contents of OpenSSL</title>
143
144 <segmentedlist>
145 <segtitle>Installed programs</segtitle>
146 <segtitle>Installed libraries</segtitle>
147 <segtitle>Installed directories</segtitle>
148
149 <seglistitem>
150 <seg>
151 c_rehash and openssl
152 </seg>
153 <seg>
154 libcrypto.{so,a} and libssl.{so,a}
155 </seg>
156 <seg>
157 /etc/ssl,
158 /usr/include/openssl,
159 /usr/lib/engines and
160 /usr/share/doc/openssl-&openssl-version;
161 </seg>
162 </seglistitem>
163 </segmentedlist>
164
165 <variablelist>
166 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
167 <?dbfo list-presentation="list"?>
168 <?dbhtml list-presentation="table"?>
169
170 <varlistentry id="c_rehash">
171 <term><command>c_rehash</command></term>
172 <listitem>
173 <para>
174 is a <application>Perl</application> script that scans all files in
175 a directory and adds symbolic links to their hash values.
176 </para>
177 <indexterm zone="ch-system-openssl c_rehash">
178 <primary sortas="b-c_rehash">c_rehash</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="openssl-prog">
184 <term><command>openssl</command></term>
185 <listitem>
186 <para>
187 is a command-line tool for using the various cryptography functions
188 of <application>OpenSSL</application>'s crypto library from the
189 shell. It can be used for various functions which are documented in
190 <command>man 1 openssl</command>.
191 </para>
192 <indexterm zone="ch-system-openssl openssl-prog">
193 <primary sortas="b-openssl">openssl</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="libcrypto">
199 <term><filename class="libraryfile">libcrypto.so</filename></term>
200 <listitem>
201 <para>
202 implements a wide range of cryptographic algorithms used in various
203 Internet standards. The services provided by this library are used
204 by the <application>OpenSSL</application> implementations of SSL,
205 TLS and S/MIME, and they have also been used to implement
206 <application>OpenSSH</application>,
207 <application>OpenPGP</application>, and other cryptographic
208 standards.
209 </para>
210 <indexterm zone="ch-system-openssl libcrypto">
211 <primary sortas="c-libcrypto">libcrypto.so</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="libssl">
217 <term><filename class="libraryfile">libssl.so</filename></term>
218 <listitem>
219 <para>
220 implements the Transport Layer Security (TLS v1) protocol.
221 It provides a rich API, documentation
222 on which can be found by running <command>man 3 ssl</command>.
223 </para>
224 <indexterm zone="ch-system-openssl libssl">
225 <primary sortas="c-libssl">libssl.so</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 </variablelist>
231
232 </sect2>
233
234</sect1>
Note: See TracBrowser for help on using the repository browser.