[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[b358845] | 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">
|
---|
[14d673a2] | 8 | <!ENTITY gpgme-download-ftp " ">
|
---|
[1414135] | 9 | <!ENTITY gpgme-md5sum "01a8c05b409847e87daf0543e91f8c37">
|
---|
| 10 | <!ENTITY gpgme-size "1.8 MB">
|
---|
| 11 | <!ENTITY gpgme-buildsize "260 MB (with tests)">
|
---|
[ee01972] | 12 | <!ENTITY gpgme-time "1.0 SBU (with all bindings and tests; with parallelism=4)">
|
---|
[b358845] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="gpgme" xreflabel="GPGME-&gpgme-version;">
|
---|
| 16 | <?dbhtml filename="gpgme.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>GPGME-&gpgme-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="gpgme">
|
---|
| 22 | <primary sortas="a-GPGME">GPGME</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to GPGME</title>
|
---|
| 27 |
|
---|
[d6da5da] | 28 | <para>
|
---|
[200bab29] | 29 | The <application>GPGME</application> package is a C library
|
---|
[bbacc9a] | 30 | that allows cryptography support to be added to a
|
---|
[d6da5da] | 31 | program. It is designed to make access to public key crypto
|
---|
| 32 | engines like <application>GnuPG</application> or GpgSM easier
|
---|
| 33 | for applications. <application>GPGME</application> provides
|
---|
| 34 | a high-level crypto API for encryption, decryption, signing,
|
---|
| 35 | signature verification and key management.
|
---|
| 36 | </para>
|
---|
[b358845] | 37 |
|
---|
[f67c5c8] | 38 | &lfs121_checked;
|
---|
[b358845] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[d6da5da] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&gpgme-download-http;"/>
|
---|
| 45 | </para>
|
---|
[b358845] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[d6da5da] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&gpgme-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[b358845] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[d6da5da] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &gpgme-md5sum;
|
---|
| 55 | </para>
|
---|
[b358845] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[d6da5da] | 58 | <para>
|
---|
| 59 | Download size: &gpgme-size;
|
---|
| 60 | </para>
|
---|
[b358845] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[d6da5da] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &gpgme-buildsize;
|
---|
| 65 | </para>
|
---|
[b358845] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[d6da5da] | 68 | <para>
|
---|
| 69 | Estimated build time: &gpgme-time;
|
---|
| 70 | </para>
|
---|
[b358845] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
[e1d06c0] | 73 | <!--
|
---|
[367cbd0] | 74 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 75 | <itemizedlist spacing="compact">
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>
|
---|
| 78 | Recommended patch (required if SWIG is installed):
|
---|
| 79 | <ulink url="&patch-root;/gpgme-&gpgme-version;-gpg_error_1_46-1.patch"/>
|
---|
| 80 | </para>
|
---|
| 81 | </listitem>
|
---|
| 82 | </itemizedlist>
|
---|
[e1d06c0] | 83 | -->
|
---|
[b358845] | 84 | <bridgehead renderas="sect3">GPGME Dependencies</bridgehead>
|
---|
| 85 |
|
---|
| 86 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[d6da5da] | 87 | <para role="required">
|
---|
| 88 | <xref linkend="libassuan"/>
|
---|
| 89 | </para>
|
---|
[b358845] | 90 |
|
---|
| 91 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[289d262f] | 92 | <para role="optional">
|
---|
[33690a1] | 93 | <xref linkend="doxygen"/> and
|
---|
[cd074c2] | 94 | <xref linkend="graphviz"/> (for API documentation),
|
---|
[33690a1] | 95 | <xref linkend="gnupg2"/> (required if Qt or SWIG are installed;
|
---|
[48771ae] | 96 | used during the test suite),
|
---|
[44b3f440] | 97 | <xref linkend="clisp"/>,
|
---|
[c226321] | 98 | &qt5-deps;, and
|
---|
[30d6b736] | 99 | <xref linkend="swig"/> (for language bindings)
|
---|
[d6da5da] | 100 | </para>
|
---|
[b358845] | 101 |
|
---|
| 102 | </sect2>
|
---|
| 103 |
|
---|
| 104 | <sect2 role="installation">
|
---|
| 105 | <title>Installation of GPGME</title>
|
---|
| 106 |
|
---|
[d6da5da] | 107 | <para>
|
---|
| 108 | Install <application>GPGME</application> by running the following
|
---|
| 109 | commands:
|
---|
| 110 | </para>
|
---|
[c226321] | 111 | <!--gpgme 1.22 FTBFS when building in tree. Upstream thinks building
|
---|
| 112 | should be done out of tree, but this is not in the doc yet
|
---|
| 113 | https://github.com/gpg/gpgme/commit/24a8c279da98fe7e586a9fc3cd91175c9e60ffef
|
---|
| 114 | -->
|
---|
| 115 | <screen><userinput>mkdir build &&
|
---|
[3802215] | 116 | cd build &&
|
---|
[c226321] | 117 |
|
---|
| 118 | ../configure --prefix=/usr --disable-gpg-test &&
|
---|
[c3ad4c38] | 119 | make PYTHONS=</userinput></screen>
|
---|
| 120 |
|
---|
| 121 | <para>
|
---|
| 122 | If <xref linkend='swig'/> is installed, build the Python 3 binding as
|
---|
| 123 | a wheel:
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
| 126 | <screen><userinput>if swig -version > /dev/null; then
|
---|
| 127 | srcdir=$PWD/../lang/python \
|
---|
| 128 | top_builddir=$PWD \
|
---|
[4395529] | 129 | &build-wheel-cmd; $PWD/lang/python
|
---|
[c3ad4c38] | 130 | fi</userinput></screen>
|
---|
[150992ab] | 131 |
|
---|
[d6da5da] | 132 | <para>
|
---|
[14f0ab29] | 133 | To test the results, you should have <xref linkend="gnupg2"/> installed
|
---|
[782bd40d] | 134 | and remove the <option>--disable-gpg-test</option> above. If
|
---|
[c3ad4c38] | 135 | <xref linkend='swig'/> is installed, it's necessary to adapt the
|
---|
| 136 | test suite to use the Python 3 binding just built as a wheel as well.
|
---|
| 137 | Issue:
|
---|
[d6da5da] | 138 | </para>
|
---|
[b358845] | 139 |
|
---|
[c3ad4c38] | 140 | <screen remap='test'><userinput>if swig -version > /dev/null; then
|
---|
| 141 | python3 -m venv testenv &&
|
---|
| 142 | testenv/bin/pip3 install --no-index --find-links=dist --no-cache-dir \
|
---|
| 143 | gpg &&
|
---|
| 144 | sed '/PYTHON/s#run-tests.py#& --python-libdir=/dev/null#' \
|
---|
| 145 | -i lang/python/tests/Makefile
|
---|
| 146 | fi &&
|
---|
| 147 |
|
---|
| 148 | make -k check PYTHONS= PYTHON=$PWD/testenv/bin/python3</userinput></screen>
|
---|
| 149 |
|
---|
[d6da5da] | 150 | <para>
|
---|
| 151 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 152 | </para>
|
---|
[b358845] | 153 |
|
---|
[c3ad4c38] | 154 | <screen role="root"><userinput>make install PYTHONS=</userinput></screen>
|
---|
| 155 |
|
---|
| 156 | <para>
|
---|
| 157 | If <xref linkend='swig'/> is installed, still as the &root; user,
|
---|
| 158 | install the Python 3 binding:
|
---|
| 159 | </para>
|
---|
| 160 |
|
---|
| 161 | <screen role="root"><userinput>if swig -version > /dev/null; then
|
---|
[1cdea83] | 162 | &install-wheel; gpg
|
---|
[c3ad4c38] | 163 | fi</userinput></screen>
|
---|
[b358845] | 164 |
|
---|
| 165 | </sect2>
|
---|
[f7ac7b2] | 166 |
|
---|
[14f0ab29] | 167 | <sect2 role="commands">
|
---|
| 168 | <title>Command Explanations</title>
|
---|
| 169 |
|
---|
| 170 | <para>
|
---|
| 171 | <parameter>--disable-gpg-test</parameter>: if this parameter is not
|
---|
| 172 | passed to configure, the test programs are built during
|
---|
| 173 | <command>make</command> stage, which requires <xref linkend="gnupg2"/>.
|
---|
| 174 | This parameter is not needed if <xref linkend="gnupg2"/> is installed.
|
---|
| 175 | </para>
|
---|
| 176 |
|
---|
[c3ad4c38] | 177 | <para>
|
---|
| 178 | <parameter>PYTHONS=</parameter>: Disable building Python binding
|
---|
| 179 | using the deprecated <command>python3 setup.py build</command>
|
---|
| 180 | command. The explicit instruction to build the Python 3 binding with
|
---|
| 181 | the <command>pip3 wheel</command> command is provided.
|
---|
| 182 | </para>
|
---|
| 183 |
|
---|
[14f0ab29] | 184 | </sect2>
|
---|
| 185 |
|
---|
[b358845] | 186 | <sect2 role="content">
|
---|
| 187 | <title>Contents</title>
|
---|
| 188 |
|
---|
| 189 | <segmentedlist>
|
---|
| 190 | <segtitle>Installed Program</segtitle>
|
---|
| 191 | <segtitle>Installed Libraries</segtitle>
|
---|
| 192 | <segtitle>Installed Directory</segtitle>
|
---|
| 193 |
|
---|
| 194 | <seglistitem>
|
---|
[d6da5da] | 195 | <seg>
|
---|
[b3285de] | 196 | gpgme-json, and gpgme-tool
|
---|
[d6da5da] | 197 | </seg>
|
---|
| 198 | <seg>
|
---|
[c226321] | 199 | libgpgme.so, libgpgmepp.so, and libqgpgme.so
|
---|
[d6da5da] | 200 | </seg>
|
---|
| 201 | <seg>
|
---|
[cd074c2] | 202 | /usr/include/{gpgme++,qgpgme,QGpgME},
|
---|
| 203 | /usr/lib/cmake/{Gpgmepp,QGpgme}.
|
---|
[0425945] | 204 | /usr/lib/python&python3-majorver;/site-packages/gpg{,-&gpgme-version;.dist-info}, and
|
---|
[d6da5da] | 205 | /usr/share/common-lisp/source/gpgme
|
---|
| 206 | </seg>
|
---|
[b358845] | 207 | </seglistitem>
|
---|
| 208 | </segmentedlist>
|
---|
| 209 |
|
---|
| 210 | <variablelist>
|
---|
| 211 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 212 | <?dbfo list-presentation="list"?>
|
---|
| 213 | <?dbhtml list-presentation="table"?>
|
---|
| 214 |
|
---|
[cd074c2] | 215 | <varlistentry id="gpgme-json">
|
---|
| 216 | <term><command>gpgme-json</command></term>
|
---|
| 217 | <listitem>
|
---|
| 218 | <para>
|
---|
[4c24eb0a] | 219 | outputs <application>GPGME</application> commands in JSON format
|
---|
[cd074c2] | 220 | </para>
|
---|
| 221 | <indexterm zone="gpgme gpgme-json">
|
---|
| 222 | <primary sortas="b-gpgme-json">gpgme-json</primary>
|
---|
| 223 | </indexterm>
|
---|
| 224 | </listitem>
|
---|
| 225 | </varlistentry>
|
---|
| 226 |
|
---|
[150992ab] | 227 | <varlistentry id="gpgme-tool">
|
---|
| 228 | <term><command>gpgme-tool</command></term>
|
---|
| 229 | <listitem>
|
---|
| 230 | <para>
|
---|
[d5f6e8e] | 231 | is an assuan server exposing <application>GPGME</application>
|
---|
| 232 | operations, such as printing fingerprints and keyids with
|
---|
[4c24eb0a] | 233 | keyservers
|
---|
[150992ab] | 234 | </para>
|
---|
| 235 | <indexterm zone="gpgme gpgme-tool">
|
---|
| 236 | <primary sortas="b-gpgme-tool">gpgme-tool</primary>
|
---|
| 237 | </indexterm>
|
---|
| 238 | </listitem>
|
---|
| 239 | </varlistentry>
|
---|
| 240 |
|
---|
[cd074c2] | 241 | <!-- As of 1.13.1, this library isn't present anymore.
|
---|
[b358845] | 242 | <varlistentry id="libgpgme-pthread">
|
---|
[d6da5da] | 243 | <term><filename class="libraryfile">libgpgme-pthread.so</filename></term>
|
---|
[b358845] | 244 | <listitem>
|
---|
[d6da5da] | 245 | <para>
|
---|
| 246 | contains the <application>GPGME</application> API functions for
|
---|
| 247 | applications using pthread.
|
---|
| 248 | </para>
|
---|
[b358845] | 249 | <indexterm zone="gpgme libgpgme-pthread">
|
---|
[d6da5da] | 250 | <primary sortas="c-libgpgme-pthread">libgpgme-pthread.so</primary>
|
---|
[b358845] | 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
[cd074c2] | 254 | -->
|
---|
[b358845] | 255 |
|
---|
| 256 | <varlistentry id="libgpgme">
|
---|
[d6da5da] | 257 | <term><filename class="libraryfile">libgpgme.so</filename></term>
|
---|
[b358845] | 258 | <listitem>
|
---|
[d6da5da] | 259 | <para>
|
---|
[4c24eb0a] | 260 | contains the <application>GPGME</application> API functions
|
---|
[d6da5da] | 261 | </para>
|
---|
[b358845] | 262 | <indexterm zone="gpgme libgpgme">
|
---|
[d6da5da] | 263 | <primary sortas="c-libgpgme">libgpgme.so</primary>
|
---|
[b358845] | 264 | </indexterm>
|
---|
| 265 | </listitem>
|
---|
| 266 | </varlistentry>
|
---|
| 267 |
|
---|
[48ad7d9] | 268 | <varlistentry id="libgpgmepp">
|
---|
| 269 | <term><filename class="libraryfile">libgpgmepp.so</filename></term>
|
---|
| 270 | <listitem>
|
---|
| 271 | <para>
|
---|
[4c24eb0a] | 272 | contains the C++ <application>GPGME</application> API functions
|
---|
[48ad7d9] | 273 | </para>
|
---|
| 274 | <indexterm zone="gpgme libgpgmepp">
|
---|
| 275 | <primary sortas="c-libgpgmepp">libgpgmepp.so</primary>
|
---|
| 276 | </indexterm>
|
---|
| 277 | </listitem>
|
---|
| 278 | </varlistentry>
|
---|
| 279 |
|
---|
[cd074c2] | 280 | <varlistentry id="libqgpgme">
|
---|
| 281 | <term><filename class="libraryfile">libqgpgme.so</filename></term>
|
---|
| 282 | <listitem>
|
---|
| 283 | <para>
|
---|
| 284 | contains API functions for handling GPG operations in
|
---|
[4c24eb0a] | 285 | <application>Qt</application> applications
|
---|
[cd074c2] | 286 | </para>
|
---|
| 287 | <indexterm zone="gpgme libqgpgme">
|
---|
| 288 | <primary sortas="c-libqgpgme">libqgpgme.so</primary>
|
---|
| 289 | </indexterm>
|
---|
| 290 | </listitem>
|
---|
| 291 | </varlistentry>
|
---|
| 292 |
|
---|
[b358845] | 293 | </variablelist>
|
---|
| 294 |
|
---|
| 295 | </sect2>
|
---|
| 296 |
|
---|
| 297 | </sect1>
|
---|