[dcbd2c6] | 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 |
|
---|
[b26bc4c] | 7 | <!ENTITY cups-filters-download-http
|
---|
[4634c7a] | 8 | "https://www.openprinting.org/download/cups-filters/cups-filters-&cups-filters-version;.tar.xz">
|
---|
[dcbd2c6] | 9 | <!ENTITY cups-filters-download-ftp " ">
|
---|
[af532c1] | 10 | <!ENTITY cups-filters-md5sum "f6872e6d606be77ddd0f556386bd9cf6">
|
---|
[db6385b] | 11 | <!ENTITY cups-filters-size "1.4 MB">
|
---|
[8a3feaa] | 12 | <!ENTITY cups-filters-buildsize "42 MB (with tests), 15MB installed">
|
---|
[f4d79269] | 13 | <!ENTITY cups-filters-time "0.4 SBU (with tests)">
|
---|
[dcbd2c6] | 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 |
|
---|
[3ff1723] | 40 | &lfs90_checked;
|
---|
[dcbd2c6] | 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>
|
---|
[2f1053c] | 75 |
|
---|
[dcbd2c6] | 76 | <bridgehead renderas="sect3">CUPS Filters Dependencies</bridgehead>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 79 | <para role="required">
|
---|
| 80 | <xref linkend="cups"/>,
|
---|
[f473955b] | 81 | <xref linkend="glib2"/>,
|
---|
[4118724f] | 82 | <xref linkend="gs"/>,
|
---|
[9d8cb37] | 83 | <xref linkend="lcms2"/>,
|
---|
[4118724f] | 84 | <xref linkend="poppler"/>, and
|
---|
[9d8cb37] | 85 | <xref linkend="qpdf"/>
|
---|
[dcbd2c6] | 86 | </para>
|
---|
| 87 |
|
---|
| 88 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 89 | <para role="recommended">
|
---|
| 90 | <xref linkend="libjpeg"/>,
|
---|
[10cbf37] | 91 | <xref linkend="libpng"/>,
|
---|
| 92 | <xref linkend="libtiff"/> and
|
---|
[2f727d8f] | 93 | <xref linkend="mupdf"/> (mutool)
|
---|
[dcbd2c6] | 94 | </para>
|
---|
| 95 |
|
---|
| 96 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 97 | <para role="optional">
|
---|
[6a71920c] | 98 | <xref linkend="avahi"/>,
|
---|
[f5cdf41] | 99 | <xref linkend="dejavu-fonts"/> (required for the tests),
|
---|
[39555dd] | 100 | <!--<xref linkend="ijs"/>,-->
|
---|
[cad913e0] | 101 | <xref linkend="openldap"/>,
|
---|
[d42f02c6] | 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>
|
---|
[dcbd2c6] | 105 | </para>
|
---|
| 106 |
|
---|
[4118724f] | 107 | <bridgehead renderas="sect4">Optional printer drivers (runtime)</bridgehead>
|
---|
| 108 | <para role="optional">
|
---|
[f5cdf41] | 109 | <xref role="runtime" linkend="gutenprint"/> (for supported printers),
|
---|
| 110 | or other printer drivers, such as <ulink role="runtime"
|
---|
[23d2dc5] | 111 | url="http://sourceforge.net/projects/hplip/files/hplip/">hplip</ulink>
|
---|
[dcbd2c6] | 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 |
|
---|
[c480c33] | 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 |
|
---|
[dcbd2c6] | 129 | <para>
|
---|
| 130 | Install <application>CUPS Filters</application> by running the following
|
---|
| 131 | commands:
|
---|
| 132 | </para>
|
---|
[7b88d5a] | 133 |
|
---|
[4a1a7711] | 134 | <screen><userinput>./configure --prefix=/usr \
|
---|
[83dc192] | 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; &&
|
---|
[dcbd2c6] | 141 | make</userinput></screen>
|
---|
| 142 |
|
---|
[c480c33] | 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
|
---|
[3bb415b] | 145 | ones installed by X.
|
---|
| 146 | Version 1.16.0: test worked for me with "make check >testlog 2>&1",
|
---|
[747fcf5] | 147 | that is, the other way around. I have DejaVu fonts. Pierre L
|
---|
[83dc192] | 148 | With 1.17.2 (and DejaVu) the test output is clean, no need for a log. Ken
|
---|
| 149 |
|
---|
[db6385b] | 150 | Tests are clean for version 1.21.0 (and version 1.21.5): - Bruce
|
---|
[83dc192] | 151 | # TOTAL: 6
|
---|
| 152 | # PASS: 6
|
---|
| 153 | real 0m2.504s -->
|
---|
[c480c33] | 154 |
|
---|
[dcbd2c6] | 155 | <para>
|
---|
[4118724f] | 156 | To test the results, issue:
|
---|
[6213b66] | 157 | <!--<command>make check >testlog 2>&1</command>.-->
|
---|
[747fcf5] | 158 | <command>make check</command>. DejaVu fonts
|
---|
[4118724f] | 159 | are needed for the tests.
|
---|
[dcbd2c6] | 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 |
|
---|
[c480c33] | 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 |
|
---|
[dcbd2c6] | 175 | </sect2>
|
---|
| 176 |
|
---|
| 177 | <sect2 role="commands">
|
---|
| 178 | <title>Command Explanations</title>
|
---|
[10cbf37] | 179 | <!-- please comment this if no patches are currently needed -->
|
---|
[1c459bf2] | 180 | <!--<para>
|
---|
[10cbf37] | 181 | <parameter>patch -Np1 -i ../cups-filters-&cups-filters-version;-poppler71-1.patch</parameter>:
|
---|
[2f1053c] | 182 | Conditionally apply changes for recent versions of poppler.
|
---|
[1c459bf2] | 183 | </para>
|
---|
| 184 | Poppler-0.72.0, cups-filters-1.21.5 - no longer needed.-->
|
---|
[03a0a638] | 185 | <para>
|
---|
| 186 | <parameter>--disable-avahi</parameter>: This switch is needed
|
---|
| 187 | if the optional <xref linkend="avahi"/> is not installed. Remove
|
---|
| 188 | it if avahi is installed and you need network printer discovery
|
---|
| 189 | capabilities.
|
---|
| 190 | </para>
|
---|
| 191 |
|
---|
[cbda2a25] | 192 | <para>
|
---|
[d6da5da] | 193 | <parameter>--without-rcdir</parameter>: This switch disables
|
---|
| 194 | installation of the bundled bootscript which is not compatible
|
---|
| 195 | with BLFS.
|
---|
[cbda2a25] | 196 | </para>
|
---|
| 197 |
|
---|
[4118724f] | 198 | <!-- Those are hard dependencies now
|
---|
[dcbd2c6] | 199 | <para>
|
---|
[4118724f] | 200 | <parameter>- -with-gs-path=/usr/bin/gs</parameter>: This switch
|
---|
[dcbd2c6] | 201 | defines the path to the <application>GhostScript</application>
|
---|
| 202 | binary in case <xref linkend="gs"/> is not installed at build time.
|
---|
| 203 | </para>
|
---|
| 204 |
|
---|
| 205 | <para>
|
---|
[4118724f] | 206 | <parameter>- -with-pdftops-path=/usr/bin/gs</parameter>: This switch
|
---|
[dcbd2c6] | 207 | defines the path to the <application>GhostScript</application>
|
---|
| 208 | binary in case <xref linkend="gs"/> is not installed at build time.
|
---|
| 209 | </para>
|
---|
[4118724f] | 210 | -->
|
---|
[dcbd2c6] | 211 |
|
---|
[bfa09457] | 212 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 213 | href="../../xincludes/static-libraries.xml"/>
|
---|
[39555dd] | 214 | <!--
|
---|
[2f1053c] | 215 | <para>
|
---|
[39555dd] | 216 | <option>- -enable-ijs</option>: This switch will allow the pdftoijs
|
---|
[2f1053c] | 217 | filter, for sending PDFs to an HP InkJet Server, to be built.
|
---|
| 218 | </para>
|
---|
[39555dd] | 219 | -->
|
---|
[2f1053c] | 220 |
|
---|
[747fcf5] | 221 | <!--<para>
|
---|
[c480c33] | 222 | <command>make check 2>&1 >testlog</command>: The testsuite
|
---|
[8e1a075] | 223 | dumps a stream of bytes into the input buffer after it finishes. Sending
|
---|
| 224 | the output to a file keeps the history usable, but some debug information
|
---|
| 225 | will still appear on the screen.
|
---|
[747fcf5] | 226 | </para>-->
|
---|
[8e1a075] | 227 |
|
---|
[e519fef] | 228 | <!-- option seems to be obsolete - configure doesn't pick it up
|
---|
[8e1a075] | 229 | <para>
|
---|
[e519fef] | 230 | <option>- -with-test-path=<replaceable>VALUE</replaceable></option>: If you wish to run the tests, but
|
---|
[8e1a075] | 231 | you do not have the default
|
---|
| 232 | <filename>/usr/share/fonts/dejavu/DejaVuSans.ttf</filename> use this switch
|
---|
| 233 | to specify where <filename>DejaVuSans.ttf</filename> (or perhaps some other
|
---|
| 234 | text TTF font - untested) is located.
|
---|
| 235 | </para>
|
---|
[e519fef] | 236 | -->
|
---|
[8e1a075] | 237 |
|
---|
[dcbd2c6] | 238 | </sect2>
|
---|
| 239 |
|
---|
[cbda2a25] | 240 | <!-- TODO: Write a bootscript for cups-browsed -->
|
---|
| 241 |
|
---|
[c480c33] | 242 | <sect2 role="configuration" revision="systemd">
|
---|
| 243 | <title>Configuring CUPS Filters</title>
|
---|
| 244 |
|
---|
| 245 | <sect3 id="cups-filters-init">
|
---|
| 246 | <title>Systemd Units</title>
|
---|
| 247 |
|
---|
| 248 | <para>
|
---|
| 249 | To start the <command>cups-browsed</command> daemon at boot, enable
|
---|
| 250 | the previously installed systemd unit by running the following command
|
---|
| 251 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 252 | </para>
|
---|
| 253 |
|
---|
| 254 | <indexterm zone="cups-filters cups-filters-init">
|
---|
| 255 | <primary sortas="f-cups-browsed">cups-browsed</primary>
|
---|
| 256 | </indexterm>
|
---|
| 257 |
|
---|
| 258 | <screen role="root"><userinput>systemctl enable cups-browsed</userinput></screen>
|
---|
| 259 |
|
---|
| 260 | </sect3>
|
---|
| 261 |
|
---|
| 262 | </sect2>
|
---|
| 263 |
|
---|
[dcbd2c6] | 264 | <sect2 role="content">
|
---|
| 265 | <title>Contents</title>
|
---|
| 266 |
|
---|
| 267 | <segmentedlist>
|
---|
[cbda2a25] | 268 | <segtitle>Installed Programs</segtitle>
|
---|
[dcbd2c6] | 269 | <segtitle>Installed Libraries</segtitle>
|
---|
| 270 | <segtitle>Installed Directories</segtitle>
|
---|
| 271 |
|
---|
| 272 | <seglistitem>
|
---|
| 273 | <seg>
|
---|
[3bb415b] | 274 | cups-browsed, driverless (link), foomatic-rip (link) and ttfread
|
---|
[dcbd2c6] | 275 | </seg>
|
---|
| 276 | <seg>
|
---|
| 277 | libcupsfilters.so and libfontembed.so
|
---|
| 278 | </seg>
|
---|
| 279 | <seg>
|
---|
[7374e16] | 280 | /usr/include/{cupsfilters,fontembed},
|
---|
[82e07e67] | 281 | /usr/lib/cups/driver,
|
---|
[d42f02c6] | 282 | /usr/share/cups/{braille,charsets},
|
---|
[dcbd2c6] | 283 | /usr/share/doc/cups-filters-&cups-filters-version; and
|
---|
[7273ffc] | 284 | /usr/share/ppd/cupsfilters
|
---|
[dcbd2c6] | 285 | </seg>
|
---|
| 286 | </seglistitem>
|
---|
| 287 | </segmentedlist>
|
---|
| 288 |
|
---|
| 289 | <variablelist>
|
---|
| 290 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 291 | <?dbfo list-presentation="list"?>
|
---|
| 292 | <?dbhtml list-presentation="table"?>
|
---|
| 293 |
|
---|
[298fee30] | 294 | <varlistentry id="cups-browsed">
|
---|
| 295 | <term><command>cups-browsed</command></term>
|
---|
[7374e16] | 296 | <listitem>
|
---|
| 297 | <para>
|
---|
[298fee30] | 298 | is a daemon for browsing the Bonjour and CUPS broadcasts of shared,
|
---|
| 299 | remote CUPS printers.
|
---|
[7374e16] | 300 | </para>
|
---|
[298fee30] | 301 | <indexterm zone="cups-filters cups-browsed">
|
---|
| 302 | <primary sortas="b-cups-browsed">cups-browsed</primary>
|
---|
[7374e16] | 303 | </indexterm>
|
---|
| 304 | </listitem>
|
---|
| 305 | </varlistentry>
|
---|
| 306 |
|
---|
[298fee30] | 307 | <varlistentry id="foomatic-rip">
|
---|
| 308 | <term><command>foomatic-rip</command></term>
|
---|
[7374e16] | 309 | <listitem>
|
---|
| 310 | <para>
|
---|
[298fee30] | 311 | is a universal print filter/RIP wrapper which can be used as CUPS
|
---|
| 312 | filter or stand-alone for spooler-less, direct printing.
|
---|
[7374e16] | 313 | </para>
|
---|
[298fee30] | 314 | <indexterm zone="cups-filters foomatic-rip">
|
---|
| 315 | <primary sortas="b-foomatic-rip">foomatic-rip</primary>
|
---|
[7374e16] | 316 | </indexterm>
|
---|
| 317 | </listitem>
|
---|
| 318 | </varlistentry>
|
---|
| 319 |
|
---|
[dcbd2c6] | 320 | <varlistentry id="libcupsfilters">
|
---|
| 321 | <term><filename class="libraryfile">libcupsfilters.so</filename></term>
|
---|
| 322 | <listitem>
|
---|
| 323 | <para>
|
---|
| 324 | contains <application>CUPS Filters</application> API functions.
|
---|
| 325 | </para>
|
---|
| 326 | <indexterm zone="cups-filters libcupsfilters">
|
---|
| 327 | <primary sortas="c-libcupsfilters">libcupsfilters.so</primary>
|
---|
| 328 | </indexterm>
|
---|
| 329 | </listitem>
|
---|
| 330 | </varlistentry>
|
---|
| 331 |
|
---|
| 332 | </variablelist>
|
---|
| 333 |
|
---|
| 334 | </sect2>
|
---|
| 335 |
|
---|
| 336 | </sect1>
|
---|