source: general/genlib/libgcrypt-systemd.xml@ 3f46dc67

7.6-blfs 7.6-systemd kde5-14269 kde5-14686 systemd-13485
Last change on this file since 3f46dc67 was 1d054a4, checked in by Krejzi <krejzi@…>, 10 years ago

Add libinput. Move libgpg-error and libgcrypt shared libraries to /lib.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@13542 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.5 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 <!ENTITY libgcrypt-download-http " ">
8 <!ENTITY libgcrypt-download-ftp "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-&libgcrypt-version;.tar.bz2">
9 <!ENTITY libgcrypt-md5sum "a5a5060dc2f80bcac700ab0236ea47dc">
10 <!ENTITY libgcrypt-size "2.4 MB">
11 <!ENTITY libgcrypt-buildsize "32 MB (additional 7 MB SBU for docs)">
12 <!ENTITY libgcrypt-time "0.3 SBU (additional 0.1 SBU for docs and
13 0.8 SBU for tests)">
14]>
15
16<sect1 id="libgcrypt" xreflabel="libgcrypt-&libgcrypt-version;">
17 <?dbhtml filename="libgcrypt.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>libgcrypt-&libgcrypt-version;</title>
25
26 <indexterm zone="libgcrypt">
27 <primary sortas="a-libgcrypt">libgcrypt</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to libgcrypt</title>
32
33 <para>
34 The <application>libgcrypt</application> package contains a general
35 purpose crypto library based on the code used in
36 <application>GnuPG</application>. The library provides a high level
37 interface to cryptographic building blocks using an extendable and flexible
38 API.
39 </para>
40
41 &lfs75_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&libgcrypt-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&libgcrypt-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &libgcrypt-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &libgcrypt-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &libgcrypt-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &libgcrypt-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">libgcrypt Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Required</bridgehead>
80 <para role="required">
81 <xref linkend="libgpg-error"/>
82 </para>
83
84 <bridgehead renderas="sect4">Optional</bridgehead>
85 <para role="optional">
86 <xref linkend="libcap-pam"/> and
87 <xref linkend="pth"/>
88 </para>
89
90 <para condition="html" role="usernotes">User Notes:
91 <ulink url="&blfs-wiki;/libgcrypt"/>
92 </para>
93 </sect2>
94
95 <sect2 role="installation">
96 <title>Installation of libgcrypt</title>
97
98 <para>
99 Install <application>libgcrypt</application> by running the
100 following commands:
101 </para>
102
103<screen><userinput>./configure --prefix=/usr &amp;&amp;
104make</userinput></screen>
105
106 <para>
107 Only <command>info</command> documentation is shipped in the package
108 tarball. If you wish to build alternate formats of the documentation,
109 (you must have <xref linkend="texlive"/> installed to build the PDF
110 and PostScript documentation), then issue the following commands:
111 </para>
112
113<screen><userinput>make -C doc pdf ps html &amp;&amp;
114makeinfo --html --no-split -o doc/gcrypt_nochunks.html doc/gcrypt.texi &amp;&amp;
115makeinfo --plaintext -o doc/gcrypt.txt doc/gcrypt.texi</userinput></screen>
116
117 <para>
118 To test the results, issue: <command>make check</command>.
119 </para>
120
121 <para>
122 Now, as the <systemitem class="username">root</systemitem> user:
123 </para>
124
125<screen role="root"><userinput>make install &amp;&amp;
126install -v -dm755 /usr/share/doc/libgcrypt-&libgcrypt-version; &amp;&amp;
127install -v -m644 README doc/{README.apichanges,fips*,libgcrypt*} \
128 /usr/share/doc/libgcrypt-&libgcrypt-version;</userinput></screen>
129
130 <para>
131 The shared library needs to be moved to
132 <filename class="directory">/lib</filename>, and as a result the
133 <filename class="extension">.so</filename> file in
134 <filename class="directory">/usr/lib</filename> will need to be
135 recreated. Run the following command as the
136 <systemitem class="username">root</systemitem> user:
137 </para>
138
139<screen><userinput remap="install">mv -v /usr/lib/libgcrypt.so.* /lib
140ln -sfv ../../lib/$(readlink /usr/lib/libgcrypt.so) /usr/lib/libgcrypt.so</userinput></screen>
141
142 <para>
143 If you built the additional documentation, install it by issuing the
144 following commands as the <systemitem class="username">root</systemitem>
145 user:
146 </para>
147
148<screen role="root"><userinput>install -v -dm755 /usr/share/doc/libgcrypt-&libgcrypt-version;/html &amp;&amp;
149install -v -m644 doc/gcrypt.html/* \
150 /usr/share/doc/libgcrypt-&libgcrypt-version;/html &amp;&amp;
151install -v -m644 doc/gcrypt_nochunks.html \
152 /usr/share/doc/libgcrypt-&libgcrypt-version; &amp;&amp;
153install -v -m644 doc/gcrypt.{pdf,ps,dvi,txt,texi} \
154 /usr/share/doc/libgcrypt-&libgcrypt-version;</userinput></screen>
155
156 </sect2>
157
158 <sect2 role="commands">
159 <title>Command Explanations</title>
160
161 <para>
162 <option>--with-capabilities</option>: This option enables libcap2 support.
163 </para>
164
165 </sect2>
166
167 <sect2 role="content">
168 <title>Contents</title>
169
170 <segmentedlist>
171 <segtitle>Installed Programs</segtitle>
172 <segtitle>Installed Library</segtitle>
173 <segtitle>Installed Directory</segtitle>
174
175 <seglistitem>
176 <seg>
177 dumpsexp, hmac256, libgcrypt-config, and mpicalc
178 </seg>
179 <seg>
180 libgcrypt.so
181 </seg>
182 <seg>
183 /usr/share/doc/libgcrypt-&libgcrypt-version;
184 </seg>
185 </seglistitem>
186 </segmentedlist>
187
188 <variablelist>
189 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
190 <?dbfo list-presentation="list"?>
191 <?dbhtml list-presentation="table"?>
192
193 <varlistentry id="libgcrypt-lib">
194 <term><filename class="libraryfile">libgcrypt.so</filename></term>
195 <listitem>
196 <para>
197 contains the cryptographic API functions.
198 </para>
199 <indexterm zone="libgcrypt libgcrypt-lib">
200 <primary sortas="c-libgcrypt">libgcrypt.so</primary>
201 </indexterm>
202 </listitem>
203 </varlistentry>
204
205 </variablelist>
206
207 </sect2>
208
209</sect1>
Note: See TracBrowser for help on using the repository browser.