source: general/genlib/libpaper.xml@ 87351a9

10.0 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 87351a9 was 87351a9, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Tag most of General Libraries and their dependencies

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

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