1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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-libxcrypt" role="wrap">
|
---|
9 | <?dbhtml filename="libxcrypt.html"?>
|
---|
10 |
|
---|
11 | <sect1info condition="script">
|
---|
12 | <productname>libxcrypt</productname>
|
---|
13 | <productnumber>&libxcrypt-version;</productnumber>
|
---|
14 | <address>&libxcrypt-url;</address>
|
---|
15 | </sect1info>
|
---|
16 |
|
---|
17 | <title>Libxcrypt-&libxcrypt-version;</title>
|
---|
18 |
|
---|
19 | <indexterm zone="ch-system-libxcrypt">
|
---|
20 | <primary sortas="a-Libxcrypt">Libxcrypt</primary>
|
---|
21 | </indexterm>
|
---|
22 |
|
---|
23 | <sect2 role="package">
|
---|
24 | <title/>
|
---|
25 |
|
---|
26 | <para>The Libxcrypt package contains a modern library for one-way
|
---|
27 | hashing of passwords.</para>
|
---|
28 |
|
---|
29 | <segmentedlist>
|
---|
30 | <segtitle>&buildtime;</segtitle>
|
---|
31 | <segtitle>&diskspace;</segtitle>
|
---|
32 |
|
---|
33 | <seglistitem>
|
---|
34 | <seg>&libxcrypt-fin-sbu;</seg>
|
---|
35 | <seg>&libxcrypt-fin-du;</seg>
|
---|
36 | </seglistitem>
|
---|
37 | </segmentedlist>
|
---|
38 |
|
---|
39 | </sect2>
|
---|
40 |
|
---|
41 | <sect2 role="installation">
|
---|
42 | <title>Installation of Libxcrypt</title>
|
---|
43 |
|
---|
44 | <para>Prepare Libxcrypt for compilation:</para>
|
---|
45 |
|
---|
46 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
47 | --enable-hashes=strong,glibc \
|
---|
48 | --enable-obsolete-api=no \
|
---|
49 | --disable-static \
|
---|
50 | --disable-failure-tokens</userinput></screen>
|
---|
51 |
|
---|
52 | <variablelist>
|
---|
53 | <title>The meaning of the new configure options:</title>
|
---|
54 |
|
---|
55 | <varlistentry>
|
---|
56 | <term><parameter>--enable-hashes=strong,glibc</parameter></term>
|
---|
57 | <listitem>
|
---|
58 | <para>Build strong hash algorithms recommended for security use
|
---|
59 | cases, and the hash algorithms provided by traditional Glibc
|
---|
60 | <systemitem class='library'>libcrypt</systemitem> for
|
---|
61 | compatibility.</para>
|
---|
62 | </listitem>
|
---|
63 | </varlistentry>
|
---|
64 |
|
---|
65 | <varlistentry>
|
---|
66 | <term><parameter>--enable-obsolete-api=no</parameter></term>
|
---|
67 | <listitem>
|
---|
68 | <para>Disable obsolete API functions. They are not needed for
|
---|
69 | a modern Linux system built from source.</para>
|
---|
70 | </listitem>
|
---|
71 | </varlistentry>
|
---|
72 |
|
---|
73 | <varlistentry>
|
---|
74 | <term><parameter>--disable-failure-tokens</parameter></term>
|
---|
75 | <listitem>
|
---|
76 | <para>Disable failure token feature. It's needed for
|
---|
77 | compatibility with the traditional hash libraries of some
|
---|
78 | platforms, but a Linux system based on Glibc does not need
|
---|
79 | it.</para>
|
---|
80 | </listitem>
|
---|
81 | </varlistentry>
|
---|
82 | </variablelist>
|
---|
83 |
|
---|
84 | <para>Compile the package:</para>
|
---|
85 |
|
---|
86 | <screen><userinput remap="make">make</userinput></screen>
|
---|
87 |
|
---|
88 | <para>To test the results, issue:</para>
|
---|
89 |
|
---|
90 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
91 |
|
---|
92 | <para>Install the package:</para>
|
---|
93 |
|
---|
94 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
95 |
|
---|
96 | <note>
|
---|
97 |
|
---|
98 | <para>The instructions above disabled obsolete API functions since
|
---|
99 | no package installed by compiling from sources would link against
|
---|
100 | them at runtime. However, the only known binary-only applications
|
---|
101 | that link against these functions require ABI version 1. If you must
|
---|
102 | have such functions because of some binary-only application or to be
|
---|
103 | compliant with LSB, build the package again with the following
|
---|
104 | commands:</para>
|
---|
105 |
|
---|
106 | <screen role="nodump"><userinput>make distclean
|
---|
107 | ./configure --prefix=/usr \
|
---|
108 | --enable-hashes=strong,glibc \
|
---|
109 | --enable-obsolete-api=glibc \
|
---|
110 | --disable-static \
|
---|
111 | --disable-failure-tokens
|
---|
112 | make
|
---|
113 | cp -av --remove-destination .libs/libcrypt.so.1* /usr/lib</userinput></screen>
|
---|
114 | </note>
|
---|
115 |
|
---|
116 | </sect2>
|
---|
117 |
|
---|
118 | <!-- - - - - - - - - - -->
|
---|
119 | <!-- Multilib - 32bit -->
|
---|
120 | <!-- - - - - - - - - - -->
|
---|
121 | <sect2 arch="ml_32,ml_all" role="installation">
|
---|
122 | <title>Installation of Libxcrypt - 32bit</title>
|
---|
123 |
|
---|
124 | <para>Clean previous build:</para>
|
---|
125 |
|
---|
126 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
127 |
|
---|
128 | <para>Prepare Libxcrypt for compilation:</para>
|
---|
129 |
|
---|
130 | <screen><userinput remap="configure">CC="gcc -m32" \
|
---|
131 | ./configure --prefix=/usr \
|
---|
132 | --host=i686-pc-linux-gnu \
|
---|
133 | --libdir=/usr/lib32 \
|
---|
134 | --enable-hashes=strong,glibc \
|
---|
135 | --enable-obsolete-api=glibc \
|
---|
136 | --disable-static \
|
---|
137 | --disable-failure-tokens</userinput></screen>
|
---|
138 |
|
---|
139 | <para>Compile the package:</para>
|
---|
140 |
|
---|
141 | <screen><userinput remap="make">make</userinput></screen>
|
---|
142 |
|
---|
143 | <para>Install the package:</para>
|
---|
144 |
|
---|
145 | <screen><userinput remap="install">cp -av .libs/libcrypt.so* /usr/lib32/ &&
|
---|
146 | make install-pkgconfigDATA &&
|
---|
147 | ln -svf libxcrypt.pc /usr/lib32/pkgconfig/libcrypt.pc</userinput></screen>
|
---|
148 |
|
---|
149 | </sect2><!-- m32 -->
|
---|
150 |
|
---|
151 | <!-- - - - - - - - - - -->
|
---|
152 | <!-- Multilib - x32bit -->
|
---|
153 | <!-- - - - - - - - - - -->
|
---|
154 | <sect2 arch="ml_x32,ml_all" role="installation">
|
---|
155 | <title>Installation of Libxcrypt - x32bit</title>
|
---|
156 |
|
---|
157 | <para>Clean previous build:</para>
|
---|
158 |
|
---|
159 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
160 |
|
---|
161 | <para>Prepare Libxcrypt for compilation:</para>
|
---|
162 |
|
---|
163 | <screen><userinput remap="configure">CC="gcc -mx32" \
|
---|
164 | ./configure --prefix=/usr \
|
---|
165 | --host=x86_64-pc-linux-gnux32 \
|
---|
166 | --libdir=/usr/libx32 \
|
---|
167 | --enable-hashes=strong,glibc \
|
---|
168 | --enable-obsolete-api=glibc \
|
---|
169 | --disable-static \
|
---|
170 | --disable-failure-tokens</userinput></screen>
|
---|
171 |
|
---|
172 | <para>Compile the package:</para>
|
---|
173 |
|
---|
174 | <screen><userinput remap="make">make</userinput></screen>
|
---|
175 |
|
---|
176 | <para>Install the package:</para>
|
---|
177 |
|
---|
178 | <screen><userinput remap="install">cp -av .libs/libcrypt.so* /usr/libx32/ &&
|
---|
179 | make install-pkgconfigDATA &&
|
---|
180 | ln -svf libxcrypt.pc /usr/libx32/pkgconfig/libcrypt.pc</userinput></screen>
|
---|
181 |
|
---|
182 | </sect2><!-- mx32 -->
|
---|
183 |
|
---|
184 | <sect2 id="contents-libxcrypt" role="content">
|
---|
185 | <title>Contents of Libxcrypt</title>
|
---|
186 |
|
---|
187 | <segmentedlist>
|
---|
188 | <segtitle>Installed libraries</segtitle>
|
---|
189 |
|
---|
190 | <seglistitem>
|
---|
191 | <seg>libcrypt.so</seg>
|
---|
192 | </seglistitem>
|
---|
193 | </segmentedlist>
|
---|
194 |
|
---|
195 | <variablelist>
|
---|
196 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
197 | <?dbfo list-presentation="list"?>
|
---|
198 | <?dbhtml list-presentation="table"?>
|
---|
199 |
|
---|
200 | <varlistentry id="libcrypt">
|
---|
201 | <term><filename class="libraryfile">libcrypt</filename></term>
|
---|
202 | <listitem>
|
---|
203 | <para>Contains functions to hash passwords</para>
|
---|
204 | <indexterm zone="ch-system-libxcrypt libcrypt">
|
---|
205 | <primary sortas="c-libcrypt">libcrypt</primary>
|
---|
206 | </indexterm>
|
---|
207 | </listitem>
|
---|
208 | </varlistentry>
|
---|
209 |
|
---|
210 | </variablelist>
|
---|
211 |
|
---|
212 | </sect2>
|
---|
213 |
|
---|
214 | </sect1>
|
---|