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 "cdf101d2c0ad6b9fe499395cda3e99c6">
|
---|
11 | <!ENTITY cups-filters-size "1.4 MB">
|
---|
12 | <!ENTITY cups-filters-buildsize "42 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 | &lfs83_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="libjpeg"/>,
|
---|
91 | <xref linkend="libpng"/>,
|
---|
92 | <xref linkend="libtiff"/> and
|
---|
93 | <xref linkend="mupdf"/> (mutool),
|
---|
94 | </para>
|
---|
95 |
|
---|
96 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
97 | <para role="optional">
|
---|
98 | <xref linkend="avahi"/>,
|
---|
99 | <xref linkend="dejavu-fonts"/> (required for the tests),
|
---|
100 | <xref linkend="ijs"/>,
|
---|
101 | <xref linkend="openldap"/>,
|
---|
102 | <xref linkend="php"/> (use of this might be broken),
|
---|
103 | <ulink url="http://liblouis.org/">Liblouis (Braille)</ulink>, and
|
---|
104 | <ulink url="http://liblouis.org/">Liblouisutdml (Braille)</ulink>
|
---|
105 | </para>
|
---|
106 |
|
---|
107 | <bridgehead renderas="sect4">Optional printer drivers (runtime)</bridgehead>
|
---|
108 | <para role="optional">
|
---|
109 | <xref role="runtime" linkend="gutenprint"/> (for supported printers),
|
---|
110 | or other printer drivers, such as <ulink role="runtime"
|
---|
111 | url="http://sourceforge.net/projects/hplip/files/hplip/">hplip</ulink>
|
---|
112 | </para>
|
---|
113 |
|
---|
114 | <para condition="html" role="usernotes">
|
---|
115 | User Notes: <ulink url="&blfs-wiki;/cups-filters"/>
|
---|
116 | </para>
|
---|
117 | </sect2>
|
---|
118 |
|
---|
119 | <sect2 role="installation">
|
---|
120 | <title>Installation of CUPS Filters</title>
|
---|
121 |
|
---|
122 | <para revision="systemd">
|
---|
123 | First, fix the systemd unit file to work with
|
---|
124 | <application>CUPS</application> 2.0 and later:
|
---|
125 | </para>
|
---|
126 |
|
---|
127 | <screen revision="systemd"><userinput>sed -i "s:cups.service:org.cups.cupsd.service:g" utils/cups-browsed.service</userinput></screen>
|
---|
128 |
|
---|
129 | <para>
|
---|
130 | Install <application>CUPS Filters</application> by running the following
|
---|
131 | commands:
|
---|
132 | </para>
|
---|
133 |
|
---|
134 | <screen><userinput>./configure --prefix=/usr \
|
---|
135 | --sysconfdir=/etc \
|
---|
136 | --localstatedir=/var \
|
---|
137 | --without-rcdir \
|
---|
138 | --disable-static \
|
---|
139 | --disable-avahi \
|
---|
140 | --docdir=/usr/share/doc/cups-filters-&cups-filters-version; &&
|
---|
141 | make</userinput></screen>
|
---|
142 |
|
---|
143 | <!-- The test suite still bombs out for me. I'll leave the instructions for it
|
---|
144 | here though. I didn't have the Dejavu font installed, but used one of the
|
---|
145 | ones installed by X.
|
---|
146 | Version 1.16.0: test worked for me with "make check >testlog 2>&1",
|
---|
147 | that is, the other way around. I have DejaVu fonts. Pierre L
|
---|
148 | With 1.17.2 (and DejaVu) the test output is clean, no need for a log. Ken
|
---|
149 |
|
---|
150 | Tests are clean for version 1.21.0 (and version 1.21.5): - Bruce
|
---|
151 | # TOTAL: 6
|
---|
152 | # PASS: 6
|
---|
153 | real 0m2.504s -->
|
---|
154 |
|
---|
155 | <para>
|
---|
156 | To test the results, issue:
|
---|
157 | <!--<command>make check >testlog 2>&1</command>.-->
|
---|
158 | <command>make check</command>. DejaVu fonts
|
---|
159 | are needed for the tests.
|
---|
160 | </para>
|
---|
161 |
|
---|
162 | <para>
|
---|
163 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
164 | </para>
|
---|
165 |
|
---|
166 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
167 |
|
---|
168 | <para revision="systemd">
|
---|
169 | Install the systemd unit by running the following command as the
|
---|
170 | <systemitem class="username">root</systemitem> user:
|
---|
171 | </para>
|
---|
172 |
|
---|
173 | <screen role="root" revision="systemd"><userinput>install -v -m644 utils/cups-browsed.service /lib/systemd/system/cups-browsed.service</userinput></screen>
|
---|
174 |
|
---|
175 | </sect2>
|
---|
176 |
|
---|
177 | <sect2 role="commands">
|
---|
178 | <title>Command Explanations</title>
|
---|
179 | <!-- please comment this if no patches are currently needed -->
|
---|
180 | <para>
|
---|
181 | <parameter>patch -Np1 -i ../cups-filters-&cups-filters-version;-poppler71-1.patch</parameter>:
|
---|
182 | Conditionally apply changes for recent versions of poppler.
|
---|
183 | </para>
|
---|
184 | <para>
|
---|
185 | <parameter>--disable-avahi</parameter>: This switch is needed
|
---|
186 | if the optional <xref linkend="avahi"/> is not installed. Remove
|
---|
187 | it if avahi is installed and you need network printer discovery
|
---|
188 | capabilities.
|
---|
189 | </para>
|
---|
190 |
|
---|
191 | <para>
|
---|
192 | <parameter>--without-rcdir</parameter>: This switch disables
|
---|
193 | installation of the bundled bootscript which is not compatible
|
---|
194 | with BLFS.
|
---|
195 | </para>
|
---|
196 |
|
---|
197 | <!-- Those are hard dependencies now
|
---|
198 | <para>
|
---|
199 | <parameter>- -with-gs-path=/usr/bin/gs</parameter>: This switch
|
---|
200 | defines the path to the <application>GhostScript</application>
|
---|
201 | binary in case <xref linkend="gs"/> is not installed at build time.
|
---|
202 | </para>
|
---|
203 |
|
---|
204 | <para>
|
---|
205 | <parameter>- -with-pdftops-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 |
|
---|
211 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
212 | href="../../xincludes/static-libraries.xml"/>
|
---|
213 |
|
---|
214 | <para>
|
---|
215 | <option>--enable-ijs</option>: This switch will allow the pdftoijs
|
---|
216 | filter, for sending PDFs to an HP InkJet Server, to be built.
|
---|
217 | </para>
|
---|
218 |
|
---|
219 | <!--<para>
|
---|
220 | <command>make check 2>&1 >testlog</command>: The testsuite
|
---|
221 | dumps a stream of bytes into the input buffer after it finishes. Sending
|
---|
222 | the output to a file keeps the history usable, but some debug information
|
---|
223 | will still appear on the screen.
|
---|
224 | </para>-->
|
---|
225 |
|
---|
226 | <!-- option seems to be obsolete - configure doesn't pick it up
|
---|
227 | <para>
|
---|
228 | <option>- -with-test-path=<replaceable>VALUE</replaceable></option>: 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 switch
|
---|
231 | to specify where <filename>DejaVuSans.ttf</filename> (or perhaps some other
|
---|
232 | 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 (link), foomatic-rip (link) 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/driver,
|
---|
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="foomatic-rip">
|
---|
306 | <term><command>foomatic-rip</command></term>
|
---|
307 | <listitem>
|
---|
308 | <para>
|
---|
309 | is a universal print filter/RIP wrapper which can be used as CUPS
|
---|
310 | filter or stand-alone for spooler-less, direct printing.
|
---|
311 | </para>
|
---|
312 | <indexterm zone="cups-filters foomatic-rip">
|
---|
313 | <primary sortas="b-foomatic-rip">foomatic-rip</primary>
|
---|
314 | </indexterm>
|
---|
315 | </listitem>
|
---|
316 | </varlistentry>
|
---|
317 |
|
---|
318 | <varlistentry id="libcupsfilters">
|
---|
319 | <term><filename class="libraryfile">libcupsfilters.so</filename></term>
|
---|
320 | <listitem>
|
---|
321 | <para>
|
---|
322 | contains <application>CUPS Filters</application> API functions.
|
---|
323 | </para>
|
---|
324 | <indexterm zone="cups-filters libcupsfilters">
|
---|
325 | <primary sortas="c-libcupsfilters">libcupsfilters.so</primary>
|
---|
326 | </indexterm>
|
---|
327 | </listitem>
|
---|
328 | </varlistentry>
|
---|
329 |
|
---|
330 | </variablelist>
|
---|
331 |
|
---|
332 | </sect2>
|
---|
333 |
|
---|
334 | </sect1>
|
---|