[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[dabe4b0] | 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 |
|
---|
[e99bb77] | 7 | <!ENTITY libsecret-download-http "&gnome-download-http;/libsecret/0.21/libsecret-&libsecret-version;.tar.xz">
|
---|
[e1e58be] | 8 | <!ENTITY libsecret-download-ftp " ">
|
---|
[0e9f3a7] | 9 | <!ENTITY libsecret-md5sum "47e4d26ef43c938156011ad8cab5f414">
|
---|
| 10 | <!ENTITY libsecret-size "204 KB">
|
---|
[247d1f4] | 11 | <!ENTITY libsecret-buildsize "10 MB (with tests)">
|
---|
[3559c454] | 12 | <!ENTITY libsecret-time "0.3 SBU (with tests)">
|
---|
[dabe4b0] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libsecret" xreflabel="libsecret-&libsecret-version;">
|
---|
| 16 | <?dbhtml filename="libsecret.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>libsecret-&libsecret-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="libsecret">
|
---|
| 22 | <primary sortas="a-libsecret">libsecret</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to libsecret</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | The <application>libsecret</application> package contains a
|
---|
| 30 | GObject based library for accessing the Secret Service API.
|
---|
| 31 | </para>
|
---|
| 32 |
|
---|
[1241ea19] | 33 | &lfs121_checked;
|
---|
[dabe4b0] | 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&libsecret-download-http;"/>
|
---|
| 40 | </para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&libsecret-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download MD5 sum: &libsecret-md5sum;
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download size: &libsecret-size;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Estimated disk space required: &libsecret-buildsize;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated build time: &libsecret-time;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
| 69 | <bridgehead renderas="sect3">libsecret Dependencies</bridgehead>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 72 | <para role="required">
|
---|
| 73 | <xref linkend="glib2"/>
|
---|
| 74 | </para>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 77 | <para role="recommended">
|
---|
| 78 | <xref linkend="gobject-introspection"/>,
|
---|
[247d1f4] | 79 | <xref linkend="libgcrypt"/>, or
|
---|
| 80 | <xref linkend="gnutls"/> (for cryptography), and
|
---|
[dabe4b0] | 81 | <xref linkend="vala"/>
|
---|
| 82 | </para>
|
---|
| 83 |
|
---|
| 84 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 85 | <para role="optional">
|
---|
[e2de81fd] | 86 | <xref linkend="gi-docgen"/> and
|
---|
[dabe4b0] | 87 | <xref linkend="DocBook"/>,
|
---|
[4572fb2] | 88 | <xref linkend="docbook-xsl"/>,
|
---|
| 89 | <xref linkend="libxslt"/> (to build manual pages), and
|
---|
| 90 | <xref linkend="valgrind"/> (can be used in tests)
|
---|
[dabe4b0] | 91 | </para>
|
---|
| 92 |
|
---|
[48771ae] | 93 | <bridgehead renderas="sect4">Optional (Required for the test suite)</bridgehead>
|
---|
[dabe4b0] | 94 | <para role="optional">
|
---|
| 95 | <xref linkend="dbus-python"/>,
|
---|
[89efcadc] | 96 | <xref linkend="gjs"/>,
|
---|
| 97 | <xref linkend="pygobject3"/> (Python 3 module), and
|
---|
| 98 | <ulink url="https://github.com/tpm2-software/tpm2-tss">tpm2-tss</ulink>
|
---|
[365d3d1] | 99 | <!-- Historically libsecret used to require Python2, but it has been
|
---|
| 100 | fully ported to Python3. -->
|
---|
[dabe4b0] | 101 | </para>
|
---|
| 102 |
|
---|
[a44de1cd] | 103 | <bridgehead renderas="sect4">Runtime Dependency</bridgehead>
|
---|
[1051f94e] | 104 | <para role="required">
|
---|
| 105 | <xref role="runtime" linkend="gnome-keyring"/>
|
---|
[a44de1cd] | 106 | </para>
|
---|
| 107 |
|
---|
| 108 | <note>
|
---|
| 109 | <para>
|
---|
[9a363500] | 110 | Any package requiring <application>libsecret</application>
|
---|
[5cf89d2] | 111 | expects <application>GNOME Keyring</application> to be
|
---|
[a44de1cd] | 112 | present at runtime.
|
---|
| 113 | </para>
|
---|
| 114 | </note>
|
---|
| 115 |
|
---|
[dabe4b0] | 116 | </sect2>
|
---|
| 117 |
|
---|
| 118 | <sect2 role="installation">
|
---|
| 119 | <title>Installation of libsecret</title>
|
---|
| 120 |
|
---|
| 121 | <para>
|
---|
| 122 | Install <application>libsecret</application> by running the following
|
---|
| 123 | commands:
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
[4572fb2] | 126 | <screen><userinput>mkdir bld &&
|
---|
[2bf49af8] | 127 | cd bld &&
|
---|
[4572fb2] | 128 |
|
---|
[91318eb] | 129 | meson setup --prefix=/usr \
|
---|
| 130 | --buildtype=release \
|
---|
| 131 | -Dgtk_doc=false \
|
---|
| 132 | .. &&
|
---|
[b266534e] | 133 | ninja</userinput></screen>
|
---|
| 134 |
|
---|
| 135 | <para>
|
---|
| 136 | If you have <xref linkend='gi-docgen'/> installed and wish to build
|
---|
| 137 | the API documentation for this package, issue:
|
---|
| 138 | </para>
|
---|
| 139 |
|
---|
[44892252] | 140 | <screen role='nodump'><userinput>sed "s/api_version_major/'&libsecret-version;'/" \
|
---|
[b266534e] | 141 | -i ../docs/reference/libsecret/meson.build &&
|
---|
| 142 | meson configure -Dgtk_doc=true &&
|
---|
[4572fb2] | 143 | ninja</userinput></screen>
|
---|
[dabe4b0] | 144 |
|
---|
| 145 | <para>
|
---|
[67e58a5] | 146 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
[dabe4b0] | 147 | </para>
|
---|
| 148 |
|
---|
[4572fb2] | 149 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[67e58a5] | 150 |
|
---|
[dabe4b0] | 151 | <para>
|
---|
[e2de81fd] | 152 | To test the results, issue: <command>dbus-run-session ninja test</command>.
|
---|
[dabe4b0] | 153 | </para>
|
---|
| 154 |
|
---|
| 155 | </sect2>
|
---|
| 156 |
|
---|
| 157 | <sect2 role="commands">
|
---|
| 158 | <title>Command Explanations</title>
|
---|
| 159 |
|
---|
[adf17153] | 160 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 161 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 162 |
|
---|
[4572fb2] | 163 | <para>
|
---|
[b266534e] | 164 | <parameter>-Dgtk_doc=false</parameter>: &gi-doc-disable;
|
---|
[4572fb2] | 165 | </para>
|
---|
[dabe4b0] | 166 |
|
---|
| 167 | <para>
|
---|
[4572fb2] | 168 | <option>-Dmanpage=false</option>: Use this switch if you
|
---|
[dabe4b0] | 169 | have not installed <xref linkend="libxslt"/> and DocBook
|
---|
| 170 | packages.
|
---|
| 171 | </para>
|
---|
| 172 |
|
---|
| 173 | <para>
|
---|
[247d1f4] | 174 | <option>-Dcrypto=gnutls, disabled</option>: Use this switch if you
|
---|
| 175 | want to use <xref linkend="gnutls"/> for cryptography or if either
|
---|
| 176 | <xref linkend="gnutls"/> or <xref linkend="libgcrypt"/> is
|
---|
| 177 | not installed.
|
---|
[dabe4b0] | 178 | </para>
|
---|
| 179 |
|
---|
| 180 | </sect2>
|
---|
| 181 |
|
---|
| 182 | <sect2 role="content">
|
---|
| 183 | <title>Contents</title>
|
---|
| 184 |
|
---|
| 185 | <segmentedlist>
|
---|
| 186 | <segtitle>Installed Program</segtitle>
|
---|
| 187 | <segtitle>Installed Library</segtitle>
|
---|
| 188 | <segtitle>Installed Directories</segtitle>
|
---|
| 189 |
|
---|
| 190 | <seglistitem>
|
---|
| 191 | <seg>
|
---|
| 192 | secret-tool
|
---|
| 193 | </seg>
|
---|
| 194 | <seg>
|
---|
| 195 | libsecret-1.so
|
---|
| 196 | </seg>
|
---|
| 197 | <seg>
|
---|
| 198 | /usr/include/libsecret-1 and
|
---|
[e2de81fd] | 199 | /usr/share/doc/libsecret-&libsecret-version;
|
---|
[dabe4b0] | 200 | </seg>
|
---|
| 201 | </seglistitem>
|
---|
| 202 | </segmentedlist>
|
---|
| 203 |
|
---|
| 204 | <variablelist>
|
---|
| 205 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 206 | <?dbfo list-presentation="list"?>
|
---|
| 207 | <?dbhtml list-presentation="table"?>
|
---|
| 208 |
|
---|
| 209 | <varlistentry id="secret-tool">
|
---|
| 210 | <term><command>secret-tool</command></term>
|
---|
| 211 | <listitem>
|
---|
| 212 | <para>
|
---|
| 213 | is a command line tool that can be used to store
|
---|
[4c24eb0a] | 214 | and retrieve passwords
|
---|
[dabe4b0] | 215 | </para>
|
---|
| 216 | <indexterm zone="libsecret secret-tool">
|
---|
| 217 | <primary sortas="b-secret-tool">secret-tool</primary>
|
---|
| 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
| 220 | </varlistentry>
|
---|
| 221 |
|
---|
| 222 | <varlistentry id="libsecret-1">
|
---|
| 223 | <term><filename class="libraryfile">libsecret-1.so</filename></term>
|
---|
| 224 | <listitem>
|
---|
| 225 | <para>
|
---|
[4c24eb0a] | 226 | contains the <application>libsecret</application> API functions
|
---|
[dabe4b0] | 227 | </para>
|
---|
| 228 | <indexterm zone="libsecret libsecret-1">
|
---|
| 229 | <primary sortas="c-libsecret-1">libsecret-1.so</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
| 233 |
|
---|
| 234 | </variablelist>
|
---|
| 235 |
|
---|
| 236 | </sect2>
|
---|
| 237 |
|
---|
| 238 | </sect1>
|
---|