<?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 polkit-qt-download-http "&kde-download-http;apps/KDE4.x/admin/polkit-qt-1-&polkit-qt-version;.tar.bz2">
  <!ENTITY polkit-qt-download-ftp  "&kde-download-ftp;apps/KDE4.x/admin/polkit-qt-1-&polkit-qt-version;.tar.bz2">
  <!ENTITY polkit-qt-md5sum        "bee71b71c12797e6fc498540a06c829b">
  <!ENTITY polkit-qt-size          "68 KB">
  <!ENTITY polkit-qt-buildsize     "4.2 MB">
  <!ENTITY polkit-qt-time          "0.1 SBU">
]>

<sect1 id="polkit-qt" xreflabel="polkit-qt-&polkit-qt-version;">
  <?dbhtml filename="polkit-qt.html"?>

  <sect1info>
    <othername>$LastChangedBy: bdubbs $</othername>
    <date>$Date: 2015-02-24 00:00:51 -0500 (Tue, 24 Feb 2015) $</date>
  </sect1info>

  <title>Polkit-Qt-&polkit-qt-version;</title>

  <indexterm zone="polkit-qt">
    <primary sortas="a-polkit-qt">polkit-qt</primary>
  </indexterm>

  <sect2 role="package">
    <title>Introduction to Polkit-Qt</title>

    <para><application>Polkit-Qt</application> provides an API to
    <application>polkit</application> in the Qt environment.</para>

    &lfs77_checked;

    <bridgehead renderas="sect3">Package Information</bridgehead>
    <itemizedlist spacing="compact">
      <listitem>
        <para>Download (HTTP): <ulink url="&polkit-qt-download-http;"/></para>
      </listitem>
      <listitem>
        <para>Download (FTP): <ulink url="&polkit-qt-download-ftp;"/></para>
      </listitem>
      <listitem>
        <para>Download MD5 sum: &polkit-qt-md5sum;</para>
      </listitem>
      <listitem>
        <para>Download size: &polkit-qt-size;</para>
      </listitem>
      <listitem>
        <para>Estimated disk space required: &polkit-qt-buildsize;</para>
      </listitem>
      <listitem>
        <para>Estimated build time: &polkit-qt-time;</para>
      </listitem>
    </itemizedlist>

<!--
    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    <itemizedlist spacing='compact'>
      <listitem>
        <para>Required patch: <ulink
        url="&patch-root;/polkit-qt-&polkit-qt-version;-fixes-1.patch"/></para>
      </listitem>
    </itemizedlist>
-->
    <bridgehead renderas="sect3">Polkit-Qt Dependencies</bridgehead>

    <bridgehead renderas="sect4">Required</bridgehead>
    <para role="required">
    <xref linkend="cmake"/>,
    <xref linkend="polkit"/>, and
    <xref linkend="qt4"/>
    </para>

    <para condition="html" role="usernotes">User Notes:
    <ulink url="&blfs-wiki;/polkit-qt"/></para>

  </sect2>

  <sect2 role="installation">
    <title>Installation of Polkit-Qt</title>

    <para>Install <application>Polkit-Qt</application> by running the following
    commands:</para>

<screen><userinput>mkdir build &amp;&amp;
cd    build &amp;&amp;

cmake -DCMAKE_INSTALL_PREFIX=&kde-dir; \
      -DCMAKE_BUILD_TYPE=Release       \
      -DCMAKE_INSTALL_LIBDIR=lib       \
      -DUSE_QT4=TRUE                   \
      -Wno-dev .. &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>

  </sect2>

  <sect2 role="commands">
    <title>Command Explanations</title>

    <para>
      <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used
      to apply higher level of the compiler optimizations.
    </para>

    <para>
      <parameter>-DCMAKE_INSTALL_LIBDIR=lib</parameter>: This switch is
      used to get libraries to install to <filename
      class="directory">&kde-dir;/lib</filename> instead of <filename
      class="directory">&kde-dir;/lib64</filename> on a 64 bit system.
    </para>

    <para>
      <parameter>-DUSE_QT4=TRUE</parameter>: This switch is used to ensure
      that <application>Qt4</application> version of the library is
      built even if <application>Qt5</application> is present.
    </para>

  </sect2>

  <sect2 role="content">
    <title>Contents</title>

    <segmentedlist>
      <segtitle>Installed Programs</segtitle>
      <segtitle>Installed Libraries</segtitle>
      <segtitle>Installed Directories</segtitle>

      <seglistitem>
        <seg>none</seg>
        <seg>libpolkit-qt-agent-1.so, libpolkit-qt-core-1.so and libpolkit-qt-gui-1.so</seg>
        <seg>&kde-dir;/include/polkit-qt-1</seg>
      </seglistitem>
    </segmentedlist>
<!--
    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="a-polkit-qt">
        <term><command>polkit-qt</command></term>
        <listitem>
          <para>is a testing utility for polkit-qt-generated build trees.</para>
          <indexterm zone="a-polkit-qt polkit-qt">
            <primary sortas="b-polkit-qt">polkit-qt</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>
-->
  </sect2>

</sect1>
