cvs commit: BLFS/BOOK/pst/scanning/sane sane-intro.xml

igor at linuxfromscratch.org igor at linuxfromscratch.org
Mon May 10 07:58:36 PDT 2004


igor        04/05/10 08:58:36

  Modified:    BOOK/general general.ent
               BOOK/general/genlib genlib.xml
               BOOK/introduction/welcome changelog.xml credits.xml
               BOOK/pst/scanning/sane sane-intro.xml
  Added:       BOOK/general/genlib libusb.xml
               BOOK/general/genlib/libusb libusb-config.xml libusb-desc.xml
                        libusb-exp.xml libusb-inst.xml libusb-intro.xml
                        libusb.ent
  Log:
  added libusb, contributed by Alexander
  
  Revision  Changes    Path
  1.49      +2 -0      BLFS/BOOK/general/general.ent
  
  Index: general.ent
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/general/general.ent,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- general.ent	26 Mar 2004 05:27:37 -0000	1.48
  +++ general.ent	10 May 2004 14:58:36 -0000	1.49
  @@ -26,6 +26,7 @@
   <!ENTITY % STLport SYSTEM "genlib/stlport/stlport.ent">
   <!ENTITY % LZO SYSTEM "genlib/lzo/lzo.ent">
   <!ENTITY % libpcap SYSTEM "genlib/libpcap/libpcap.ent">
  +<!ENTITY % libusb SYSTEM "genlib/libusb/libusb.ent">
   %openssl;
   %pcre;
   %libxml;
  @@ -50,6 +51,7 @@
   %STLport;
   %LZO;
   %libpcap;
  +%libusb;
   
   <!-- Graphics Libraries -->
   <!ENTITY general-graphlib SYSTEM "graphlib/graphlib.xml">
  
  
  
  1.30      +1 -0      BLFS/BOOK/general/genlib/genlib.xml
  
  Index: genlib.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/general/genlib/genlib.xml,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- genlib.xml	7 May 2004 01:51:42 -0000	1.29
  +++ genlib.xml	10 May 2004 14:58:36 -0000	1.30
  @@ -52,4 +52,5 @@
   &gwrap;
   &LZO;
   &libpcap;
  +&libusb;
   </chapter>
  
  
  
  1.1                  BLFS/BOOK/general/genlib/libusb.xml
  
  Index: libusb.xml
  ===================================================================
  <sect1 id="libusb" xreflabel="libusb-&libusb-version;">
  <?dbhtml filename="libusb.html"?>
  <title>libusb-&libusb-version;</title>
  
  &libusb-intro;
  &libusb-inst;
  &libusb-exp;
  &libusb-config;
  &libusb-desc;
  
  </sect1>
  
  
  
  1.1                  BLFS/BOOK/general/genlib/libusb/libusb-config.xml
  
  Index: libusb-config.xml
  ===================================================================
  <sect2>
  <title>Configuring <application>libusb</application></title>
  
  <!-- To be reviewed when hotplug enters the LFS book -->
  
  <para>libusb requires the usbfs kernel filesystem to be mounted on
  <filename class="directory">/proc/bus/usb</filename>. Applications
  require the files in this directory to be accessible to the user,
  sometimes for both reading and writing.</para>
  
  <para>To restrict access to <acronym>USB</acronym> devices, create the
  usb group:</para>
  
  <screen><userinput><command>groupadd -g 15 usb</command></userinput></screen>
  
  <para>To get usbfs mounted on boot, we will create a special init script,
  because just putting an extra line into
  <filename>/etc/fstab</filename> does not work for those who compiled
  "USB device filesystem" as a kernel module. To do this,
  execute the following command:</para>
  
  <screen><userinput><command>cat >/etc/rc.d/init.d/usb <<"EOF"</command>
  #!/bin/sh
  # Begin $rc_base/init.d/usb
  
  . /etc/sysconfig/rc
  . $rc_functions
  
  modprobe usbcore 2>/dev/null || true
  # insert a modprobe command for your USB host adapter here, e.g.
  # modprobe ehci-hcd 2>/dev/null
  # Other host adapters are uhci-hcd and ohci-hcd
  # 2.4.x kernels have usb-ehci, usb-uhci, and usb-ohci modules
  if ( grep -q usbfs /proc/filesystems )
  then
  	echo "Mounting USB filesystem"
  	mount -o devgid=15,devmode=0660 -t usbfs usbfs /proc/bus/usb
  	evaluate_retval
  fi
  # End $rc_base/init.d/usb
  <command>EOF</command></userinput></screen>
  
  <para>Give this script the appropriate permissions and
  make a symlink to run it at startup:</para>
  <screen><userinput><command>chmod 755 /etc/rc.d/init.d/usb &&
  ln -s ../init.d/usb /etc/rc.d/rcsysinit.d/S90usb</command></userinput></screen>
  
  </sect2>
  
  
  
  1.1                  BLFS/BOOK/general/genlib/libusb/libusb-desc.xml
  
  Index: libusb-desc.xml
  ===================================================================
  <sect2>
  <title>Contents</title>
  
  <para>The <application>libusb</application> package contains
  <filename class="libraryfile">libusb</filename> libraries,
  the <filename>/usr/include/usb.h</filename> header,
  and a <command>usb-config</command> script.</para>
  
  </sect2>
  
  <sect2><title>Description</title>
  
  <sect3><title>libusb libraries</title>
  <para><filename class="libraryfile">libusb</filename> libraries contain C functions for
  accessing <acronym>USB</acronym> hardware.</para></sect3>
  
  <sect3><title>usb-config</title>
  <para>The <command>usb-config</command> script provides the right
  compiler and linker flags for programs using
  this library.</para></sect3>
  
  </sect2>
  
  
  
  1.1                  BLFS/BOOK/general/genlib/libusb/libusb-exp.xml
  
  Index: libusb-exp.xml
  ===================================================================
  <sect2>
  <title>Command explanations</title>
  
  <para><parameter>--disable-build-docs</parameter>: This switch turns off
  by default enabled building of documentation since it requires
  <application>OpenJade</application>.</para>
  </sect2>
  
  
  
  1.1                  BLFS/BOOK/general/genlib/libusb/libusb-inst.xml
  
  Index: libusb-inst.xml
  ===================================================================
  <sect2>
  <title>Installation of <application>libusb</application></title>
  
  <para>Install <application>libusb</application> by running the following commands:</para>
  
  <screen><userinput><command>./configure --prefix=/usr --disable-build-docs &&
  make &&
  make install</command></userinput></screen>
  
  </sect2>
  
  
  
  1.1                  BLFS/BOOK/general/genlib/libusb/libusb-intro.xml
  
  Index: libusb-intro.xml
  ===================================================================
  <sect2>
  <title>Introduction to <application>libusb</application></title>
  
  <para>The <application>libusb</application> package contains a library
  used by some applications for <acronym>USB</acronym> device access.</para>
  
  <sect3><title>Package information</title>
  <itemizedlist spacing='compact'>
  <listitem><para>Download (HTTP): <ulink url="&libusb-download-http;"/></para></listitem>
  <listitem><para>Download (FTP): <ulink url="&libusb-download-ftp;"/></para></listitem>
  <listitem><para>Download size: &libusb-size;</para></listitem>
  <listitem><para>Estimated Disk space required: &libusb-buildsize;</para></listitem>
  <listitem><para>Estimated build time: &libusb-time;</para></listitem></itemizedlist>
  </sect3>
  
  <sect3><title><application>libusb</application> dependencies</title>
  <sect4><title>Optional</title>
  <para><xref linkend="openjade"/></para></sect4>
  </sect3>
  
  </sect2>
  
  
  
  1.1                  BLFS/BOOK/general/genlib/libusb/libusb.ent
  
  Index: libusb.ent
  ===================================================================
  <!ENTITY libusb SYSTEM "../libusb.xml">
  <!ENTITY libusb-intro SYSTEM "libusb-intro.xml">
  <!ENTITY libusb-inst SYSTEM "libusb-inst.xml">
  <!ENTITY libusb-exp SYSTEM "libusb-exp.xml">
  <!ENTITY libusb-config SYSTEM "libusb-config.xml">
  <!ENTITY libusb-desc SYSTEM "libusb-desc.xml">
  <!ENTITY libusb-version "0.1.8">
  <!ENTITY libusb-download-http "http://umn.dl.sourceforge.net/sourceforge/libusb/libusb-&libusb-version;.tar.gz">
  <!ENTITY libusb-download-ftp " ">
  <!ENTITY libusb-size "314 KB">
  <!ENTITY libusb-buildsize "2.1 MB">
  <!ENTITY libusb-time "0.03 SBU">
  
  
  
  1.1127    +3 -0      BLFS/BOOK/introduction/welcome/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/introduction/welcome/changelog.xml,v
  retrieving revision 1.1126
  retrieving revision 1.1127
  diff -u -r1.1126 -r1.1127
  --- changelog.xml	10 May 2004 14:22:08 -0000	1.1126
  +++ changelog.xml	10 May 2004 14:58:36 -0000	1.1127
  @@ -11,6 +11,9 @@
   
   <itemizedlist>
   
  +<listitem><para>May 10th, 2004 [igor]: Added libusb-0.1.8,
  +contributed by Alexander E. Patrakov.</para></listitem>
  +
   <listitem><para>May 10th, 2004 [igor]: Updated to XSane-0.93,
   submitted by Alexander E. Patrakov.</para></listitem>
   
  
  
  
  1.175     +1 -1      BLFS/BOOK/introduction/welcome/credits.xml
  
  Index: credits.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/introduction/welcome/credits.xml,v
  retrieving revision 1.174
  retrieving revision 1.175
  diff -u -r1.174 -r1.175
  --- credits.xml	6 May 2004 19:04:28 -0000	1.174
  +++ credits.xml	10 May 2004 14:58:36 -0000	1.175
  @@ -139,7 +139,7 @@
   
   <listitem><para>PHP: <emphasis>Jeremy Utley</emphasis></para></listitem>
   
  -<listitem><para>Gimp-Print: <emphasis>Alexander E. Patrakov</emphasis></para></listitem>
  +<listitem><para>Gimp-Print, libusb: <emphasis>Alexander E. Patrakov</emphasis></para></listitem>
   
   <listitem><para>fetchmail and wvdial: <emphasis>Paul Campbell</emphasis></para>
   </listitem>
  
  
  
  1.13      +1 -1      BLFS/BOOK/pst/scanning/sane/sane-intro.xml
  
  Index: sane-intro.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/pst/scanning/sane/sane-intro.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- sane-intro.xml	30 Jan 2004 16:05:28 -0000	1.12
  +++ sane-intro.xml	10 May 2004 14:58:36 -0000	1.13
  @@ -32,7 +32,7 @@
                                                                                   
   <sect3><title><application><acronym>SANE</acronym></application> dependencies</title>
   <sect4><title>Optional</title>
  -<para><ulink url="http://libusb.sourceforge.net/">libusb</ulink>,
  +<para><xref linkend="libusb"/>,
   <ulink url="http://cyberelk.net/tim/libieee1284/">libieee1284</ulink>,
   <ulink url="http://www.gphoto.org/">gPhoto2</ulink>,
   <xref linkend="xfree86"/>, <xref linkend="GTK"/> and <xref
  
  
  



More information about the blfs-book mailing list