Ignore:
Timestamp:
02/07/2013 09:05:35 PM (11 years ago)
Author:
Randy McMurchy <randy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
a162375
Parents:
558985f9
Message:

Minor modifications and added dependencies to the SANE instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11002 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pst/scanning/sane.xml

    r558985f9 r2b3ffa0  
    55  %general-entities;
    66
    7   <!ENTITY sane-be-download-http "http://alioth.debian.org/frs/?group_id=30186">
    8   <!ENTITY sane-be-download-ftp  "ftp://ftp2.sane-project.org/pub/sane/">
     7  <!-- <!ENTITY sane-be-download-http "http://alioth.debian.org/frs/?group_id=30186"> -->
     8  <!ENTITY sane-be-download-http " ">
     9  <!ENTITY sane-be-download-ftp  "ftp://ftp2.sane-project.org/pub/sane/sane-backends-&sane-version;.tar.gz">
    910  <!--<!ENTITY sane-be-download-ftp  "&gentoo-ftp-repo;/sane-backends-&sane-version;.tar.gz">-->
    10   <!ENTITY sane-be-md5sum        "e226a89c54173efea80e91e9a5eb6573">
     11  <!ENTITY sane-be-md5sum        "979c9dbb23920d04e322be23122c7de7">
    1112  <!ENTITY sane-be-size          "5.1 MB">
    1213  <!ENTITY sane-be-buildsize     "120 MB">
     
    3940
    4041    <para><application>SANE</application> is short for Scanner Access Now Easy.
    41     Scanner access, however, is far from easy, since every vendor has their own
     42    Scanner access; however, is far from easy, since every vendor has their own
    4243    protocols. The only known protocol that should bring some unity into this
    4344    chaos is the TWAIN interface, but this is too imprecise to allow a stable
     
    5152    &lfs72_checked;
    5253
     54    <!-- This note is not applicable. First, there is no issue downloading the
     55         ftp://ftp2.sane-project.org/pub/sane/sane-backends-1.0.23.tar.gz
     56         tarball with wget. Next, the combined tarball exists on the SANE FTP
     57         site, but the MD5sum is wrong. We can simply point the download to
     58         the SANE FTP site and create our own MD5sum (as we do on many packages).
     59
    5360    <note><para>The upstream web site uses a self signed security
    54     certificate.  If using <command>wget</command>, the option --no-check-certificate
     61    certificate.  If using <command>wget</command>, the option -no-check-certificate
    5562    needs to be added.</para>
    5663
     
    6067    the correct md5sum is located at <ulink
    6168    url="http://anduin.linuxfromscratch.org/sources/other/sane-backends-1.0.23.tar.gz">http://anduin.linuxfromscratch.org/sources/other/sane-backends-1.0.23.tar.gz</ulink>.</para></note>
     69    -->
    6270
    6371    <bridgehead renderas="sect3">Back Ends Package Information</bridgehead>
     
    118126    <bridgehead renderas="sect4">Optional (Back Ends)</bridgehead>
    119127    <para role="optional">
     128      <xref linkend="avahi"/>,
     129      <xref linkend="cups"/>,
    120130      <xref linkend="libjpeg"/>,
    121131      <xref linkend="libtiff"/>,
    122       <xref linkend="libusb-compat"/>,
     132      <xref linkend="libusb"/>,
     133      <ulink url="http://www.net-snmp.org/">Net-SNMP</ulink>,
    123134      <ulink url="http://cyberelk.net/tim/libieee1284/">libieee1284</ulink>,
    124       <ulink url="http://www.gphoto.org/">libgphoto2</ulink>, and
     135      <ulink url="http://www.gphoto.org/">libgphoto2</ulink>,
     136      <ulink url="http://linuxtv.org/downloads/v4l-utils/">Video4Linux</ulink>, and
    125137      <xref linkend="texlive"/>
    126138    </para>
     
    149161    drivers, a parallel port scanner needs parallel port support (you should
    150162    use enhanced EPP modes) and perhaps <ulink
    151     url="http://cyberelk.net/tim/libieee1284/">libieee1284</ulink> and a USB
     163    url="http://cyberelk.net/tim/libieee1284/">libieee1284</ulink>, and a USB
    152164    scanner will need the <xref linkend="libusb"/> package. Ensure you have
    153165    the necessary drivers properly configured to access the devices.</para>
     
    160172    <sect3>
    161173      <title>Installation of SANE Back Ends</title>
     174
     175      <note>
     176        <para>
     177          You may safely disregard any messages printed on the screen when you
     178          unpack the tarball.
     179        </para>
     180      </note>
    162181
    163182      <para>The <application>SANE</application> daemon should run with its own
     
    167186<screen><userinput>groupadd -g 70 scanner</userinput></screen>
    168187
    169       <note><para>The user building <application>SANE</application>-backends
    170       should be a member of the scanner group before proceeding.  The easiest
    171       way to ensure the system knows you have been added to a new group is to
    172       log out log in again.  You can check with the output of the
    173       <userinput>groups</userinput> command.</para></note>
     188      <note>
     189        <para>
     190          The user building <application>SANE</application>-backends should be
     191          a member of the <systemitem class="groupname">scanner</systemitem>
     192          group before proceeding. After you have added the user building the
     193          package to the <systemitem class="groupname">scanner</systemitem>
     194          group, issue the following command to create a new shell:
     195        </para>
     196
     197<screen><userinput>su $(whoami)</userinput></screen>
     198
     199        <para>
     200          Check the output of the <userinput>groups</userinput> command and
     201          ensure the user is a member of the
     202          <systemitem class="groupname">scanner</systemitem> group.
     203        </para>
     204      </note>
    174205
    175206      <para>Install <application>SANE</application>-backends by
    176207      running the following commands:</para>
    177208
    178 <screen><userinput>./configure --prefix=/usr        \
    179             --sysconfdir=/etc    \
    180             --with-group=scanner \
    181             --localstatedir=/var \
    182             --disable-latex &amp;&amp;
    183 make</userinput></screen>
    184 
    185       <para>This package does not come with a test suite.</para>
     209            <!-- Not sure why this was there as it works if TeX is installed
     210                 and it doesn't try to use it if TeX is not installed
     211                 -disable-latex &amp;&amp; -->
     212
     213<screen><userinput>./configure --prefix=/usr                                    \
     214            --sysconfdir=/etc                                \
     215            --localstatedir=/var                             \
     216            --with-docdir=/usr/share/doc/sane-backend-1.0.23 \
     217            --with-group=scanner                             &amp;&amp;
     218make                                                         &amp;&amp;
     219exit</userinput></screen>
     220
     221      <para>To test the results, issue: <command>make check</command>.</para>
    186222
    187223      <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
    188224
    189 <screen role="root"><userinput>make install &amp;&amp;
    190 install -m 644 -v tools/udev/libsane.rules /etc/udev/rules.d/65-scanner.rules</userinput></screen>
     225<screen role="root"><userinput>make install                                         &amp;&amp;
     226install -m 644 -v tools/udev/libsane.rules           \
     227                  /etc/udev/rules.d/65-scanner.rules &amp;&amp;
     228chgrp -v scanner  /var/lock/sane</userinput></screen>
    191229
    192230    </sect3>
     
    236274    instead of <filename class="directory">/usr/etc/sane.d</filename>.</para>
    237275
     276    <para><parameter>--with-group=scanner</parameter>: This parameter causes
     277    the directory created for the locking files to be group owned by the
     278    <systemitem class="groupname">scanner</systemitem> group instead of the
     279    default <systemitem class="groupname">uucp</systemitem> group.</para>
     280
     281    <para><command>exit</command>: This command is used to exit the shell
     282    created by the <command>su</command> command.</para>
    238283  </sect2>
    239284
Note: See TracChangeset for help on using the changeset viewer.