Changeset c2bcc50 for pst/printing


Ignore:
Timestamp:
07/20/2014 04:09:40 PM (10 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.6-blfs, 7.6-systemd, kde5-14269, kde5-14686, systemd-13485
Children:
7abfb10
Parents:
d948da6
Message:

Convert cups and cups-filters to systemd.

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

Location:
pst/printing
Files:
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • pst/printing/cups-filters-systemd.xml

    rd948da6 rc2bcc50  
    151151<screen role="root"><userinput>make install</userinput></screen>
    152152
     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
    153160  </sect2>
    154161
     
    194201  </sect2>
    195202
    196 <!-- TODO: Write a bootscript for cups-browsed -->
     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>
    197224
    198225  <sect2 role="content">
  • pst/printing/cups-systemd.xml

    rd948da6 rc2bcc50  
    7979          Required patch:
    8080          <ulink url="&patch-root;/cups-&cups-version;-blfs-1.patch"/>
     81        </para>
     82      </listitem>
     83      <listitem>
     84        <para>
     85          Required patch:
     86          <ulink url="&patch-root;/cups-&cups-version;-socket_activation-1.patch"/>
    8187        </para>
    8288      </listitem>
     
    229235    introduce some difficulties with packaging -->
    230236<screen><userinput>patch -Np1 -i ../cups-&cups-version;-blfs-1.patch &amp;&amp;
     237patch -Np1 -i ../cups-&cups-version;-socket_activation-1.patch &amp;&amp;
    231238aclocal -I config-scripts &amp;&amp;
    232239autoconf -I config-scripts &amp;&amp;
     
    236243            --with-rcdir=/tmp/cupsinit        \
    237244            --with-docdir=/usr/share/cups/doc \
    238             --with-system-groups=lpadmin      &amp;&amp;
     245            --with-system-groups=lpadmin      \
     246            --with-systemdsystemunitdir=/lib/systemd/system &amp;&amp;
    239247make</userinput></screen>
    240248
     
    304312      that only <systemitem class="groupname">lpadmin</systemitem> will be used as
    305313      the <application>Cups</application> administrative group.
     314    </para>
     315
     316    <para>
     317      <parameter>--with-systemdsystemunitdir=/lib/systemd/system</parameter>:
     318      This switch is used to set the correct installation directory for
     319      systemd units.
    306320    </para>
    307321
     
    367381
    368382    <sect3 id="cups-init">
    369       <title>Boot Script</title>
     383      <title>Systemd Units</title>
    370384
    371385      <para>
    372         If you want the <application>Cups</application> print service to start
    373         automatically when the system is booted, install the init
    374         script included in the <xref linkend="bootscripts"/>
    375         package:
     386        To start the <command>cupsd</command> daemon when something tries to
     387        access it, enable the previously installed systemd units by running
     388        the following command as the
     389        <systemitem class="username">root</systemitem> user:
    376390      </para>
    377391
     
    380394      </indexterm>
    381395
    382 <screen role="root"><userinput>make install-cups</userinput></screen>
     396<screen role="root"><userinput>systemctl enable cups</userinput></screen>
    383397
    384398    </sect3>
  • pst/printing/printing.xml

    rd948da6 rc2bcc50  
    2020  or paper.</para>
    2121
    22   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="cups.xml"/>
    23   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="cups-filters.xml"/>
     22  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="cups-systemd.xml"/>
     23  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="cups-filters-systemd.xml"/>
    2424  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gs.xml"/>
    2525  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gutenprint.xml"/>
Note: See TracChangeset for help on using the changeset viewer.