[b358845] | 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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY gpgme-download-http "&gnupg-http;/gpgme/gpgme-&gpgme-version;.tar.bz2">
|
---|
[d4e8cd93] | 8 | <!ENTITY gpgme-download-ftp "&gnupg-ftp;/gpgme/gpgme-&gpgme-version;.tar.bz2">
|
---|
[14d673a2] | 9 | <!ENTITY gpgme-download-ftp " ">
|
---|
[55bad52] | 10 | <!ENTITY gpgme-md5sum "98f25a7e494d294c4b2c1a769113510e">
|
---|
[0a18d81] | 11 | <!ENTITY gpgme-size "1.7 MB">
|
---|
[55bad52] | 12 | <!ENTITY gpgme-buildsize "168 MB (Add 33 MB for tests)">
|
---|
| 13 | <!ENTITY gpgme-time "0.7 SBU (with all bindings, add 0.8 SBU for tests; all with parallelism=4)">
|
---|
[b358845] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="gpgme" xreflabel="GPGME-&gpgme-version;">
|
---|
| 17 | <?dbhtml filename="gpgme.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>GPGME-&gpgme-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="gpgme">
|
---|
| 26 | <primary sortas="a-GPGME">GPGME</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to GPGME</title>
|
---|
| 31 |
|
---|
[d6da5da] | 32 | <para>
|
---|
[200bab29] | 33 | The <application>GPGME</application> package is a C library
|
---|
[bbacc9a] | 34 | that allows cryptography support to be added to a
|
---|
[d6da5da] | 35 | program. It is designed to make access to public key crypto
|
---|
| 36 | engines like <application>GnuPG</application> or GpgSM easier
|
---|
| 37 | for applications. <application>GPGME</application> provides
|
---|
| 38 | a high-level crypto API for encryption, decryption, signing,
|
---|
| 39 | signature verification and key management.
|
---|
| 40 | </para>
|
---|
[b358845] | 41 |
|
---|
[b1c0fa7] | 42 | &lfs112_checked;
|
---|
[b358845] | 43 |
|
---|
| 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
[d6da5da] | 47 | <para>
|
---|
| 48 | Download (HTTP): <ulink url="&gpgme-download-http;"/>
|
---|
| 49 | </para>
|
---|
[b358845] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[d6da5da] | 52 | <para>
|
---|
| 53 | Download (FTP): <ulink url="&gpgme-download-ftp;"/>
|
---|
| 54 | </para>
|
---|
[b358845] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[d6da5da] | 57 | <para>
|
---|
| 58 | Download MD5 sum: &gpgme-md5sum;
|
---|
| 59 | </para>
|
---|
[b358845] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[d6da5da] | 62 | <para>
|
---|
| 63 | Download size: &gpgme-size;
|
---|
| 64 | </para>
|
---|
[b358845] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[d6da5da] | 67 | <para>
|
---|
| 68 | Estimated disk space required: &gpgme-buildsize;
|
---|
| 69 | </para>
|
---|
[b358845] | 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
[d6da5da] | 72 | <para>
|
---|
| 73 | Estimated build time: &gpgme-time;
|
---|
| 74 | </para>
|
---|
[b358845] | 75 | </listitem>
|
---|
| 76 | </itemizedlist>
|
---|
[150992ab] | 77 |
|
---|
[367cbd0] | 78 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 79 | <itemizedlist spacing="compact">
|
---|
| 80 | <listitem>
|
---|
| 81 | <para>
|
---|
| 82 | Recommended patch (required if SWIG is installed):
|
---|
| 83 | <ulink url="&patch-root;/gpgme-&gpgme-version;-gpg_error_1_46-1.patch"/>
|
---|
| 84 | </para>
|
---|
| 85 | </listitem>
|
---|
| 86 | </itemizedlist>
|
---|
| 87 |
|
---|
[b358845] | 88 | <bridgehead renderas="sect3">GPGME Dependencies</bridgehead>
|
---|
| 89 |
|
---|
| 90 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[d6da5da] | 91 | <para role="required">
|
---|
| 92 | <xref linkend="libassuan"/>
|
---|
| 93 | </para>
|
---|
[b358845] | 94 |
|
---|
| 95 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[289d262f] | 96 | <para role="optional">
|
---|
[33690a1] | 97 | <xref linkend="doxygen"/> and
|
---|
[cd074c2] | 98 | <xref linkend="graphviz"/> (for API documentation),
|
---|
[33690a1] | 99 | <xref linkend="gnupg2"/> (required if Qt or SWIG are installed;
|
---|
[356a7a9] | 100 | used during the testsuite),
|
---|
[33690a1] | 101 | <xref linkend="clisp"/>,<!--
|
---|
| 102 | gpgme can still use python 2.7, but can use python3 as well,
|
---|
| 103 | so do not advertise python2
|
---|
| 104 | <xref linkend="python2"/>,-->
|
---|
[30d6b736] | 105 | <xref linkend="qt5"/>, and/or
|
---|
| 106 | <xref linkend="swig"/> (for language bindings)
|
---|
[d6da5da] | 107 | </para>
|
---|
[b358845] | 108 |
|
---|
| 109 | <para condition="html" role="usernotes">User Notes:
|
---|
[d6da5da] | 110 | <ulink url="&blfs-wiki;/gpgme"/>
|
---|
| 111 | </para>
|
---|
[b358845] | 112 | </sect2>
|
---|
| 113 |
|
---|
| 114 | <sect2 role="installation">
|
---|
| 115 | <title>Installation of GPGME</title>
|
---|
| 116 |
|
---|
[22c07de] | 117 | <para>
|
---|
[0c73c5b6] | 118 | First, fix an issue building with Python &python3-majorver; installed:
|
---|
[22c07de] | 119 | </para>
|
---|
| 120 |
|
---|
[0c73c5b6] | 121 | <screen><userinput remap="pre">sed -e 's/3\.9/&python3-majorver;/' \
|
---|
[a171a54] | 122 | -e 's/:3/:4/' \
|
---|
[22c07de] | 123 | -i configure</userinput></screen>
|
---|
[32089e1] | 124 |
|
---|
[367cbd0] | 125 | <para>
|
---|
| 126 | Apply a patch to fix build failure with SWIG and libgpg-error-1.46
|
---|
| 127 | or later:
|
---|
| 128 | </para>
|
---|
| 129 |
|
---|
| 130 | <screen><userinput remap="pre">patch -Np1 -i ../gpgme-&gpgme-version;-gpg_error_1_46-1.patch</userinput></screen>
|
---|
| 131 |
|
---|
[d6da5da] | 132 | <para>
|
---|
| 133 | Install <application>GPGME</application> by running the following
|
---|
| 134 | commands:
|
---|
| 135 | </para>
|
---|
[b358845] | 136 |
|
---|
[14f0ab29] | 137 | <screen><userinput>./configure --prefix=/usr --disable-gpg-test &&
|
---|
[b358845] | 138 | make</userinput></screen>
|
---|
[150992ab] | 139 |
|
---|
[d6da5da] | 140 | <para>
|
---|
[14f0ab29] | 141 | To test the results, you should have <xref linkend="gnupg2"/> installed
|
---|
| 142 | and remove the <command>--disable-gpg-test</command> above. Issue:
|
---|
[0b5fa18] | 143 | <command>make -k check</command>.
|
---|
[d6da5da] | 144 | </para>
|
---|
[b358845] | 145 |
|
---|
[d6da5da] | 146 | <para>
|
---|
| 147 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 148 | </para>
|
---|
[b358845] | 149 |
|
---|
| 150 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 151 |
|
---|
| 152 | </sect2>
|
---|
[f7ac7b2] | 153 |
|
---|
[14f0ab29] | 154 | <sect2 role="commands">
|
---|
| 155 | <title>Command Explanations</title>
|
---|
| 156 |
|
---|
| 157 | <para>
|
---|
| 158 | <parameter>--disable-gpg-test</parameter>: if this parameter is not
|
---|
| 159 | passed to configure, the test programs are built during
|
---|
| 160 | <command>make</command> stage, which requires <xref linkend="gnupg2"/>.
|
---|
| 161 | This parameter is not needed if <xref linkend="gnupg2"/> is installed.
|
---|
| 162 | </para>
|
---|
| 163 |
|
---|
| 164 | </sect2>
|
---|
| 165 |
|
---|
[b358845] | 166 | <sect2 role="content">
|
---|
| 167 | <title>Contents</title>
|
---|
| 168 |
|
---|
| 169 | <segmentedlist>
|
---|
| 170 | <segtitle>Installed Program</segtitle>
|
---|
| 171 | <segtitle>Installed Libraries</segtitle>
|
---|
| 172 | <segtitle>Installed Directory</segtitle>
|
---|
| 173 |
|
---|
| 174 | <seglistitem>
|
---|
[d6da5da] | 175 | <seg>
|
---|
[b3285de] | 176 | gpgme-json, and gpgme-tool
|
---|
[d6da5da] | 177 | </seg>
|
---|
| 178 | <seg>
|
---|
[cd074c2] | 179 | libgpgme, libgpgmepp.so, and libqgpgme.so
|
---|
[d6da5da] | 180 | </seg>
|
---|
| 181 | <seg>
|
---|
[cd074c2] | 182 | /usr/include/{gpgme++,qgpgme,QGpgME},
|
---|
| 183 | /usr/lib/cmake/{Gpgmepp,QGpgme}.
|
---|
[90691c23] | 184 | /usr/lib/python{2.7,3.9}/site-packages/gpg, and
|
---|
[d6da5da] | 185 | /usr/share/common-lisp/source/gpgme
|
---|
| 186 | </seg>
|
---|
[b358845] | 187 | </seglistitem>
|
---|
| 188 | </segmentedlist>
|
---|
| 189 |
|
---|
| 190 | <variablelist>
|
---|
| 191 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 192 | <?dbfo list-presentation="list"?>
|
---|
| 193 | <?dbhtml list-presentation="table"?>
|
---|
| 194 |
|
---|
[cd074c2] | 195 | <varlistentry id="gpgme-json">
|
---|
| 196 | <term><command>gpgme-json</command></term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>
|
---|
[4c24eb0a] | 199 | outputs <application>GPGME</application> commands in JSON format
|
---|
[cd074c2] | 200 | </para>
|
---|
| 201 | <indexterm zone="gpgme gpgme-json">
|
---|
| 202 | <primary sortas="b-gpgme-json">gpgme-json</primary>
|
---|
| 203 | </indexterm>
|
---|
| 204 | </listitem>
|
---|
| 205 | </varlistentry>
|
---|
| 206 |
|
---|
[150992ab] | 207 | <varlistentry id="gpgme-tool">
|
---|
| 208 | <term><command>gpgme-tool</command></term>
|
---|
| 209 | <listitem>
|
---|
| 210 | <para>
|
---|
[d5f6e8e] | 211 | is an assuan server exposing <application>GPGME</application>
|
---|
| 212 | operations, such as printing fingerprints and keyids with
|
---|
[4c24eb0a] | 213 | keyservers
|
---|
[150992ab] | 214 | </para>
|
---|
| 215 | <indexterm zone="gpgme gpgme-tool">
|
---|
| 216 | <primary sortas="b-gpgme-tool">gpgme-tool</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
| 220 |
|
---|
[cd074c2] | 221 | <!-- As of 1.13.1, this library isn't present anymore.
|
---|
[b358845] | 222 | <varlistentry id="libgpgme-pthread">
|
---|
[d6da5da] | 223 | <term><filename class="libraryfile">libgpgme-pthread.so</filename></term>
|
---|
[b358845] | 224 | <listitem>
|
---|
[d6da5da] | 225 | <para>
|
---|
| 226 | contains the <application>GPGME</application> API functions for
|
---|
| 227 | applications using pthread.
|
---|
| 228 | </para>
|
---|
[b358845] | 229 | <indexterm zone="gpgme libgpgme-pthread">
|
---|
[d6da5da] | 230 | <primary sortas="c-libgpgme-pthread">libgpgme-pthread.so</primary>
|
---|
[b358845] | 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
[cd074c2] | 234 | -->
|
---|
[b358845] | 235 |
|
---|
| 236 | <varlistentry id="libgpgme">
|
---|
[d6da5da] | 237 | <term><filename class="libraryfile">libgpgme.so</filename></term>
|
---|
[b358845] | 238 | <listitem>
|
---|
[d6da5da] | 239 | <para>
|
---|
[4c24eb0a] | 240 | contains the <application>GPGME</application> API functions
|
---|
[d6da5da] | 241 | </para>
|
---|
[b358845] | 242 | <indexterm zone="gpgme libgpgme">
|
---|
[d6da5da] | 243 | <primary sortas="c-libgpgme">libgpgme.so</primary>
|
---|
[b358845] | 244 | </indexterm>
|
---|
| 245 | </listitem>
|
---|
| 246 | </varlistentry>
|
---|
| 247 |
|
---|
[48ad7d9] | 248 | <varlistentry id="libgpgmepp">
|
---|
| 249 | <term><filename class="libraryfile">libgpgmepp.so</filename></term>
|
---|
| 250 | <listitem>
|
---|
| 251 | <para>
|
---|
[4c24eb0a] | 252 | contains the C++ <application>GPGME</application> API functions
|
---|
[48ad7d9] | 253 | </para>
|
---|
| 254 | <indexterm zone="gpgme libgpgmepp">
|
---|
| 255 | <primary sortas="c-libgpgmepp">libgpgmepp.so</primary>
|
---|
| 256 | </indexterm>
|
---|
| 257 | </listitem>
|
---|
| 258 | </varlistentry>
|
---|
| 259 |
|
---|
[cd074c2] | 260 | <varlistentry id="libqgpgme">
|
---|
| 261 | <term><filename class="libraryfile">libqgpgme.so</filename></term>
|
---|
| 262 | <listitem>
|
---|
| 263 | <para>
|
---|
| 264 | contains API functions for handling GPG operations in
|
---|
[4c24eb0a] | 265 | <application>Qt</application> applications
|
---|
[cd074c2] | 266 | </para>
|
---|
| 267 | <indexterm zone="gpgme libqgpgme">
|
---|
| 268 | <primary sortas="c-libqgpgme">libqgpgme.so</primary>
|
---|
| 269 | </indexterm>
|
---|
| 270 | </listitem>
|
---|
| 271 | </varlistentry>
|
---|
| 272 |
|
---|
[b358845] | 273 | </variablelist>
|
---|
| 274 |
|
---|
| 275 | </sect2>
|
---|
| 276 |
|
---|
| 277 | </sect1>
|
---|