source: general/genlib/qca.xml@ cf02129

systemd-13485
Last change on this file since cf02129 was cf02129, checked in by Christopher Gregory <cjg@…>, 9 years ago

Updated to qca-2.1.0.

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

  • Property mode set to 100644
File size: 7.2 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.bz2">
8 <!ENTITY qca-download-ftp " ">
9 <!ENTITY qca-md5sum "c2b00c732036244701bae4853a2101cf">
10 <!ENTITY qca-size "933 KB">
11 <!ENTITY qca-buildsize "29.2 MB">
12 <!ENTITY qca-time "1.9 SBU">
13]>
14
15<sect1 id="qca" xreflabel="qca-&qca-version;">
16 <?dbhtml filename="qca.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</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><application>Qca</application> aims to provide a straightforward
33 and cross-platform crypto API, using <application>Qt</application> datatypes
34 and conventions. <application>Qca</application> separates the API from
35 the implementation, using plugins known as Providers.</para>
36
37 &lfs76_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>Download (HTTP): <ulink url="&qca-download-http;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download (FTP): <ulink url="&qca-download-ftp;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download MD5 sum: &qca-md5sum;</para>
49 </listitem>
50 <listitem>
51 <para>Download size: &qca-size;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated disk space required: &qca-buildsize;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated build time: &qca-time;</para>
58 </listitem>
59 </itemizedlist>
60
61 <bridgehead renderas="sect3">Qca Dependencies</bridgehead>
62
63 <bridgehead renderas="sect4">Required</bridgehead>
64 <para role="required">
65 <xref linkend="cmake"/> and
66 <xref linkend="qt4"/>
67 </para>
68
69 <bridgehead renderas="sect4">Recommended</bridgehead>
70 <para role="recommended">
71 <xref linkend="cacerts"/>
72 </para>
73
74 <bridgehead renderas="sect4">Optional</bridgehead>
75 <para role="optional">
76 <xref linkend="cyrus-sasl"/>,
77 <xref linkend="gnupg2"/>,
78 <xref linkend="libgcrypt"/>,
79 <xref linkend="nss"/>,
80 <xref linkend="openssl"/>,
81 <xref linkend="qt5"/>,
82 <ulink url="http://botan.randombit.net/">Botan</ulink> and
83 <ulink url="https://github.com/OpenSC/pkcs11-helper">pkcs11-helper</ulink>
84 </para>
85
86 <para condition="html" role="usernotes">User Notes:
87 <ulink url="&blfs-wiki;/qca"/></para>
88
89 </sect2>
90
91 <sect2 role="installation">
92 <title>Installation of Qca</title>
93
94 <para>Install <application>Qca</application> by running the following
95 commands:</para>
96
97<screen><userinput>mkdir build &amp;&amp;
98cd build &amp;&amp;
99
100cmake -DCMAKE_INSTALL_PREFIX=/usr \
101 -DCMAKE_BUILD_TYPE=Release \
102 -DQT4_BUILD=ON \
103 -DQCA_DOC_INSTALL_DIR=/usr/share/doc/qca-2.1.0 \
104 -DQCA_FEATURE_INSTALL_DIR=/usr/share/qt4/mkspecs/features \
105 -DQCA_INCLUDE_INSTALL_DIR=/usr/include/qt4 \
106 -DQCA_PRIVATE_INCLUDE_INSTALL_DIR=/usr/include/qt4 \
107 -DQCA_PLUGINS_INSTALL_DIR=/usr/lib/qt4/plugins \
108 -Wno-dev .. &amp;&amp;
109
110make</userinput></screen>
111
112 <para>To test the results, issue <command>make test</command>.</para>
113
114 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
115
116<screen role="root"><userinput>make install</userinput></screen>
117
118 <para>
119 If <application>Qt4</application> isn't installed in
120 <filename class="directory">/usr</filename>, ensure
121 it can properly find the modules installed by this
122 package by running the following commands as the
123 <systemitem class="username">root</systemitem> user:
124 </para>
125
126<screen role="root"><userinput>if [[ ${QT4DIR} != "/usr" ]]
127then
128 ln -sfv /usr/include/qt4/QtCrypto \
129 ${QT4DIR}/include/qt4/ &amp;&amp;
130 ln -sfv /usr/share/qt4/mkspecs/features/crypto.prf \
131 ${QT4DIR}/share/qt4/mkspecs/features/ &amp;&amp;
132
133 install -v -dm755 ${QT4DIR}/lib/qt4/plugins/crypto &amp;&amp;
134
135 for file in /usr/lib/qt4/plugins/crypto/*
136 do
137 ln -sfv ${file} ${QT4DIR}/lib/qt4/plugins/crypto/
138 done &amp;&amp;
139
140 unset file
141fi</userinput></screen>
142
143 </sect2>
144
145 <sect2 role="commands">
146 <title>Command Explanations</title>
147
148 <para><parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used
149 to apply higher level of the compiler optimizations.</para>
150
151 <para><parameter>-DQT4_BUILD=ON</parameter>: This switch is used to ensure
152 that <application>Qt4</application> version of the library is built even if
153 <application>Qt5</application> is present.</para>
154
155 <para><parameter>-DQCA_*_INSTALL_DIR=...</parameter>: These switches are used
156 to ensure that files depending on the <application>Qt4</application>
157 installation prefix are installed in the correct locations.</para>
158
159 </sect2>
160
161 <sect2 role="content">
162 <title>Contents</title>
163
164 <segmentedlist>
165 <segtitle>Installed Programs</segtitle>
166 <segtitle>Installed Libraries</segtitle>
167 <segtitle>Installed Directories</segtitle>
168
169 <seglistitem>
170 <seg>mozcerts and qcatool2</seg>
171 <seg>libqca.so</seg>
172 <seg>
173 /usr/include/qt4/QtCrypto,
174 /usr/lib/cmake/Qca,
175 /usr/lib/qt4/plugins/crypto and,
176 depending on the <application>Qt4</application>
177 installation prefix,
178 $QT4DIR/include/qt4/QtCrypto and
179 $QT4DIR/lib/qt4/plugins/crypto
180 </seg>
181 </seglistitem>
182 </segmentedlist>
183
184 <variablelist>
185 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
186 <?dbfo list-presentation="list"?>
187 <?dbhtml list-presentation="table"?>
188
189 <varlistentry id="mozcerts">
190 <term><command>mozcerts</command></term>
191 <listitem>
192 <para>is a command line tool for converting certdata.txt into
193 outfile.pem files.</para>
194 <indexterm zone="qca mozcerts">
195 <primary sortas="b-mozcerts">mozcerts</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <varlistentry id="qcatool2">
201 <term><command>qcatool2</command></term>
202 <listitem>
203 <para>is a command line tool for performing various cryptographic
204 operations with Qca.</para>
205 <indexterm zone="qca qcatool2">
206 <primary sortas="b-qcatool2">qcatool2</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 <varlistentry id="libqca">
212 <term><filename class='libraryfile'>libqca.so</filename></term>
213 <listitem>
214 <para>is the Qt Cryptography Architecture (Qca) library.</para>
215 <indexterm zone="qca libqca">
216 <primary sortas="c-libqca">libqca.so</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 </variablelist>
222
223 </sect2>
224
225</sect1>
Note: See TracBrowser for help on using the repository browser.