source: pst/printing/cups-filters-systemd.xml@ 10bb1a2

systemd-11177
Last change on this file since 10bb1a2 was 5992481e, checked in by Krejzi <krejzi@…>, 10 years ago

Convert cups and cups-filters to systemd.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@13512 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.6 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 "http://www.openprinting.org/download/cups-filters/cups-filters-&cups-filters-version;.tar.xz">
9 <!ENTITY cups-filters-download-ftp " ">
10 <!ENTITY cups-filters-md5sum "181ee0e6c27cfbb05e241f0267363678">
11 <!ENTITY cups-filters-size "1.3 MB">
12 <!ENTITY cups-filters-buildsize "32 MB (additional 2 MB for the tests)">
13 <!ENTITY cups-filters-time "0.4 SBU">
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 &lfs75_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 Download</bridgehead>
77 <itemizedlist spacing="compact">
78 <listitem>
79 <para>
80 Required patch:
81 <ulink url="&patch-root;/cups-filters-&cups-filters-version;-pdftoraster-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="php"/> (use of this might be broken) and
109 <ulink url="http://www.adobe.com/products/reader">acroread</ulink>
110 </para>
111
112 <bridgehead renderas="sect4">Required (Runtime)</bridgehead>
113 <para role="required runtime">
114 <xref linkend="gs"/> (Needed for PostScript printers), or
115 <xref linkend="gutenprint"/> (for supported printers),
116 or other printer drivers
117 </para>
118
119 <para condition="html" role="usernotes">
120 User Notes: <ulink url="&blfs-wiki;/cups-filters"/>
121 </para>
122 </sect2>
123
124 <sect2 role="installation">
125 <title>Installation of CUPS Filters</title>
126
127 <para>
128 Install <application>CUPS Filters</application> by running the following
129 commands:
130 </para>
131
132<screen><userinput>patch -Np1 -i ../cups-filters-&cups-filters-version;-pdftoraster-1.patch &amp;&amp;
133./configure --prefix=/usr \
134 --sysconfdir=/etc \
135 --localstatedir=/var \
136 --docdir=/usr/share/doc/cups-filters-&cups-filters-version; \
137 --without-rcdir \
138 --with-gs-path=/usr/bin/gs \
139 --with-pdftops-path=/usr/bin/gs \
140 --disable-static &amp;&amp;
141make</userinput></screen>
142
143 <para>
144 To test the results, issue: <command>make check 2&gt;&amp;1 &gt;testlog</command>.
145 </para>
146
147 <para>
148 Now, as the <systemitem class="username">root</systemitem> user:
149 </para>
150
151<screen role="root"><userinput>make install</userinput></screen>
152
153 <para>
154 Install the systemd unit by running the following command as the
155 <systemitem class="username">root</systemitem> user:
156 </para>
157
158<screen role="root"><userinput>install -v -m644 utils/cups-browsed.service /lib/systemd/system/cups-browsed.service</userinput></screen>
159
160 </sect2>
161
162 <sect2 role="commands">
163 <title>Command Explanations</title>
164
165 <para>
166 <parameter>--without-rcdir</parameter>: This switch disables
167 installation of the bundled bootscript which is not compatible
168 with BLFS.
169 </para>
170
171 <para>
172 <parameter>--with-gs-path=/usr/bin/gs</parameter>: This switch
173 defines the path to the <application>GhostScript</application>
174 binary in case <xref linkend="gs"/> is not installed at build time.
175 </para>
176
177 <para>
178 <parameter>--with-pdftops-path=/usr/bin/gs</parameter>: This switch
179 defines the path to the <application>GhostScript</application>
180 binary in case <xref linkend="gs"/> is not installed at build time.
181 </para>
182
183 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
184 href="../../xincludes/static-libraries.xml"/>
185
186 <para>
187 <command>make check 2&gt;&amp;1 &gt;testlog</command>: the testsuite
188 dumps a stream of bytes into the input buffer after it finishes. Sending
189 the output to a file keeps the history usable, but some debug information
190 will still appear on the screen.
191 </para>
192
193 <para>
194 <option>--with-test-path=<replaceable>VALUE</replaceable></option> : if you wish to run the tests, but
195 you do not have the default
196 <filename>/usr/share/fonts/dejavu/DejaVuSans.ttf</filename> use this switch
197 to specify where <filename>DejaVuSans.ttf</filename> (or perhaps some other
198 text TTF font - untested) is located.
199 </para>
200
201 </sect2>
202
203 <sect2 role="configuration">
204 <title>Configuring Cups Filters</title>
205
206 <sect3 id="cups-filters-init">
207 <title>Systemd Units</title>
208
209 <para>
210 To start the <command>cups-browsed</command> daemon at boot, enable
211 the previously installed systemd unit by running the following command
212 as the <systemitem class="username">root</systemitem> user:
213 </para>
214
215 <indexterm zone="cups-filters cups-filters-init">
216 <primary sortas="f-cups-browsed">cups-browsed</primary>
217 </indexterm>
218
219<screen role="root"><userinput>systemctl enable cups-browsed</userinput></screen>
220
221 </sect3>
222
223 </sect2>
224
225 <sect2 role="content">
226 <title>Contents</title>
227
228 <segmentedlist>
229 <segtitle>Installed Programs</segtitle>
230 <segtitle>Installed Libraries</segtitle>
231 <segtitle>Installed Directories</segtitle>
232
233 <seglistitem>
234 <seg>
235 ttfread and cups-browsed
236 </seg>
237 <seg>
238 libcupsfilters.so and libfontembed.so
239 </seg>
240 <seg>
241 /usr/include/cupsfilters,
242 /usr/include/fontembed,
243 /usr/lib/cups/backend,
244 /usr/lib/cups/filter,
245 /usr/share/cups/banners,
246 /usr/share/cups/charsets,
247 /usr/share/cups/data,
248 /usr/share/doc/cups-filters-&cups-filters-version; and
249 /usr/share/ppd/cupsfilters
250 </seg>
251 </seglistitem>
252 </segmentedlist>
253
254 <variablelist>
255 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
256 <?dbfo list-presentation="list"?>
257 <?dbhtml list-presentation="table"?>
258
259 <varlistentry id="libcupsfilters">
260 <term><filename class="libraryfile">libcupsfilters.so</filename></term>
261 <listitem>
262 <para>
263 contains <application>CUPS Filters</application> API functions.
264 </para>
265 <indexterm zone="cups-filters libcupsfilters">
266 <primary sortas="c-libcupsfilters">libcupsfilters.so</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 </variablelist>
272
273 </sect2>
274
275</sect1>
Note: See TracBrowser for help on using the repository browser.