source: pst/printing/cups-filters.xml@ 58387b50

10.0 10.1 11.0 ken/refactor-virt lazarus qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 58387b50 was 58387b50, checked in by Douglas R. Reno <renodr@…>, 14 months ago

Tag the printing stack

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

  • Property mode set to 100644
File size: 11.2 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 cups-filters-download-http
8 "https://www.openprinting.org/download/cups-filters/cups-filters-&cups-filters-version;.tar.xz">
9 <!ENTITY cups-filters-download-ftp " ">
10 <!ENTITY cups-filters-md5sum "765bc236257811864fa19736417add59">
11 <!ENTITY cups-filters-size "1.4 MB">
12 <!ENTITY cups-filters-buildsize "48 MB (with tests), 15MB installed">
13 <!ENTITY cups-filters-time "0.4 SBU (with tests)">
14]>
15
16<sect1 id="cups-filters" xreflabel="cups-filters-&cups-filters-version;">
17 <?dbhtml filename="cups-filters.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>cups-filters-&cups-filters-version;</title>
25
26 <indexterm zone="cups-filters">
27 <primary sortas="a-cups-filters">cups-filters</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to CUPS Filters</title>
32
33 <para>
34 The <application>CUPS Filters</application> package contains backends,
35 filters and other software that was once part of the core
36 <application>CUPS</application> distribution but is no longer
37 maintained by Apple Inc.
38 </para>
39
40 &lfs10_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&cups-filters-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&cups-filters-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &cups-filters-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &cups-filters-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &cups-filters-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &cups-filters-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">CUPS Filters Dependencies</bridgehead>
77
78 <bridgehead renderas="sect4">Required</bridgehead>
79 <para role="required">
80 <xref linkend="cups"/>,
81 <xref linkend="glib2"/>,
82 <xref linkend="gs"/>,
83 <xref linkend="lcms2"/>,
84 <xref linkend="poppler"/>, and
85 <xref linkend="qpdf"/>
86 </para>
87
88 <bridgehead renderas="sect4">Recommended</bridgehead>
89 <para role="recommended">
90 <xref linkend="dejavu-fonts"/> (the build fails if they are not
91 installed, although they are only required for the tests),
92 <xref linkend="libjpeg"/>,
93 <xref linkend="libpng"/>,
94 <xref linkend="libtiff"/>, and
95 <xref linkend="mupdf"/> (mutool)
96 </para>
97
98 <bridgehead renderas="sect4">Optional</bridgehead>
99 <para role="optional">
100 <xref linkend="avahi"/> (required to build the DNSSD backend of the
101 <command>cups-browsed</command> daemon, which is needed for operating
102 some network printers),
103 <xref linkend="openldap"/>,
104 <xref linkend="php"/> (use of this might be broken),
105 <ulink url="http://liblouis.org/">Liblouis (Braille)</ulink>, and
106 <ulink url="http://liblouis.org/">Liblouisutdml (Braille)</ulink>
107 </para>
108
109 <bridgehead renderas="sect4">Optional printer drivers (runtime)</bridgehead>
110 <para role="optional">
111 <xref role="runtime" linkend="gutenprint"/> (for supported printers),
112 or other printer drivers, such as <ulink role="runtime"
113 url="http://sourceforge.net/projects/hplip/files/hplip/">hplip</ulink>
114 </para>
115
116 <para condition="html" role="usernotes">
117 User Notes: <ulink url="&blfs-wiki;/cups-filters"/>
118 </para>
119 </sect2>
120
121 <sect2 role="installation">
122 <title>Installation of CUPS Filters</title>
123
124 <para revision="systemd">
125 First, fix the systemd unit file to work with
126 <application>CUPS</application> 2.0 and later:
127 </para>
128
129<screen revision="systemd"><userinput>sed -i "s:cups.service:org.cups.cupsd.service:g" utils/cups-browsed.service</userinput></screen>
130
131 <para>
132 Install <application>CUPS Filters</application> by running the following
133 commands:
134 </para>
135
136<screen><userinput>./configure --prefix=/usr \
137 --sysconfdir=/etc \
138 --localstatedir=/var \
139 --without-rcdir \
140 --disable-static \
141 --disable-avahi \
142 --docdir=/usr/share/doc/cups-filters-&cups-filters-version; &amp;&amp;
143make</userinput></screen>
144
145<!-- The test suite still bombs out for me. I'll leave the instructions for it
146 here though. I didn't have the Dejavu font installed, but used one of the
147 ones installed by X.
148 Version 1.16.0: test worked for me with "make check >testlog 2>&1",
149 that is, the other way around. I have DejaVu fonts. Pierre L
150 With 1.17.2 (and DejaVu) the test output is clean, no need for a log. Ken
151
152 Tests are clean for version 1.21.0 (and version 1.21.5): - Bruce
153 # TOTAL: 6
154 # PASS: 6
155 real 0m2.504s -->
156
157 <para>
158 To test the results, issue:
159 <!--<command>make check &gt;testlog 2&gt;&amp;1</command>.-->
160 <command>make check</command>. DejaVu fonts
161 are needed for the tests.
162 </para>
163
164 <para>
165 Now, as the <systemitem class="username">root</systemitem> user:
166 </para>
167
168<screen role="root"><userinput>make install</userinput></screen>
169
170 <para revision="systemd">
171 Install the systemd unit by running the following command as the
172 <systemitem class="username">root</systemitem> user:
173 </para>
174
175<screen role="root" revision="systemd"><userinput>install -v -m644 utils/cups-browsed.service /lib/systemd/system/cups-browsed.service</userinput></screen>
176
177 </sect2>
178
179 <sect2 role="commands">
180 <title>Command Explanations</title>
181<!-- please comment this if no patches are currently needed -->
182<!--<para>
183 <parameter>patch -Np1 -i ../cups-filters-&cups-filters-version;-poppler71-1.patch</parameter>:
184 Conditionally apply changes for recent versions of poppler.
185 </para>
186 Poppler-0.72.0, cups-filters-1.21.5 - no longer needed.-->
187 <para>
188 <parameter>--disable-avahi</parameter>: This switch is needed
189 if the optional <xref linkend="avahi"/> is not installed. Remove
190 it if avahi is installed and you need network printer discovery
191 capabilities.
192 </para>
193
194 <para>
195 <parameter>--without-rcdir</parameter>: This switch disables
196 installation of the bundled bootscript which is not compatible
197 with BLFS.
198 </para>
199
200<!-- Those are hard dependencies now
201 <para>
202 <parameter>- -with-gs-path=/usr/bin/gs</parameter>: This switch
203 defines the path to the <application>GhostScript</application>
204 binary in case <xref linkend="gs"/> is not installed at build time.
205 </para>
206
207 <para>
208 <parameter>- -with-pdftops-path=/usr/bin/gs</parameter>: This switch
209 defines the path to the <application>GhostScript</application>
210 binary in case <xref linkend="gs"/> is not installed at build time.
211 </para>
212-->
213
214 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
215 href="../../xincludes/static-libraries.xml"/>
216 <!--
217 <para>
218 <option>- -enable-ijs</option>: This switch will allow the pdftoijs
219 filter, for sending PDFs to an HP InkJet Server, to be built.
220 </para>
221 -->
222
223<!--<para>
224 <command>make check 2&gt;&amp;1 &gt;testlog</command>: The testsuite
225 dumps a stream of bytes into the input buffer after it finishes. Sending
226 the output to a file keeps the history usable, but some debug information
227 will still appear on the screen.
228 </para>-->
229
230 <para>
231 <option>--with-test-font-path=<replaceable>VALUE</replaceable></option>:
232 If you wish to run the tests, but
233 you do not have the default
234 <filename>/usr/share/fonts/dejavu/DejaVuSans.ttf</filename> use this
235 switch to specify where <filename>DejaVuSans.ttf</filename> (or perhaps
236 some other text TTF font - untested) is located.
237 </para>
238
239
240 </sect2>
241
242<!-- TODO: Write a bootscript for cups-browsed -->
243
244 <sect2 role="configuration" revision="systemd">
245 <title>Configuring CUPS Filters</title>
246
247 <sect3 id="cups-filters-init">
248 <title>Systemd Units</title>
249
250 <para>
251 To start the <command>cups-browsed</command> daemon at boot, enable
252 the previously installed systemd unit by running the following command
253 as the <systemitem class="username">root</systemitem> user:
254 </para>
255
256 <indexterm zone="cups-filters cups-filters-init">
257 <primary sortas="f-cups-browsed">cups-browsed</primary>
258 </indexterm>
259
260<screen role="root"><userinput>systemctl enable cups-browsed</userinput></screen>
261
262 </sect3>
263
264 </sect2>
265
266 <sect2 role="content">
267 <title>Contents</title>
268
269 <segmentedlist>
270 <segtitle>Installed Programs</segtitle>
271 <segtitle>Installed Libraries</segtitle>
272 <segtitle>Installed Directories</segtitle>
273
274 <seglistitem>
275 <seg>
276 cups-browsed, driverless (link), foomatic-rip (link) and ttfread
277 </seg>
278 <seg>
279 libcupsfilters.so and libfontembed.so
280 </seg>
281 <seg>
282 /usr/include/{cupsfilters,fontembed},
283 /usr/lib/cups/driver,
284 /usr/share/cups/{braille,charsets},
285 /usr/share/doc/cups-filters-&cups-filters-version; and
286 /usr/share/ppd/cupsfilters
287 </seg>
288 </seglistitem>
289 </segmentedlist>
290
291 <variablelist>
292 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
293 <?dbfo list-presentation="list"?>
294 <?dbhtml list-presentation="table"?>
295
296 <varlistentry id="cups-browsed">
297 <term><command>cups-browsed</command></term>
298 <listitem>
299 <para>
300 is a daemon for browsing the Bonjour and CUPS broadcasts of shared,
301 remote CUPS printers.
302 </para>
303 <indexterm zone="cups-filters cups-browsed">
304 <primary sortas="b-cups-browsed">cups-browsed</primary>
305 </indexterm>
306 </listitem>
307 </varlistentry>
308
309 <varlistentry id="foomatic-rip">
310 <term><command>foomatic-rip</command></term>
311 <listitem>
312 <para>
313 is a universal print filter/RIP wrapper which can be used as CUPS
314 filter or stand-alone for spooler-less, direct printing.
315 </para>
316 <indexterm zone="cups-filters foomatic-rip">
317 <primary sortas="b-foomatic-rip">foomatic-rip</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
321
322 <varlistentry id="libcupsfilters">
323 <term><filename class="libraryfile">libcupsfilters.so</filename></term>
324 <listitem>
325 <para>
326 contains <application>CUPS Filters</application> API functions.
327 </para>
328 <indexterm zone="cups-filters libcupsfilters">
329 <primary sortas="c-libcupsfilters">libcupsfilters.so</primary>
330 </indexterm>
331 </listitem>
332 </varlistentry>
333
334 </variablelist>
335
336 </sect2>
337
338</sect1>
Note: See TracBrowser for help on using the repository browser.