glfs/general/sysutils/dbus-bindings.xml

440 lines
15 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY dbus-glib-download-http "http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-&dbus-glib-version;.tar.gz">
<!ENTITY dbus-glib-download-ftp " ">
<!ENTITY dbus-glib-md5sum "3f7f117dc7c8d899d9acfdcbf9253fb8">
<!ENTITY dbus-glib-size "712 KB">
<!ENTITY dbus-glib-buildsize "11 MB">
<!ENTITY dbus-glib-time "0.1 SBU">
<!ENTITY dbus-python-download-http "http://dbus.freedesktop.org/releases/dbus-python/dbus-python-&dbus-python-version;.tar.gz">
<!ENTITY dbus-python-download-ftp " ">
<!ENTITY dbus-python-md5sum "742c7432ad0f7c3f98291d58fa2e35dc">
<!ENTITY dbus-python-size "583 KB">
<!ENTITY dbus-python-buildsize "5.7 MB">
<!ENTITY dbus-python-time "0.2 SBU">
<!--
<!ENTITY dbus-qt3-download-http "&trinity-repo-http;/dbus-tqt-&trinity-version;.tar.gz">
<!ENTITY dbus-qt3-download-ftp "&trinity-repo-ftp;/dbus-tqt-&trinity-version;.tar.gz">
<!ENTITY dbus-qt3-md5sum "46ae165c068271485c827f6fc6687a9a">
<!ENTITY dbus-qt3-size "234 KB">
<!ENTITY dbus-qt3-buildsize "4 MB">
<!ENTITY dbus-qt3-time "less than 0.1 SBU">
-->
<!-- All the other bindings info should be here as well -->
]>
<sect1 id="dbus-bindings" xreflabel="D-Bus Bindings">
<?dbhtml filename="dbus-bindings.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>D-Bus Bindings</title>
<indexterm zone="dbus-bindings">
<primary sortas="a-dbus-bindings">D-Bus Bindings</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to D-Bus Bindings</title>
<para>The <application>D-Bus Bindings</application> are a group of packages
that contain programming language and platform interfaces to the D-Bus API.
This is useful for programmers to easily interface D-Bus with their
supported platform or language of choice. Some non-D-Bus packages will
require one or more of the Bindings packages in order to build
successfully.</para>
<para>The <application>GLib</application> and
<application>Python</application> bindings are included on this page. Other
language bindings are available at the <ulink
url="http://www.freedesktop.org/wiki/Software/DBusBindings">D-Bus
Bindings</ulink> page for information.</para>
<itemizedlist spacing="compact">
<listitem>
<para><xref linkend="dbus-glib"/></para>
</listitem>
<listitem>
<para><xref linkend="dbus-python"/></para>
</listitem>
<!-- <listitem>
<para><xref linkend="dbus-qt3"/></para>
</listitem> -->
</itemizedlist>
</sect2>
<!-- Begin D-Bus GLib Bindings -->
<sect2 id="dbus-glib" xreflabel="D-Bus GLib Bindings-&dbus-glib-version;">
<title>D-Bus GLib Bindings</title>
<indexterm zone="dbus-glib">
<primary sortas="a-dbus-glib">D-Bus GLib Bindings</primary>
</indexterm>
<sect3 role="package">
<title>Introduction to D-Bus GLib Bindings</title>
&lfs71_checked;
<bridgehead renderas="sect4">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&dbus-glib-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&dbus-glib-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &dbus-glib-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &dbus-glib-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &dbus-glib-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &dbus-glib-time;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">D-Bus GLib Dependencies</bridgehead>
<bridgehead renderas="sect5">Required</bridgehead>
<para role="required">
<xref linkend="dbus"/>,
<xref linkend="expat"/>, and
<xref linkend="glib2"/>
</para>
<bridgehead renderas="sect5">Optional to Build the API Documentation</bridgehead>
<para role="optional">
<xref linkend="doxygen"/>
</para>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/dbus-glib"/></para>
</sect3>
<sect3 role="installation">
<title>Installation of D-Bus GLib Bindings</title>
<para>Install <application>D-Bus GLib Bindings</application> by
running the following commands:</para>
<screen><userinput>./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/dbus-1.0 &amp;&amp;
make</userinput></screen>
<para>To test the results, issue: <command>make check</command>. Note that
more comprehensive tests can be run by following the same method used in
<application>D-BUS</application> instructions, which requires building the
package twice.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect3>
<sect3 role="commands">
<title>Command Explanations</title>
<para><parameter>--libexecdir=/usr/lib/dbus-1.0</parameter>: This
moves <command>dbus-bash-completion-helper</command> out of <filename
class="directory">/usr/libexec</filename>.</para>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/gtk-doc-rebuild.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/static-libraries.xml"/>
</sect3>
<sect3 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Program</segtitle>
<segtitle>Installed Library</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>dbus-binding-tool</seg>
<seg>libdbus-glib-1.{so,a}</seg>
<seg>/etc/bash_completion.d, /usr/share/gtk-doc/html/dbus-glib, and
optionally /usr/share/doc/dbus-glib-&dbus-glib-version;/api</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect4">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="glib-dbus-binding-tool">
<term><command>dbus-binding-tool</command></term>
<listitem>
<para>is a tool used to interface with the D-Bus API.</para>
<indexterm zone="dbus-glib glib-dbus-binding-tool">
<primary sortas="b-dbus-binding-tool">dbus-binding-tool</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libdbus-glib-1">
<term><filename class='libraryfile'>libdbus-glib-1.{so,a}</filename></term>
<listitem>
<para>contains <application>GLib</application> interface functions
to the D-Bus API.</para>
<indexterm zone="dbus-glib libdbus-glib-1">
<primary sortas="c-libdbus-glib-1">libdbus-glib-1.{so,a}</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect3>
</sect2>
<!-- Begin D-Bus Python Bindings -->
<sect2 id="dbus-python" xreflabel="D-Bus Python Bindings-&dbus-python-version;">
<title>D-Bus Python Bindings</title>
&lfs70_checked;
<indexterm zone="dbus-python">
<primary sortas="a-dbus-python">D-Bus Python Bindings</primary>
</indexterm>
<sect3 role="package">
<title>Introduction to D-Bus Python Bindings</title>
<bridgehead renderas="sect4">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&dbus-python-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&dbus-python-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &dbus-python-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &dbus-python-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &dbus-python-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &dbus-python-time;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">D-Bus Python Dependencies</bridgehead>
<bridgehead renderas="sect5">Required</bridgehead>
<para role="required">
<xref linkend="python2"/> and
<xref linkend="dbus-glib"/>
</para>
<bridgehead renderas="sect5">Optional</bridgehead>
<para role="optional">
<xref linkend="pygobject2"/> (required to run the test suite)
</para>
<bridgehead renderas="sect5">Optional
(Required to build the API and HTML Documentation)</bridgehead>
<para role="optional">
<ulink url="http://epydoc.sourceforge.net/">Epydoc</ulink> and
<ulink url="http://docutils.sourceforge.net/">Docutils</ulink>
</para>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/dbus-python"/></para>
</sect3>
<sect3 role="installation">
<title>Installation of D-Bus Python Bindings</title>
<para>Install <application>D-Bus Python Bindings</application> by
running the following commands:</para>
<screen><userinput>./configure --prefix=/usr \
--docdir=/usr/share/doc/dbus-python-&dbus-python-version; &amp;&amp;
make</userinput></screen>
<para>To test the results, issue: <command>make check</command>. Note you
must have <application>PyGObject</application> installed.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make install</userinput></screen>
<para>If you built the API documentation, install it by issuing the
following commands as the <systemitem class="username">root</systemitem>
user:</para>
<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/dbus-python-&dbus-python-version;/api &amp;&amp;
install -v -m644 api/* \
/usr/share/doc/dbus-python-&dbus-python-version;/api</userinput></screen>
</sect3>
<sect3 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>none</seg>
<seg><application>Python</application>
<application>D-Bus</application> modules</seg>
<seg>/usr/lib/python&python2-majorver;/site-packages/dbus and
/usr/share/doc/dbus-python-&dbus-python-version;</seg>
</seglistitem>
</segmentedlist>
</sect3>
</sect2>
<!-- Begin D-Bus Qt3 Bindings -->
<!--
<sect2 id="dbus-qt3" xreflabel="D-Bus Trinity Qt3 Bindings-&dbus-qt3-version;">
<title>Trinity D-Bus Qt3 Bindings</title>
<indexterm zone="dbus-qt3">
<primary sortas="a-dbus-qt3">D-Bus Qt3 Bindings</primary>
</indexterm>
<sect3 role="package">
<title>Introduction to D-Bus Qt3 Bindings</title>
<bridgehead renderas="sect4">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&dbus-qt3-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&dbus-qt3-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &dbus-qt3-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &dbus-qt3-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &dbus-qt3-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &dbus-qt3-time;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">D-Bus Qt3 Dependencies</bridgehead>
<bridgehead renderas="sect5">Required</bridgehead>
<para role="required">
<xref linkend="dbus"/> and
<xref linkend="qt"/>
</para>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/dbus-qt3"/></para>
</sect3>
<sect3 role="installation">
<title>Installation of D-Bus Trinity/Qt3 Bindings</title>
<note><para>Be sure your environment is set up as described in
<xref linkend='kde-pre-install-config'/></para></note>
<para>Install <application>D-Bus Trinity/Qt3 Bindings</application> by
running the following commands:</para>
<screen><userinput>
BUILD=/tmp/build-dbus-tqt &amp;&amp;
DBUSTQT=`pwd` &amp;&amp;
rm -rf $BUILD &amp;&amp;
mkdir -p $BUILD &amp;&amp;
cd $BUILD &amp;&amp;
cmake -DCMAKE_INSTALL_PREFIX=$TRINITY_PREFIX \
-DCMAKE_VERBOSE_MAKEFILE=ON \
$DBUSTQT &amp;&amp;
unset BUILD DBUSTQT &amp;&amp;
make</userinput></screen>
<para>This package does not come with a test suite.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect3>
<sect3 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Library</segtitle>
<segtitle>Installed Directory</segtitle>
<seglistitem>
<seg>None</seg>
<seg>libdbus-tqt-1.so</seg>
<seg>$TRINITY_PREFIX/include/dbus-1.0</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect4">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="libdbus-qt-1">
<term><filename class='libraryfile'>libdbus-tqt-1.so</filename></term>
<listitem>
<para>contains <application>Trinity/Qt3</application> interface functions
to the D-Bus API.</para>
<indexterm zone="dbus-qt3 libdbus-qt-1">
<primary sortas="c-libdbus-qt-1">libdbus-tqt-1.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect3>
</sect2>
-->
</sect1>