[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[1ecdb18] | 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 |
|
---|
[25d274a] | 7 | <!ENTITY libpaper-download-http "https://github.com/rrthomas/libpaper/releases/download/v&libpaper-version;/libpaper-&libpaper-version;.tar.gz">
|
---|
[15b2a2c2] | 8 | <!ENTITY libpaper-download-ftp " ">
|
---|
[858aa302] | 9 | <!ENTITY libpaper-md5sum "4b914c3ca6d8277260fce418e12bae6b">
|
---|
[ff87379] | 10 | <!ENTITY libpaper-size "1.1 MB">
|
---|
[25d274a] | 11 | <!ENTITY libpaper-buildsize "11 MB (with tests)">
|
---|
| 12 | <!ENTITY libpaper-time "0.1 SBU (with tests)">
|
---|
[1ecdb18] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libpaper" xreflabel="libpaper-&libpaper-version;">
|
---|
| 16 | <?dbhtml filename="libpaper.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>libpaper-&libpaper-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="libpaper">
|
---|
| 22 | <primary sortas="a-libpaper">libpaper</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to libpaper</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | This package is intended to provide a simple way for applications to take
|
---|
| 30 | actions based on a system or user-specified paper size.
|
---|
| 31 | </para>
|
---|
| 32 |
|
---|
[e8b3f50] | 33 | &lfs121_checked;
|
---|
[1ecdb18] | 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&libpaper-download-http;"/>
|
---|
| 40 | </para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&libpaper-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download MD5 sum: &libpaper-md5sum;
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download size: &libpaper-size;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Estimated disk space required: &libpaper-buildsize;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated build time: &libpaper-time;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
| 69 | </sect2>
|
---|
| 70 |
|
---|
| 71 | <sect2 role="installation">
|
---|
| 72 | <title>Installation of libpaper</title>
|
---|
| 73 |
|
---|
| 74 | <para>
|
---|
[d56e7df] | 75 | Install <application>libpaper</application> by running the following
|
---|
| 76 | commands:
|
---|
[1ecdb18] | 77 | </para>
|
---|
| 78 |
|
---|
[25d274a] | 79 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 80 | --sysconfdir=/etc \
|
---|
| 81 | --disable-static \
|
---|
[2e597c5e] | 82 | --docdir=/usr/share/doc/libpaper-&libpaper-version; &&
|
---|
[7031a69] | 83 | make</userinput></screen>
|
---|
[1ecdb18] | 84 |
|
---|
[e53161d] | 85 | <!-- All tests "PASS" but the log just contains:
|
---|
| 86 | "sysconfdir does not start with prefix, cannot run test!"
|
---|
[d56e7df] | 87 | <para>
|
---|
[25d274a] | 88 | To test the results, issue: <command>make check</command>.
|
---|
[e53161d] | 89 | </para> -->
|
---|
| 90 |
|
---|
| 91 | <para>
|
---|
| 92 | The test suite of this package does not work with a configuration
|
---|
| 93 | using the standard installation location.
|
---|
[d56e7df] | 94 | </para>
|
---|
[1ecdb18] | 95 |
|
---|
| 96 | <para>
|
---|
[25d274a] | 97 | Now, as the &root; user:
|
---|
[1ecdb18] | 98 | </para>
|
---|
| 99 |
|
---|
[25d274a] | 100 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 101 |
|
---|
[1ecdb18] | 102 | </sect2>
|
---|
| 103 |
|
---|
| 104 | <sect2 role="commands">
|
---|
| 105 | <title>Command Explanations</title>
|
---|
| 106 |
|
---|
| 107 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 108 | href="../../xincludes/static-libraries.xml"/>
|
---|
[e53161d] | 109 | <!--
|
---|
[d56e7df] | 110 | <para>
|
---|
[e53161d] | 111 | <parameter>- -enable-relocatable</parameter>:
|
---|
[875b3b57] | 112 | This switch is needed to run the tests.
|
---|
[d56e7df] | 113 | </para>
|
---|
[e53161d] | 114 | -->
|
---|
[fbf70663] | 115 | </sect2>
|
---|
| 116 |
|
---|
| 117 | <sect2 role="configuration">
|
---|
| 118 | <title>Configuring libpaper</title>
|
---|
| 119 |
|
---|
| 120 | <sect3>
|
---|
| 121 | <title>Configuration Information</title>
|
---|
| 122 |
|
---|
[d56e7df] | 123 | <para>
|
---|
[913b88f] | 124 | The paper size is automatically determined from the system locale;
|
---|
[fedbe2f] | 125 | see <literal>LC_PAPER</literal> in <ulink role='man'
|
---|
| 126 | url='&man;locale.7'>locale(7)</ulink>.
|
---|
[913b88f] | 127 | If you want to override it, create a <filename>papersize</filename>
|
---|
| 128 | file in the user configuration directory. For example:
|
---|
[d56e7df] | 129 | </para>
|
---|
[fbf70663] | 130 |
|
---|
[278f297] | 131 | <screen role="nodump"><userinput>mkdir -pv ~/.config &&
|
---|
[913b88f] | 132 | echo "a4" > ~/.config/papersize</userinput></screen>
|
---|
| 133 |
|
---|
| 134 | <para>
|
---|
| 135 | If you want to override the paper size globally (for all users),
|
---|
| 136 | set up the <envar>PAPERSIZE</envar> environment variable. For
|
---|
| 137 | example:
|
---|
| 138 | </para>
|
---|
| 139 |
|
---|
| 140 | <screen role="nodump"><userinput>echo "PAPERSIZE=a4" > /etc/profile.d/libpaper.sh</userinput></screen>
|
---|
| 141 |
|
---|
| 142 | <para>
|
---|
| 143 | You may use a different paper size, such as
|
---|
[af2b317] | 144 | <literal>letter</literal>.
|
---|
[913b88f] | 145 | </para>
|
---|
[fbf70663] | 146 |
|
---|
| 147 | </sect3>
|
---|
| 148 |
|
---|
[1ecdb18] | 149 | </sect2>
|
---|
| 150 |
|
---|
| 151 | <sect2 role="content">
|
---|
| 152 | <title>Contents</title>
|
---|
| 153 |
|
---|
| 154 | <segmentedlist>
|
---|
| 155 | <segtitle>Installed Programs</segtitle>
|
---|
| 156 | <segtitle>Installed Library</segtitle>
|
---|
| 157 | <segtitle>Installed Directories</segtitle>
|
---|
| 158 |
|
---|
| 159 | <seglistitem>
|
---|
| 160 | <seg>
|
---|
[2cddc60] | 161 | paper and
|
---|
| 162 | paperconf
|
---|
[1ecdb18] | 163 | </seg>
|
---|
| 164 | <seg>
|
---|
| 165 | libpaper.so
|
---|
| 166 | </seg>
|
---|
| 167 | <seg>
|
---|
[2e597c5e] | 168 | /usr/share/doc/libpaper-&libpaper-version;
|
---|
[1ecdb18] | 169 | </seg>
|
---|
| 170 | </seglistitem>
|
---|
| 171 | </segmentedlist>
|
---|
| 172 |
|
---|
| 173 | <variablelist>
|
---|
| 174 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 175 | <?dbfo list-presentation="list"?>
|
---|
| 176 | <?dbhtml list-presentation="table"?>
|
---|
| 177 |
|
---|
[25d274a] | 178 | <varlistentry id="paper">
|
---|
| 179 | <term><command>paper</command></term>
|
---|
[1ecdb18] | 180 | <listitem>
|
---|
[d56e7df] | 181 | <para>
|
---|
[4c24eb0a] | 182 | prints paper configuration information
|
---|
[d56e7df] | 183 | </para>
|
---|
[25d274a] | 184 | <indexterm zone="libpaper paper">
|
---|
| 185 | <primary sortas="b-paper">paper</primary>
|
---|
[1ecdb18] | 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
| 189 |
|
---|
[2cddc60] | 190 | <varlistentry id="paperconf">
|
---|
| 191 | <term><command>paperconf</command></term>
|
---|
| 192 | <listitem>
|
---|
| 193 | <para>
|
---|
| 194 | prints paper configuration information in a compatibility mode
|
---|
| 195 | </para>
|
---|
| 196 | <indexterm zone="libpaper paperconf">
|
---|
| 197 | <primary sortas="b-paperconf">paperconf</primary>
|
---|
| 198 | </indexterm>
|
---|
| 199 | </listitem>
|
---|
| 200 | </varlistentry>
|
---|
| 201 |
|
---|
[1ecdb18] | 202 | <varlistentry id="libpaper-lib">
|
---|
| 203 | <term><filename class="libraryfile">libpaper.so</filename></term>
|
---|
| 204 | <listitem>
|
---|
| 205 | <para>
|
---|
[4c24eb0a] | 206 | contains functions for interrogating the paper library
|
---|
[1ecdb18] | 207 | </para>
|
---|
| 208 | <indexterm zone="libpaper libpaper-lib">
|
---|
| 209 | <primary sortas="c-libpaper">libpaper.so</primary>
|
---|
| 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
| 214 | </variablelist>
|
---|
| 215 |
|
---|
| 216 | </sect2>
|
---|
| 217 |
|
---|
| 218 | </sect1>
|
---|