source: general/sysutils/udisks2.xml

trunk
Last change on this file was c0bc0a9, checked in by Xi Ruoyao <xry111@…>, 6 weeks ago

Update to glib-2.80.0 and gobject-introspection-1.80.0

Merge gobject-introspection into glib page to better handle a circular
dependency between these two packages.

  • Property mode set to 100644
File size: 8.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 udisks2-download-http "https://github.com/storaged-project/udisks/releases/download/udisks-&udisks2-version;/udisks-&udisks2-version;.tar.bz2">
8 <!ENTITY udisks2-download-ftp " ">
9 <!ENTITY udisks2-md5sum "613af9bfea52cde74d2ac34d96de544d">
10 <!ENTITY udisks2-size "1.8 MB">
11 <!ENTITY udisks2-buildsize "44 MB (with tests)">
12 <!ENTITY udisks2-time "0.2 SBU (with tests)">
13]>
14
15<sect1 id="udisks2" xreflabel="UDisks-&udisks2-version;">
16 <?dbhtml filename="udisks2.html"?>
17
18
19 <title>UDisks-&udisks2-version;</title>
20
21 <indexterm zone="udisks2">
22 <primary sortas="a-UDisks2">UDisks2</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to UDisks</title>
27
28 <para>
29 The <application>UDisks</application> package provides a daemon,
30 tools and libraries to access and manipulate disks and storage
31 devices.
32 </para>
33
34 &lfs121_checked;
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&udisks2-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&udisks2-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &udisks2-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &udisks2-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &udisks2-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &udisks2-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">UDisks Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Required</bridgehead>
73 <para role="required">
74 <xref linkend="libatasmart"/>,
75 <xref linkend="libblockdev"/>,
76 <xref linkend="libgudev"/>,
77 <xref linkend="libxslt"/>, and
78 <xref linkend="polkit"/>
79 </para>
80
81 <bridgehead renderas="sect4">Recommended</bridgehead>
82 <para role="recommended">
83 <phrase revision="systemd"><xref role='runtime' linkend="systemd"/>
84 (runtime)</phrase>
85 <phrase revision="sysv"><xref linkend="elogind"/></phrase>
86 </para>
87
88 <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
89 <para role="optional">
90 &gobject-introspection;
91 </para>
92
93 <bridgehead renderas="sect4">Optional</bridgehead>
94 <para role="optional">
95 <xref linkend="dbus-python"/> (for the integration tests),
96 <xref linkend="gtk-doc"/>,
97 <xref linkend="lvm2"/>,
98 <!-- <xref linkend="ntfs-3g"/>, -->
99 <xref linkend="pygobject3"/> (for the integration tests),
100 <ulink url="https://github.com/relan/exfat">exFAT</ulink>, and
101 <ulink url="https://github.com/sahlberg/libiscsi">libiscsi</ulink>
102 </para>
103
104 <bridgehead renderas="sect4">Optional Runtime Dependencies</bridgehead>
105 <para role="runtime">
106 <xref linkend="btrfs-progs"/>,
107 <phrase revision="sysv"><xref linkend="dbus"/>,</phrase>
108 <xref linkend="dosfstools"/>,
109 <xref linkend="gptfdisk"/>,
110 <xref linkend="mdadm"/>, and
111 <xref linkend="xfsprogs"/>
112 </para>
113
114 </sect2>
115
116 <sect2 role="installation">
117 <title>Installation of UDisks</title>
118
119<!-- Applied upstream in version 2.9.0.
120 <para>
121 First, fix a regression caused by glib-2.64:
122 </para>
123
124<screen><userinput remap="pre">sed -i '/stdout_channel = g/a g_io_channel_set_encoding (job->child_stdout_channel, NULL, NULL);' src/udisksspawnedjob.c &amp;&amp;
125sed -i '/stderr_channel = g/a g_io_channel_set_encoding (job->child_stderr_channel, NULL, NULL);' src/udisksspawnedjob.c</userinput></screen>
126-->
127
128 <para>
129 Install <application>UDisks</application> by running the following
130 commands:
131 </para>
132
133<screen><userinput>./configure --prefix=/usr \
134 --sysconfdir=/etc \
135 --localstatedir=/var \
136 --disable-static \
137 --enable-available-modules &amp;&amp;
138make</userinput></screen>
139
140 <para>
141 To test the results, issue: <command>make check</command>. A more
142 thorough test can be run with <command>make ci</command>. You must first
143 create the directories
144 <filename class="directory">/var/run/udisks2</filename> and
145 <filename class="directory">/var/lib/udisks2</filename>, and the optional
146 python modules should be present.
147 </para>
148
149 <para>
150 Now, as the <systemitem class="username">root</systemitem> user:
151 </para>
152
153<screen role="root"><userinput>make install</userinput></screen>
154 </sect2>
155
156 <sect2 role="commands">
157 <title>Command Explanations</title>
158
159 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
160 href="../../xincludes/static-libraries.xml"/>
161
162 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
163 href="../../xincludes/gtk-doc-rebuild.xml"/>
164
165 <para>
166 <parameter>--enable-available-modules</parameter>: This switch enables
167 additional <application>UDisks2</application> functionalities if
168 <xref linkend='libblockdev'/> has been built with optional
169 dependencies.
170 </para>
171
172 </sect2>
173
174 <sect2 role="content">
175 <title>Contents</title>
176
177 <segmentedlist>
178 <segtitle>Installed Programs</segtitle>
179 <segtitle>Installed Library</segtitle>
180 <segtitle>Installed Directories</segtitle>
181
182 <seglistitem>
183 <seg>
184 udisksctl and umount.udisks2
185 </seg>
186 <seg>
187 libudisks2.so
188 </seg>
189 <seg>
190 /etc/udisks2,
191 /usr/include/udisks2,
192 /usr/libexec/udisks2,
193 /usr/share/gtk-doc/html/udisks2, and
194 /var/lib/udisks2
195 </seg>
196 </seglistitem>
197 </segmentedlist>
198
199 <variablelist>
200 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
201 <?dbfo list-presentation="list"?>
202 <?dbhtml list-presentation="table"?>
203
204 <varlistentry id="udisksctl">
205 <term><command>udisksctl</command></term>
206 <listitem>
207 <para>
208 is a command-line program used to interact with the
209 <command>udisksd</command> daemon
210 </para>
211 <indexterm zone="udisks2 udisksctl">
212 <primary sortas="b-udisksctl">udisksctl</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217<!-- Removed since the user shouldn't use this, and it is in /usr/libexec
218 <varlistentry id="udisksd">
219 <term><command>udisksd</command></term>
220 <listitem>
221 <para>
222 is the <application>UDisks</application> daemon itself.
223 </para>
224 <indexterm zone="udisks2 udisksd">
225 <primary sortas="b-udisksd">udisksd</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229-->
230 <varlistentry id="umountudisks2">
231 <term><command>umount.udisks2</command></term>
232 <listitem>
233 <para>
234 is a command-line program used to unmount file systems
235 that have been mounted by the
236 <application>UDisks</application> daemon
237 </para>
238 <indexterm zone="udisks2 umountudisks2">
239 <primary sortas="b-umountudisks2">umount.udisks2</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="libudisks2">
245 <term><filename class="libraryfile">libudisks2.so</filename></term>
246 <listitem>
247 <para>
248 contains the <application>UDisks</application> API functions
249 </para>
250 <indexterm zone="udisks2 libudisks2">
251 <primary sortas="c-libudisks2">libudisks2.so</primary>
252 </indexterm>
253 </listitem>
254 </varlistentry>
255
256 </variablelist>
257
258 </sect2>
259
260</sect1>
Note: See TracBrowser for help on using the repository browser.