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 "3e7ec44dc9b977f1beb64df49041004f">
|
---|
11 | <!ENTITY cups-filters-size "1.3 MB">
|
---|
12 | <!ENTITY cups-filters-buildsize "45 MB (with tests)">
|
---|
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 | &lfs7a_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">Additional Downloads</bridgehead>
|
---|
77 | <itemizedlist spacing="compact">
|
---|
78 | <listitem>
|
---|
79 | <para>
|
---|
80 | Required patch:
|
---|
81 | <ulink url="&patch-root;/cups-filters-&cups-filters-version;-poppler0340-1.patch"/>
|
---|
82 | </para>
|
---|
83 | </listitem>
|
---|
84 | </itemizedlist>-->
|
---|
85 |
|
---|
86 | <bridgehead renderas="sect3">CUPS Filters Dependencies</bridgehead>
|
---|
87 |
|
---|
88 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
89 | <para role="required">
|
---|
90 | <xref linkend="cups"/>,
|
---|
91 | <xref linkend="glib2"/>,
|
---|
92 | <xref linkend="ijs"/>,
|
---|
93 | <xref linkend="lcms2"/>,
|
---|
94 | <xref linkend="poppler"/> and
|
---|
95 | <xref linkend="qpdf"/>
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
99 | <para role="recommended">
|
---|
100 | <xref linkend="libjpeg"/>,
|
---|
101 | <xref linkend="libpng"/> and
|
---|
102 | <xref linkend="libtiff"/>
|
---|
103 | </para>
|
---|
104 |
|
---|
105 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
106 | <para role="optional">
|
---|
107 | <xref linkend="avahi"/>,
|
---|
108 | <xref linkend="openldap"/>,
|
---|
109 | <xref linkend="php"/> (use of this might be broken),
|
---|
110 | <ulink url="http://liblouis.org/">Liblouis (Braille)</ulink>, and
|
---|
111 | <ulink url="http://liblouis.org/">Liblouisutdml (Braille)</ulink>
|
---|
112 | </para>
|
---|
113 |
|
---|
114 | <bridgehead renderas="sect4">Required (Runtime)</bridgehead>
|
---|
115 | <para role="required runtime">
|
---|
116 | <xref linkend="gs"/> (Needed for PostScript printers), or
|
---|
117 | <xref linkend="gutenprint"/> (for supported printers),
|
---|
118 | or other printer drivers
|
---|
119 | </para>
|
---|
120 |
|
---|
121 | <para condition="html" role="usernotes">
|
---|
122 | User Notes: <ulink url="&blfs-wiki;/cups-filters"/>
|
---|
123 | </para>
|
---|
124 | </sect2>
|
---|
125 |
|
---|
126 | <sect2 role="installation">
|
---|
127 | <title>Installation of CUPS Filters</title>
|
---|
128 |
|
---|
129 | <para revision="systemd">
|
---|
130 | First, fix the systemd unit file to work with
|
---|
131 | <application>CUPS</application> 2.0 and later:
|
---|
132 | </para>
|
---|
133 |
|
---|
134 | <screen revision="systemd"><userinput>sed -i "s:cups.service:org.cups.cupsd.service:g" utils/cups-browsed.service</userinput></screen>
|
---|
135 |
|
---|
136 | <para>
|
---|
137 | Install <application>CUPS Filters</application> by running the following
|
---|
138 | commands:
|
---|
139 | </para>
|
---|
140 |
|
---|
141 | <screen><userinput>./configure \
|
---|
142 | --prefix=/usr \
|
---|
143 | --sysconfdir=/etc \
|
---|
144 | --localstatedir=/var \
|
---|
145 | --without-rcdir \
|
---|
146 | --disable-static \
|
---|
147 | --disable-avahi \
|
---|
148 | --with-gs-path=/usr/bin/gs \
|
---|
149 | --with-pdftops-path=/usr/bin/gs \
|
---|
150 | --docdir=/usr/share/doc/cups-filters-&cups-filters-version; &&
|
---|
151 | make</userinput></screen>
|
---|
152 |
|
---|
153 | <!-- The test suite still bombs out for me. I'll leave the instructions for it
|
---|
154 | here though. I didn't have the Dejavu font installed, but used one of the
|
---|
155 | ones installed by X. -->
|
---|
156 |
|
---|
157 | <para>
|
---|
158 | To test the results, issue: <command>make check 2>&1 >testlog</command>.
|
---|
159 | </para>
|
---|
160 |
|
---|
161 | <para>
|
---|
162 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
163 | </para>
|
---|
164 |
|
---|
165 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
166 |
|
---|
167 | <para revision="systemd">
|
---|
168 | Install the systemd unit by running the following command as the
|
---|
169 | <systemitem class="username">root</systemitem> user:
|
---|
170 | </para>
|
---|
171 |
|
---|
172 | <screen role="root" revision="systemd"><userinput>install -v -m644 utils/cups-browsed.service /lib/systemd/system/cups-browsed.service</userinput></screen>
|
---|
173 |
|
---|
174 | </sect2>
|
---|
175 |
|
---|
176 | <sect2 role="commands">
|
---|
177 | <title>Command Explanations</title>
|
---|
178 |
|
---|
179 | <para>
|
---|
180 | <parameter>--disable-avahi</parameter>: This switch is needed
|
---|
181 | if the optional <xref linkend="avahi"/> is not installed. Remove
|
---|
182 | it if avahi is installed and you need network printer discovery
|
---|
183 | capabilities.
|
---|
184 | </para>
|
---|
185 |
|
---|
186 | <para>
|
---|
187 | <parameter>--without-rcdir</parameter>: This switch disables
|
---|
188 | installation of the bundled bootscript which is not compatible
|
---|
189 | with BLFS.
|
---|
190 | </para>
|
---|
191 |
|
---|
192 | <para>
|
---|
193 | <parameter>--with-gs-path=/usr/bin/gs</parameter>: This switch
|
---|
194 | defines the path to the <application>GhostScript</application>
|
---|
195 | binary in case <xref linkend="gs"/> is not installed at build time.
|
---|
196 | </para>
|
---|
197 |
|
---|
198 | <para>
|
---|
199 | <parameter>--with-pdftops-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 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
205 | href="../../xincludes/static-libraries.xml"/>
|
---|
206 |
|
---|
207 | <para>
|
---|
208 | <command>make check 2>&1 >testlog</command>: The testsuite
|
---|
209 | dumps a stream of bytes into the input buffer after it finishes. Sending
|
---|
210 | the output to a file keeps the history usable, but some debug information
|
---|
211 | will still appear on the screen.
|
---|
212 | </para>
|
---|
213 |
|
---|
214 | <para>
|
---|
215 | <option>--with-test-path=<replaceable>VALUE</replaceable></option>: If you wish to run the tests, but
|
---|
216 | you do not have the default
|
---|
217 | <filename>/usr/share/fonts/dejavu/DejaVuSans.ttf</filename> use this switch
|
---|
218 | to specify where <filename>DejaVuSans.ttf</filename> (or perhaps some other
|
---|
219 | text TTF font - untested) is located.
|
---|
220 | </para>
|
---|
221 |
|
---|
222 | </sect2>
|
---|
223 |
|
---|
224 | <!-- TODO: Write a bootscript for cups-browsed -->
|
---|
225 |
|
---|
226 | <sect2 role="configuration" revision="systemd">
|
---|
227 | <title>Configuring CUPS Filters</title>
|
---|
228 |
|
---|
229 | <sect3 id="cups-filters-init">
|
---|
230 | <title>Systemd Units</title>
|
---|
231 |
|
---|
232 | <para>
|
---|
233 | To start the <command>cups-browsed</command> daemon at boot, enable
|
---|
234 | the previously installed systemd unit by running the following command
|
---|
235 | as the <systemitem class="username">root</systemitem> user:
|
---|
236 | </para>
|
---|
237 |
|
---|
238 | <indexterm zone="cups-filters cups-filters-init">
|
---|
239 | <primary sortas="f-cups-browsed">cups-browsed</primary>
|
---|
240 | </indexterm>
|
---|
241 |
|
---|
242 | <screen role="root"><userinput>systemctl enable cups-browsed</userinput></screen>
|
---|
243 |
|
---|
244 | </sect3>
|
---|
245 |
|
---|
246 | </sect2>
|
---|
247 |
|
---|
248 | <sect2 role="content">
|
---|
249 | <title>Contents</title>
|
---|
250 |
|
---|
251 | <segmentedlist>
|
---|
252 | <segtitle>Installed Programs</segtitle>
|
---|
253 | <segtitle>Installed Libraries</segtitle>
|
---|
254 | <segtitle>Installed Directories</segtitle>
|
---|
255 |
|
---|
256 | <seglistitem>
|
---|
257 | <seg>
|
---|
258 | cups-browsed, foomatic-rip (link) and ttfread
|
---|
259 | </seg>
|
---|
260 | <seg>
|
---|
261 | libcupsfilters.so and libfontembed.so
|
---|
262 | </seg>
|
---|
263 | <seg>
|
---|
264 | /usr/include/{cupsfilters,fontembed},
|
---|
265 | /usr/share/cups/{braille,charsets},
|
---|
266 | /usr/share/doc/cups-filters-&cups-filters-version; and
|
---|
267 | /usr/share/ppd/cupsfilters
|
---|
268 | </seg>
|
---|
269 | </seglistitem>
|
---|
270 | </segmentedlist>
|
---|
271 |
|
---|
272 | <variablelist>
|
---|
273 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
274 | <?dbfo list-presentation="list"?>
|
---|
275 | <?dbhtml list-presentation="table"?>
|
---|
276 |
|
---|
277 | <varlistentry id="cups-browsed">
|
---|
278 | <term><command>cups-browsed</command></term>
|
---|
279 | <listitem>
|
---|
280 | <para>
|
---|
281 | is a daemon for browsing the Bonjour and CUPS broadcasts of shared,
|
---|
282 | remote CUPS printers.
|
---|
283 | </para>
|
---|
284 | <indexterm zone="cups-filters cups-browsed">
|
---|
285 | <primary sortas="b-cups-browsed">cups-browsed</primary>
|
---|
286 | </indexterm>
|
---|
287 | </listitem>
|
---|
288 | </varlistentry>
|
---|
289 |
|
---|
290 | <varlistentry id="foomatic-rip">
|
---|
291 | <term><command>foomatic-rip</command></term>
|
---|
292 | <listitem>
|
---|
293 | <para>
|
---|
294 | is a universal print filter/RIP wrapper which can be used as CUPS
|
---|
295 | filter or stand-alone for spooler-less, direct printing.
|
---|
296 | </para>
|
---|
297 | <indexterm zone="cups-filters foomatic-rip">
|
---|
298 | <primary sortas="b-foomatic-rip">foomatic-rip</primary>
|
---|
299 | </indexterm>
|
---|
300 | </listitem>
|
---|
301 | </varlistentry>
|
---|
302 |
|
---|
303 | <varlistentry id="libcupsfilters">
|
---|
304 | <term><filename class="libraryfile">libcupsfilters.so</filename></term>
|
---|
305 | <listitem>
|
---|
306 | <para>
|
---|
307 | contains <application>CUPS Filters</application> API functions.
|
---|
308 | </para>
|
---|
309 | <indexterm zone="cups-filters libcupsfilters">
|
---|
310 | <primary sortas="c-libcupsfilters">libcupsfilters.so</primary>
|
---|
311 | </indexterm>
|
---|
312 | </listitem>
|
---|
313 | </varlistentry>
|
---|
314 |
|
---|
315 | </variablelist>
|
---|
316 |
|
---|
317 | </sect2>
|
---|
318 |
|
---|
319 | </sect1>
|
---|