source: general/genlib/qca-systemd.xml@ ac38e9dc

systemd-13485
Last change on this file since ac38e9dc was ac38e9dc, checked in by Douglas R. Reno <renodr@…>, 9 years ago

Import back into SVN from Github

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

  • Property mode set to 100644
File size: 8.4 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 qca-download-http "http://delta.affinix.com/download/qca/2.0/qca-&qca-version;.tar.gz">
8 <!ENTITY qca-download-ftp " ">
9 <!ENTITY qca-md5sum "c2b00c732036244701bae4853a2101cf">
10 <!ENTITY qca-size "956 KB">
11 <!ENTITY qca-buildsize "33 MB">
12 <!ENTITY qca-time "1.5 SBU">
13]>
14
15<sect1 id="qca" xreflabel="Qca-&qca-version;">
16 <?dbhtml filename="qca.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy: krejzi $</othername>
20 <date>$Date: 2014-10-26 16:35:43 +0100 (Sun, 26 Oct 2014) $</date>
21 </sect1info>
22
23 <title>Qca-&qca-version;</title>
24
25 <indexterm zone="qca">
26 <primary sortas="a-Qca">Qca</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Qca</title>
31
32 <para>
33 <application>Qca</application> aims to provide a straightforward
34 and cross-platform crypto API, using <application>Qt</application>
35 datatypes and conventions. <application>Qca</application> separates
36 the API from the implementation, using plugins known as Providers.
37 </para>
38
39 &lfs77_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&qca-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&qca-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &qca-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &qca-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &qca-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &qca-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">Qca Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Required</bridgehead>
78 <para role="required">
79 <xref linkend="cmake"/> and
80 <xref linkend="qt4"/>
81 </para>
82
83 <bridgehead renderas="sect4">Recommended</bridgehead>
84 <para role="recommended">
85 <xref linkend="cacerts"/>
86 </para>
87
88 <bridgehead renderas="sect4">Optional</bridgehead>
89 <para role="optional">
90 <xref linkend="cyrus-sasl"/>,
91 <xref linkend="gnupg2"/>,
92 <xref linkend="libgcrypt"/>,
93 <xref linkend="nss"/>,
94 <xref linkend="openssl"/>,
95 <xref linkend="qt5"/>,
96 <ulink url="http://botan.randombit.net/">Botan</ulink> and
97 <ulink url="https://github.com/OpenSC/pkcs11-helper">pkcs11-helper</ulink>
98 </para>
99
100 <note>
101 <para>
102 Even though this package can be built against
103 <application>Qt5</application>, the instructions below don't
104 cover such installation because the changes needed to the
105 instructions below are too invasive. If you need
106 <application>Qt5</application> version of the library, check
107 the "KDE Frameworks 5" chapter for instructions.
108 </para>
109 </note>
110
111 <para condition="html" role="usernotes">User Notes:
112 <ulink url="&blfs-wiki;/qca"/>
113 </para>
114 </sect2>
115
116 <sect2 role="installation">
117 <title>Installation of Qca</title>
118
119 <para>
120 First, silence a lot of warnings caused by using the latest toolchain
121 by running the following command:
122 </para>
123
124<screen><userinput>sed -i "/BSD_SOURCE/d" CMakeLists.txt</userinput></screen>
125
126 <para>
127 Install <application>Qca</application> by running the following
128 commands:
129 </para>
130
131<screen><userinput>mkdir build &amp;&amp;
132cd build &amp;&amp;
133
134cmake -DCMAKE_INSTALL_PREFIX=/usr \
135 -DCMAKE_BUILD_TYPE=Release \
136 -DQT4_BUILD=ON \
137 -DQCA_DOC_INSTALL_DIR=/usr/share/doc/qca-&qca-version; \
138 -DQCA_FEATURE_INSTALL_DIR=/usr/share/qt4/mkspecs/features \
139 -DQCA_INCLUDE_INSTALL_DIR=/usr/include/qt4 \
140 -DQCA_PRIVATE_INCLUDE_INSTALL_DIR=/usr/include/qt4 \
141 -DQCA_PLUGINS_INSTALL_DIR=/usr/lib/qt4/plugins \
142 -Wno-dev .. &amp;&amp;
143
144make</userinput></screen>
145
146 <para>
147 To test the results, issue <command>make test</command>.
148 </para>
149
150 <para>
151 Now, as the <systemitem class="username">root</systemitem> user:
152 </para>
153
154<screen role="root"><userinput>make install</userinput></screen>
155
156 <para>
157 If <application>Qt4</application> isn't installed in
158 <filename class="directory">/usr</filename>, ensure
159 it can properly find the modules installed by this
160 package by running the following commands as the
161 <systemitem class="username">root</systemitem> user:
162 </para>
163
164<screen role="root"><userinput>if [[ ${QT4DIR} != "/usr" ]]
165then
166 ln -sfv /usr/include/qt4/QtCrypto \
167 ${QT4DIR}/include/qt4/ &amp;&amp;
168 ln -sfv /usr/share/qt4/mkspecs/features/crypto.prf \
169 ${QT4DIR}/share/qt4/mkspecs/features/ &amp;&amp;
170
171 install -v -dm755 ${QT4DIR}/lib/qt4/plugins/crypto &amp;&amp;
172
173 for file in /usr/lib/qt4/plugins/crypto/*
174 do
175 ln -sfv ${file} ${QT4DIR}/lib/qt4/plugins/crypto/
176 done &amp;&amp;
177
178 unset file
179fi</userinput></screen>
180
181 <note>
182 <para>
183 If you upgrade <application>Qt4</application> per BLFS
184 instructions, make sure you re-run the commands above.
185 </para>
186 </note>
187
188 </sect2>
189
190 <sect2 role="commands">
191 <title>Command Explanations</title>
192
193 <para>
194 <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used
195 to apply higher level of the compiler optimizations.
196 </para>
197
198 <para>
199 <parameter>-DQT4_BUILD=ON</parameter>: This switch is used to ensure
200 that <application>Qt4</application> version of the library is built
201 even if <application>Qt5</application> is present.
202 </para>
203
204 <para>
205 <parameter>-DQCA_*_INSTALL_DIR=...</parameter>: These switches are used
206 to ensure that files depending on the <application>Qt4</application>
207 installation prefix are installed in the correct locations.
208 </para>
209
210 </sect2>
211
212 <sect2 role="content">
213 <title>Contents</title>
214
215 <segmentedlist>
216 <segtitle>Installed Programs</segtitle>
217 <segtitle>Installed Libraries</segtitle>
218 <segtitle>Installed Directories</segtitle>
219
220 <seglistitem>
221 <seg>
222 mozcerts and qcatool
223 </seg>
224 <seg>
225 libqca.so
226 </seg>
227 <seg>
228 /usr/include/qt4/QtCrypto,
229 /usr/lib/cmake/Qca,
230 /usr/lib/qt4/plugins/crypto and,
231 depending on the <application>Qt4</application>
232 installation prefix,
233 $QT4DIR/include/qt4/QtCrypto and
234 $QT4DIR/lib/qt4/plugins/crypto
235 </seg>
236 </seglistitem>
237 </segmentedlist>
238
239 <variablelist>
240 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
241 <?dbfo list-presentation="list"?>
242 <?dbhtml list-presentation="table"?>
243
244 <varlistentry id="mozcerts">
245 <term><command>mozcerts</command></term>
246 <listitem>
247 <para>
248 is a command line tool for converting certdata.txt into
249 outfile.pem files.
250 </para>
251 <indexterm zone="qca mozcerts">
252 <primary sortas="b-mozcerts">mozcerts</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="qcatool">
258 <term><command>qcatool</command></term>
259 <listitem>
260 <para>
261 is a command line tool for performing various cryptographic
262 operations with <application>Qca</application>.
263 </para>
264 <indexterm zone="qca qcatool">
265 <primary sortas="b-qcatool">qcatool</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
270 <varlistentry id="libqca">
271 <term><filename class="libraryfile">libqca.so</filename></term>
272 <listitem>
273 <para>
274 is the Qt Cryptography Architecture (Qca) library.
275 </para>
276 <indexterm zone="qca libqca">
277 <primary sortas="c-libqca">libqca.so</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 </variablelist>
283
284 </sect2>
285
286</sect1>
Note: See TracBrowser for help on using the repository browser.