source: general/genlib/libpaper.xml@ 9029db2

10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 9029db2 was 9029db2, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Tag most of General Libraries and dependencies

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

  • Property mode set to 100644
File size: 7.9 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 " ">
9 <!ENTITY libpaper-md5sum "38bc55688c0fc5544edaa5a951a45fbd">
10 <!ENTITY libpaper-size "48 KB">
11 <!ENTITY libpaper-buildsize "3.5 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 &lfs101_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
84 commands:
85 </para>
86
87<screen><userinput>autoreconf -fi &amp;&amp;
88./configure --prefix=/usr \
89 --sysconfdir=/etc \
90 --disable-static &amp;&amp;
91make</userinput></screen>
92
93 <para>
94 This package does not come with a test suite.
95 </para>
96
97 <para>
98 Now, as the <systemitem class="username">root</systemitem> user:
99 </para>
100
101<screen role="root"><userinput>make install &amp;&amp;
102mkdir -vp /etc/libpaper.d</userinput></screen>
103
104 <para>
105 The /etc/libpaper.d directory contains scripts to run after the paper
106 size has been changed. This package puts no scripts here, but other
107 packages may. If the fcron package has not been installed, create the
108 <command>run-parts</command> script as shown in the <xref
109 linkend='run-parts'/> section.
110 </para>
111
112<!--
113cat &gt; /usr/bin/run-parts &lt;&lt; "EOF"
114<literal>#!/bin/sh
115# run-parts: Runs all the scripts found in a directory.
116# from Slackware, by Patrick J. Volkerding with ideas borrowed
117# from the Red Hat and Debian versions of this utility.
118
119# keep going when something fails
120set +e
121
122if [ $# -lt 1 ]; then
123 echo "Usage: run-parts &lt;directory&gt;"
124 exit 1
125fi
126
127if [ ! -d $1 ]; then
128 echo "Not a directory: $1"
129 echo "Usage: run-parts &lt;directory&gt;"
130 exit 1
131fi
132
133# There are several types of files that we would like to
134# ignore automatically, as they are likely to be backups
135# of other scripts:
136IGNORE_SUFFIXES="~ ^ , .bak .new .rpmsave .rpmorig .rpmnew .swp"
137
138# Main loop:
139for SCRIPT in $1/* ; do
140 # If this is not a regular file, skip it:
141 if [ ! -f $SCRIPT ]; then
142 continue
143 fi
144 # Determine if this file should be skipped by suffix:
145 SKIP=false
146 for SUFFIX in $IGNORE_SUFFIXES ; do
147 if [ ! "$(basename $SCRIPT $SUFFIX)" = "$(basename $SCRIPT)" ]; then
148 SKIP=true
149 break
150 fi
151 done
152 if [ "$SKIP" = "true" ]; then
153 continue
154 fi
155 # If we've made it this far, then run the script if it's executable:
156 if [ -x $SCRIPT ]; then
157 $SCRIPT || echo "$SCRIPT failed."
158 fi
159done
160
161exit 0</literal>
162EOF
163
164chmod -v 755 /usr/bin/run-parts</userinput></screen>
165-->
166 </sect2>
167
168 <sect2 role="commands">
169 <title>Command Explanations</title>
170
171 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
172 href="../../xincludes/static-libraries.xml"/>
173
174 <para>
175 <command>mkdir -pv /etc/libpaper.d</command>:
176 <application>libpaper</application> expects that packages will install
177 files into this directory.
178 </para>
179<!--
180 <para>
181 <command>cat &gt; /usr/bin/run-parts &lt;&lt; "EOF"</command> :
182 <filename>paperconfig</filename> is a script which will invoke
183 <command>run-parts</command> if <filename
184 class="directory">/etc/libpaper.d</filename> exists. No other BLFS
185 package installs this, so we create it here.
186 </para>
187-->
188 </sect2>
189
190 <sect2 role="configuration">
191 <title>Configuring libpaper</title>
192
193 <sect3>
194 <title>Configuration Information</title>
195
196 <para>
197 Create <filename>/etc/papersize</filename> to set the default
198 system paper size. Issue the following command as the
199 <systemitem class="username">root</systemitem> user to set this to
200 &apos;A4&apos; (libpaper prefers the lowercase form). You may wish
201 to use a different size, such as letter.
202 </para>
203
204<screen role="root"><userinput>cat &gt; /etc/papersize &lt;&lt; "EOF"
205<literal>a4</literal>
206EOF</userinput></screen>
207
208 </sect3>
209
210 </sect2>
211
212 <sect2 role="content">
213 <title>Contents</title>
214
215 <segmentedlist>
216 <segtitle>Installed Programs</segtitle>
217 <segtitle>Installed Library</segtitle>
218 <segtitle>Installed Directories</segtitle>
219
220 <seglistitem>
221 <seg>
222 paperconf, paperconfig, run-parts
223 </seg>
224 <seg>
225 libpaper.so
226 </seg>
227 <seg>
228 /etc/libpaper.d
229 </seg>
230 </seglistitem>
231 </segmentedlist>
232
233 <variablelist>
234 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
235 <?dbfo list-presentation="list"?>
236 <?dbhtml list-presentation="table"?>
237
238 <varlistentry id="paperconf">
239 <term><command>paperconf</command></term>
240 <listitem>
241 <para>
242 prints paper configuration information
243 </para>
244 <indexterm zone="libpaper paperconf">
245 <primary sortas="b-paperconf">paperconf</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="paperconfig">
251 <term><command>paperconfig</command></term>
252 <listitem>
253 <para>
254 configures the system default paper size
255 </para>
256 <indexterm zone="libpaper paperconfig">
257 <primary sortas="b-paperconfig">paperconfig</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261<!--
262 <varlistentry id="run-parts">
263 <term><command>run-parts</command></term>
264 <listitem>
265 <para>
266 runs all the scripts found in a directory.
267 </para>
268 <indexterm zone="libpaper run-parts">
269 <primary sortas="b-run-parts">run-parts</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273-->
274 <varlistentry id="libpaper-lib">
275 <term><filename class="libraryfile">libpaper.so</filename></term>
276 <listitem>
277 <para>
278 contains functions for interrogating the paper library
279 </para>
280 <indexterm zone="libpaper libpaper-lib">
281 <primary sortas="c-libpaper">libpaper.so</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 </variablelist>
287
288 </sect2>
289
290</sect1>
Note: See TracBrowser for help on using the repository browser.