source: chapter06/openssl.xml@ ee1a413

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

Change profiling attribute to enable selection of m32 and/or mx32. Fixes #4452.

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

  • Property mode set to 100644
File size: 7.3 KB
Line 
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
77 <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ -->
78
79 <sect2 arch="ml_32,ml_all" role="installation">
80 <title>Installation of OpenSSL - 32-bit</title>
81
82 <para>Clean previous build:</para>
83
84<screen><userinput remap="pre">make distclean</userinput></screen>
85
86 <para>Prepare OpenSSL for compilation:</para>
87
88<screen><userinput remap="configure">MACHINE="i686" \
89CC="gcc -m32 -march=i686" \
90CXX="g++ -m32 -march=i686" \
91 ./config \
92 --prefix=/usr \
93 --libdir=/usr/lib32 \
94 --openssldir=/etc/ssl \
95 --libdir=lib32 \
96 shared \
97 zlib-dynamic</userinput></screen>
98
99 <para>Compile the package:</para>
100
101<screen><userinput remap="make">make</userinput></screen>
102 <para>Install the package:</para>
103
104<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
105cp -Rv DESTDIR/usr/lib32/* /usr/lib32
106rm -rf DESTDIR</userinput></screen>
107
108 </sect2>
109
110 <!-- ~~~~~~~~~~~~~~~~~~~~ ABI x32 ~~~~~~~~~~~~~~~~~~~~ -->
111
112 <sect2 arch="ml_x32,ml_all" role="installation">
113 <title>Installation of OpenSSL - x32-bit</title>
114
115 <para>Clean previous build:</para>
116
117<screen><userinput remap="pre">make distclean</userinput></screen>
118
119 <para>Prepare OpenSSL for compilation:</para>
120
121<screen><userinput remap="configure">MACHINE="x86_64" \
122CC="gcc -mx32" \
123CXX="g++ -mx32" \
124 ./config \
125 --prefix=/usr \
126 --libdir=/usr/libx32 \
127 --openssldir=/etc/ssl \
128 --libdir=libx32 \
129 shared \
130 zlib-dynamic</userinput></screen>
131
132 <para>Compile the package:</para>
133
134<screen><userinput remap="make">make</userinput></screen>
135 <para>Install the package:</para>
136
137<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
138cp -Rv DESTDIR/usr/libx32/* /usr/libx32
139rm -rf DESTDIR</userinput></screen>
140
141 </sect2>
142
143 <sect2 id="contents-openssl" role="content">
144 <title>Contents of OpenSSL</title>
145
146 <segmentedlist>
147 <segtitle>Installed programs</segtitle>
148 <segtitle>Installed libraries</segtitle>
149 <segtitle>Installed directories</segtitle>
150
151 <seglistitem>
152 <seg>
153 c_rehash and openssl
154 </seg>
155 <seg>
156 libcrypto.{so,a} and libssl.{so,a}
157 </seg>
158 <seg>
159 /etc/ssl,
160 /usr/include/openssl,
161 /usr/lib/engines and
162 /usr/share/doc/openssl-&openssl-version;
163 </seg>
164 </seglistitem>
165 </segmentedlist>
166
167 <variablelist>
168 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
169 <?dbfo list-presentation="list"?>
170 <?dbhtml list-presentation="table"?>
171
172 <varlistentry id="c_rehash">
173 <term><command>c_rehash</command></term>
174 <listitem>
175 <para>
176 is a <application>Perl</application> script that scans all files in
177 a directory and adds symbolic links to their hash values.
178 </para>
179 <indexterm zone="ch-system-openssl c_rehash">
180 <primary sortas="b-c_rehash">c_rehash</primary>
181 </indexterm>
182 </listitem>
183 </varlistentry>
184
185 <varlistentry id="openssl-prog">
186 <term><command>openssl</command></term>
187 <listitem>
188 <para>
189 is a command-line tool for using the various cryptography functions
190 of <application>OpenSSL</application>'s crypto library from the
191 shell. It can be used for various functions which are documented in
192 <command>man 1 openssl</command>.
193 </para>
194 <indexterm zone="ch-system-openssl openssl-prog">
195 <primary sortas="b-openssl">openssl</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <varlistentry id="libcrypto">
201 <term><filename class="libraryfile">libcrypto.so</filename></term>
202 <listitem>
203 <para>
204 implements a wide range of cryptographic algorithms used in various
205 Internet standards. The services provided by this library are used
206 by the <application>OpenSSL</application> implementations of SSL,
207 TLS and S/MIME, and they have also been used to implement
208 <application>OpenSSH</application>,
209 <application>OpenPGP</application>, and other cryptographic
210 standards.
211 </para>
212 <indexterm zone="ch-system-openssl libcrypto">
213 <primary sortas="c-libcrypto">libcrypto.so</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 <varlistentry id="libssl">
219 <term><filename class="libraryfile">libssl.so</filename></term>
220 <listitem>
221 <para>
222 implements the Transport Layer Security (TLS v1) protocol.
223 It provides a rich API, documentation
224 on which can be found by running <command>man 3 ssl</command>.
225 </para>
226 <indexterm zone="ch-system-openssl libssl">
227 <primary sortas="c-libssl">libssl.so</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 </variablelist>
233
234 </sect2>
235
236</sect1>
Note: See TracBrowser for help on using the repository browser.