source: general/genlib/libpaper.xml@ 2b919a2

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 2b919a2 was fbf70663, checked in by Ken Moffat <ken@…>, 10 years ago

Clean up libpapersize.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@14147 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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 libpaper-download-http "http://ftp.debian.org/debian/pool/main/libp/libpaper/libpaper_&libpaper-version;.tar.gz">
8 <!ENTITY libpaper-download-ftp "ftp://ftp.debian.org/debian/pool/main/libp/libpaper/libpaper_&libpaper-version;.tar.gz">
9 <!ENTITY libpaper-md5sum "2d7239e4e7cb295aff54814f0d97992d">
10 <!ENTITY libpaper-size "361 KB">
11 <!ENTITY libpaper-buildsize "2.6 MB">
12 <!ENTITY libpaper-time "less than 0.1 SBU">
13]>
14
15<sect1 id="libpaper" xreflabel="libpaper-&libpaper-version;">
16 <?dbhtml filename="libpaper.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>libpaper-&libpaper-version;</title>
24
25 <indexterm zone="libpaper">
26 <primary sortas="a-libpaper">libpaper</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to libpaper</title>
31
32 <para>
33 This package is intended to provide a simple way for applications to take
34 actions based on a system or user-specified paper size.
35 </para>
36
37 &lfs75_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&libpaper-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&libpaper-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &libpaper-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &libpaper-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &libpaper-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &libpaper-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <para condition="html" role="usernotes">
74 User Notes: <ulink url="&blfs-wiki;/libpaper"/>
75 </para>
76
77 </sect2>
78
79 <sect2 role="installation">
80 <title>Installation of libpaper</title>
81
82 <para>
83 Install <application>libpaper</application> by running the following commands:
84 </para>
85
86<screen><userinput>./configure --prefix=/usr \
87 --sysconfdir=/etc \
88 --disable-static &amp;&amp;
89make
90</userinput></screen>
91
92 <para>This package does not come with a test suite.</para>
93
94 <para>
95 Now, as the <systemitem class="username">root</systemitem> user:
96 </para>
97
98<screen role="root"><userinput>make install &amp;&amp;
99mkdir -v /etc/libpaper.d
100</userinput></screen>
101
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"/>
109
110 <para><command>mkdir -v /etc/libpaper.d</command>:
111 <application>libpaper</application> expects that packages will install files
112 into this directory.</para>
113
114 </sect2>
115
116 <sect2 role="configuration">
117 <title>Configuring libpaper</title>
118
119 <sect3>
120 <title>Configuration Information</title>
121
122 <para>Create <filename>/etc/papersize</filename> to set the default
123 system paper size. Issue the following command as the
124 <systemitem class="username">root</systemitem> user to set this to
125 &apos;A4&apos; (libpaper expects the lowercase form). You may wish
126 to use a different size, such as letter.</para>
127
128<screen role="root"><userinput>cat &gt; /etc/papersize &lt;&lt; "EOF"
129a4
130EOF</userinput></screen>
131
132 </sect3>
133
134 </sect2>
135
136 <sect2 role="content">
137 <title>Contents</title>
138
139 <segmentedlist>
140 <segtitle>Installed Programs</segtitle>
141 <segtitle>Installed Library</segtitle>
142 <segtitle>Installed Directories</segtitle>
143
144 <seglistitem>
145 <seg>
146 paperconf, paperconfig
147 </seg>
148 <seg>
149 libpaper.so
150 </seg>
151 <seg>
152 /etc/libpaper.d
153 </seg>
154 </seglistitem>
155 </segmentedlist>
156
157 <variablelist>
158 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
159 <?dbfo list-presentation="list"?>
160 <?dbhtml list-presentation="table"?>
161
162 <varlistentry id="paperconf">
163 <term><command>paperconf</command></term>
164 <listitem>
165 <para>print paper configuration information.</para>
166 <indexterm zone="libpaper paperconf">
167 <primary sortas="b-paperconf">paperconf</primary>
168 </indexterm>
169 </listitem>
170 </varlistentry>
171
172 <varlistentry id="paperconfig">
173 <term><command>paperconfig</command></term>
174 <listitem>
175 <para>configure the system default paper size.</para>
176 <indexterm zone="libpaper paperconfig">
177 <primary sortas="b-paperconfig">paperconfig</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 <varlistentry id="libpaper-lib">
183 <term><filename class="libraryfile">libpaper.so</filename></term>
184 <listitem>
185 <para>
186 contains functions for interrogating the paper library.
187 </para>
188 <indexterm zone="libpaper libpaper-lib">
189 <primary sortas="c-libpaper">libpaper.so</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 </variablelist>
195
196 </sect2>
197
198</sect1>
Note: See TracBrowser for help on using the repository browser.