source: general/genlib/libgcrypt.xml@ 31973174

systemd-13485
Last change on this file since 31973174 was 99673f0, checked in by DJ Lucas <dj@…>, 8 years ago

Rename -systemd specific files, move libdrim to X Libraries section.

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

  • Property mode set to 100644
File size: 7.8 KB
RevLine 
[8250d8e]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
[4af8cb5]7 <!ENTITY libgcrypt-download-http " ">
[8250d8e]8 <!ENTITY libgcrypt-download-ftp "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-&libgcrypt-version;.tar.bz2">
[abf03a85]9 <!ENTITY libgcrypt-md5sum "4c13c5fa43147866f993d73ee62af176">
[9a19f1b]10 <!ENTITY libgcrypt-size "2.4 MB">
[83f6c770]11 <!ENTITY libgcrypt-buildsize "38 MB (additional 8 MB for docs)">
12 <!ENTITY libgcrypt-time "0.3 SBU (additional 0.1 SBU for docs and
13 0.3 SBU for tests)">
[8250d8e]14]>
15
[e79ed72]16<sect1 id="libgcrypt" xreflabel="libgcrypt-&libgcrypt-version;">
[8250d8e]17 <?dbhtml filename="libgcrypt.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
[e79ed72]24 <title>libgcrypt-&libgcrypt-version;</title>
[8250d8e]25
26 <indexterm zone="libgcrypt">
[e79ed72]27 <primary sortas="a-libgcrypt">libgcrypt</primary>
[8250d8e]28 </indexterm>
29
30 <sect2 role="package">
[e79ed72]31 <title>Introduction to libgcrypt</title>
[8250d8e]32
[6d8f6dc]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>
[8250d8e]40
[df72afb4]41 &lfs78_checked;
[43c1385]42
[8250d8e]43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
[6d8f6dc]46 <para>
47 Download (HTTP): <ulink url="&libgcrypt-download-http;"/>
48 </para>
[8250d8e]49 </listitem>
50 <listitem>
[6d8f6dc]51 <para>
52 Download (FTP): <ulink url="&libgcrypt-download-ftp;"/>
53 </para>
[8250d8e]54 </listitem>
55 <listitem>
[6d8f6dc]56 <para>
57 Download MD5 sum: &libgcrypt-md5sum;
58 </para>
[8250d8e]59 </listitem>
60 <listitem>
[6d8f6dc]61 <para>
62 Download size: &libgcrypt-size;
63 </para>
[8250d8e]64 </listitem>
65 <listitem>
[6d8f6dc]66 <para>
67 Estimated disk space required: &libgcrypt-buildsize;
68 </para>
[8250d8e]69 </listitem>
70 <listitem>
[6d8f6dc]71 <para>
72 Estimated build time: &libgcrypt-time;
73 </para>
[8250d8e]74 </listitem>
75 </itemizedlist>
76
[e79ed72]77 <bridgehead renderas="sect3">libgcrypt Dependencies</bridgehead>
[8250d8e]78
79 <bridgehead renderas="sect4">Required</bridgehead>
[6d8f6dc]80 <para role="required">
81 <xref linkend="libgpg-error"/>
82 </para>
[8250d8e]83
[390e0d7]84 <bridgehead renderas="sect4">Optional</bridgehead>
[6d8f6dc]85 <para role="optional">
[83f6c770]86 <xref linkend="libcap-pam"/> and
87 <xref linkend="pth"/>,
[ac38e9dc]88 <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
[6d8f6dc]89 </para>
[390e0d7]90
[8250d8e]91 <para condition="html" role="usernotes">User Notes:
[6d8f6dc]92 <ulink url="&blfs-wiki;/libgcrypt"/>
93 </para>
[8250d8e]94 </sect2>
95
96 <sect2 role="installation">
[e79ed72]97 <title>Installation of libgcrypt</title>
[8250d8e]98
[6d8f6dc]99 <para>
100 Install <application>libgcrypt</application> by running the
101 following commands:
102 </para>
[8250d8e]103
[9a19f1b]104<screen><userinput>./configure --prefix=/usr &amp;&amp;
[8250d8e]105make</userinput></screen>
106
[6d8f6dc]107 <para>
108 Only <command>info</command> documentation is shipped in the package
109 tarball. If you wish to build alternate formats of the documentation,
110 (you must have <xref linkend="texlive"/> installed to build the PDF
111 and PostScript documentation), then issue the following commands:
112 </para>
[8250d8e]113
[ac38e9dc]114<screen><userinput>make -j1 -C doc pdf ps html &amp;&amp;
[8250d8e]115makeinfo --html --no-split -o doc/gcrypt_nochunks.html doc/gcrypt.texi &amp;&amp;
116makeinfo --plaintext -o doc/gcrypt.txt doc/gcrypt.texi</userinput></screen>
117
[6d8f6dc]118 <para>
119 To test the results, issue: <command>make check</command>.
120 </para>
[8250d8e]121
[6d8f6dc]122 <para>
123 Now, as the <systemitem class="username">root</systemitem> user:
124 </para>
[8250d8e]125
126<screen role="root"><userinput>make install &amp;&amp;
[6d8f6dc]127install -v -dm755 /usr/share/doc/libgcrypt-&libgcrypt-version; &amp;&amp;
[acb57a0]128install -v -m644 README doc/{README.apichanges,fips*,libgcrypt*} \
129 /usr/share/doc/libgcrypt-&libgcrypt-version;</userinput></screen>
[8250d8e]130
[6d8f6dc]131 <para>
132 If you built the additional documentation, install it by issuing the
133 following commands as the <systemitem class="username">root</systemitem>
134 user:
135 </para>
[8250d8e]136
[6d8f6dc]137<screen role="root"><userinput>install -v -dm755 /usr/share/doc/libgcrypt-&libgcrypt-version;/html &amp;&amp;
[8250d8e]138install -v -m644 doc/gcrypt.html/* \
139 /usr/share/doc/libgcrypt-&libgcrypt-version;/html &amp;&amp;
[390e0d7]140install -v -m644 doc/gcrypt_nochunks.html \
[8250d8e]141 /usr/share/doc/libgcrypt-&libgcrypt-version; &amp;&amp;
142install -v -m644 doc/gcrypt.{pdf,ps,dvi,txt,texi} \
143 /usr/share/doc/libgcrypt-&libgcrypt-version;</userinput></screen>
144
145 </sect2>
146
[1bac96e3]147 <sect2 role="commands">
148 <title>Command Explanations</title>
149
150 <para>
151 <option>--with-capabilities</option>: This option enables libcap2 support.
[83f6c770]152 Note that this breaks <ulink
153 url="https://gitlab.com/cryptsetup/cryptsetup">Cryptsetup</ulink>.
[1bac96e3]154 </para>
155
156 </sect2>
157
[8250d8e]158 <sect2 role="content">
159 <title>Contents</title>
160
161 <segmentedlist>
[390e0d7]162 <segtitle>Installed Programs</segtitle>
[d284bee]163 <segtitle>Installed Library</segtitle>
[8250d8e]164 <segtitle>Installed Directory</segtitle>
165
166 <seglistitem>
[6d8f6dc]167 <seg>
[9a19f1b]168 dumpsexp, hmac256, libgcrypt-config, and mpicalc
[6d8f6dc]169 </seg>
170 <seg>
171 libgcrypt.so
172 </seg>
173 <seg>
174 /usr/share/doc/libgcrypt-&libgcrypt-version;
175 </seg>
[8250d8e]176 </seglistitem>
177 </segmentedlist>
178
179 <variablelist>
180 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
181 <?dbfo list-presentation="list"?>
182 <?dbhtml list-presentation="table"?>
183
[ac38e9dc]184 <varlistentry id="dumpsexp">
185 <term><command>dumpsexp</command></term>
186 <listitem>
187 <para>
188 is a debug tool for S-expressions.
189 </para>
190 <indexterm zone="libgcrypt dumpsexp">
191 <primary sortas="b-dumpsexp">dumpsexp</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="hmac256">
197 <term><command>hmac256</command></term>
198 <listitem>
199 <para>
200 is a standalone HMAC-SHA-256 implementation used to compute
201 an HMAC-SHA-256 authentication code.
202 </para>
203 <indexterm zone="libgcrypt hmac256">
204 <primary sortas="b-hmac256">hmac256</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry id="libgcrypt-config">
210 <term><command>libgcrypt-config</command></term>
211 <listitem>
212 <para>
213 determines the compile and linker flags that should be used to
214 compile and link programs that use <filename class="libraryfile">libgcrypt</filename>.
215 </para>
216 <indexterm zone="libgcrypt libgcrypt-config">
217 <primary sortas="b-libgcrypt-config">libgcrypt-config</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 <varlistentry id="mpicalc">
223 <term><command>mpicalc</command></term>
224 <listitem>
225 <para>
226 is a RPN (Reverse Polish Notation) calculator.
227 </para>
228 <indexterm zone="libgcrypt mpicalc">
229 <primary sortas="b-mpicalc">mpicalc</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
[8250d8e]234 <varlistentry id="libgcrypt-lib">
[6d8f6dc]235 <term><filename class="libraryfile">libgcrypt.so</filename></term>
[8250d8e]236 <listitem>
[6d8f6dc]237 <para>
238 contains the cryptographic API functions.
239 </para>
[8250d8e]240 <indexterm zone="libgcrypt libgcrypt-lib">
[6d8f6dc]241 <primary sortas="c-libgcrypt">libgcrypt.so</primary>
[8250d8e]242 </indexterm>
243 </listitem>
244 </varlistentry>
245
246 </variablelist>
247
248 </sect2>
249
250</sect1>
Note: See TracBrowser for help on using the repository browser.