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