[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 " ">
|
---|
[d7c6a8b1] | 9 | <!ENTITY libpaper-md5sum "dc9cdf541173d7737ee73963f3052c7a">
|
---|
[25d274a] | 10 | <!ENTITY libpaper-size "1.2 MB">
|
---|
| 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 |
|
---|
[6aa631b] | 33 | &lfs120_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 \
|
---|
| 82 | --enable-relocatable \
|
---|
[2e597c5e] | 83 | --docdir=/usr/share/doc/libpaper-&libpaper-version; &&
|
---|
[7031a69] | 84 | make</userinput></screen>
|
---|
[1ecdb18] | 85 |
|
---|
[d56e7df] | 86 | <para>
|
---|
[25d274a] | 87 | To test the results, issue: <command>make check</command>.
|
---|
[d56e7df] | 88 | </para>
|
---|
[1ecdb18] | 89 |
|
---|
| 90 | <para>
|
---|
[25d274a] | 91 | Now, as the &root; user:
|
---|
[1ecdb18] | 92 | </para>
|
---|
| 93 |
|
---|
[25d274a] | 94 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 95 |
|
---|
[1ecdb18] | 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2 role="commands">
|
---|
| 99 | <title>Command Explanations</title>
|
---|
| 100 |
|
---|
| 101 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 102 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 103 |
|
---|
[d56e7df] | 104 | <para>
|
---|
[875b3b57] | 105 | <parameter>--enable-relocatable</parameter>:
|
---|
| 106 | This switch is needed to run the tests.
|
---|
[d56e7df] | 107 | </para>
|
---|
[25d274a] | 108 |
|
---|
[fbf70663] | 109 | </sect2>
|
---|
| 110 |
|
---|
| 111 | <sect2 role="configuration">
|
---|
| 112 | <title>Configuring libpaper</title>
|
---|
| 113 |
|
---|
| 114 | <sect3>
|
---|
| 115 | <title>Configuration Information</title>
|
---|
| 116 |
|
---|
[d56e7df] | 117 | <para>
|
---|
[913b88f] | 118 | The paper size is automatically determined from the system locale;
|
---|
| 119 | see <literal>LC_PAPER</literal> in <filename>locale(7)</filename>.
|
---|
| 120 | If you want to override it, create a <filename>papersize</filename>
|
---|
| 121 | file in the user configuration directory. For example:
|
---|
[d56e7df] | 122 | </para>
|
---|
[fbf70663] | 123 |
|
---|
[278f297] | 124 | <screen role="nodump"><userinput>mkdir -pv ~/.config &&
|
---|
[913b88f] | 125 | echo "a4" > ~/.config/papersize</userinput></screen>
|
---|
| 126 |
|
---|
| 127 | <para>
|
---|
| 128 | If you want to override the paper size globally (for all users),
|
---|
| 129 | set up the <envar>PAPERSIZE</envar> environment variable. For
|
---|
| 130 | example:
|
---|
| 131 | </para>
|
---|
| 132 |
|
---|
| 133 | <screen role="nodump"><userinput>echo "PAPERSIZE=a4" > /etc/profile.d/libpaper.sh</userinput></screen>
|
---|
| 134 |
|
---|
| 135 | <para>
|
---|
| 136 | You may use a different paper size, such as
|
---|
| 137 | <quote><literal>letter</literal></quote>.
|
---|
| 138 | </para>
|
---|
[fbf70663] | 139 |
|
---|
| 140 | </sect3>
|
---|
| 141 |
|
---|
[1ecdb18] | 142 | </sect2>
|
---|
| 143 |
|
---|
| 144 | <sect2 role="content">
|
---|
| 145 | <title>Contents</title>
|
---|
| 146 |
|
---|
| 147 | <segmentedlist>
|
---|
| 148 | <segtitle>Installed Programs</segtitle>
|
---|
| 149 | <segtitle>Installed Library</segtitle>
|
---|
| 150 | <segtitle>Installed Directories</segtitle>
|
---|
| 151 |
|
---|
| 152 | <seglistitem>
|
---|
| 153 | <seg>
|
---|
[2cddc60] | 154 | paper and
|
---|
| 155 | paperconf
|
---|
[1ecdb18] | 156 | </seg>
|
---|
| 157 | <seg>
|
---|
| 158 | libpaper.so
|
---|
| 159 | </seg>
|
---|
| 160 | <seg>
|
---|
[2e597c5e] | 161 | /usr/share/doc/libpaper-&libpaper-version;
|
---|
[1ecdb18] | 162 | </seg>
|
---|
| 163 | </seglistitem>
|
---|
| 164 | </segmentedlist>
|
---|
| 165 |
|
---|
| 166 | <variablelist>
|
---|
| 167 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 168 | <?dbfo list-presentation="list"?>
|
---|
| 169 | <?dbhtml list-presentation="table"?>
|
---|
| 170 |
|
---|
[25d274a] | 171 | <varlistentry id="paper">
|
---|
| 172 | <term><command>paper</command></term>
|
---|
[1ecdb18] | 173 | <listitem>
|
---|
[d56e7df] | 174 | <para>
|
---|
[4c24eb0a] | 175 | prints paper configuration information
|
---|
[d56e7df] | 176 | </para>
|
---|
[25d274a] | 177 | <indexterm zone="libpaper paper">
|
---|
| 178 | <primary sortas="b-paper">paper</primary>
|
---|
[1ecdb18] | 179 | </indexterm>
|
---|
| 180 | </listitem>
|
---|
| 181 | </varlistentry>
|
---|
| 182 |
|
---|
[2cddc60] | 183 | <varlistentry id="paperconf">
|
---|
| 184 | <term><command>paperconf</command></term>
|
---|
| 185 | <listitem>
|
---|
| 186 | <para>
|
---|
| 187 | prints paper configuration information in a compatibility mode
|
---|
| 188 | </para>
|
---|
| 189 | <indexterm zone="libpaper paperconf">
|
---|
| 190 | <primary sortas="b-paperconf">paperconf</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 | </listitem>
|
---|
| 193 | </varlistentry>
|
---|
| 194 |
|
---|
[1ecdb18] | 195 | <varlistentry id="libpaper-lib">
|
---|
| 196 | <term><filename class="libraryfile">libpaper.so</filename></term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>
|
---|
[4c24eb0a] | 199 | contains functions for interrogating the paper library
|
---|
[1ecdb18] | 200 | </para>
|
---|
| 201 | <indexterm zone="libpaper libpaper-lib">
|
---|
| 202 | <primary sortas="c-libpaper">libpaper.so</primary>
|
---|
| 203 | </indexterm>
|
---|
| 204 | </listitem>
|
---|
| 205 | </varlistentry>
|
---|
| 206 |
|
---|
| 207 | </variablelist>
|
---|
| 208 |
|
---|
| 209 | </sect2>
|
---|
| 210 |
|
---|
| 211 | </sect1>
|
---|