Index: general/general.ent
===================================================================
--- general/general.ent (revision 5a3b2adde8ec55f262483e2184468c7d4e99b824)
+++ general/general.ent (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
@@ -27,4 +27,5 @@
+
%openssl;
%pcre;
@@ -51,4 +52,5 @@
%LZO;
%libpcap;
+%libusb;
Index: general/genlib/genlib.xml
===================================================================
--- general/genlib/genlib.xml (revision 5a3b2adde8ec55f262483e2184468c7d4e99b824)
+++ general/genlib/genlib.xml (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
@@ -53,3 +53,4 @@
&LZO;
&libpcap;
+&libusb;
Index: general/genlib/libusb.xml
===================================================================
--- general/genlib/libusb.xml (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
+++ general/genlib/libusb.xml (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
@@ -0,0 +1,11 @@
+
+
+libusb-&libusb-version;
+
+&libusb-intro;
+&libusb-inst;
+&libusb-exp;
+&libusb-config;
+&libusb-desc;
+
+
Index: general/genlib/libusb/libusb-config.xml
===================================================================
--- general/genlib/libusb/libusb-config.xml (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
+++ general/genlib/libusb/libusb-config.xml (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
@@ -0,0 +1,48 @@
+
+Configuring libusb
+
+
+
+libusb requires the usbfs kernel filesystem to be mounted on
+/proc/bus/usb. Applications
+require the files in this directory to be accessible to the user,
+sometimes for both reading and writing.
+
+To restrict access to USB devices, create the
+usb group:
+
+groupadd -g 15 usb
+
+To get usbfs mounted on boot, we will create a special init script,
+because just putting an extra line into
+/etc/fstab does not work for those who compiled
+"USB device filesystem" as a kernel module. To do this,
+execute the following command:
+
+cat >/etc/rc.d/init.d/usb <<"EOF"
+#!/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
+EOF
+
+Give this script the appropriate permissions and
+make a symlink to run it at startup:
+chmod 755 /etc/rc.d/init.d/usb &&
+ln -s ../init.d/usb /etc/rc.d/rcsysinit.d/S90usb
+
+
Index: general/genlib/libusb/libusb-desc.xml
===================================================================
--- general/genlib/libusb/libusb-desc.xml (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
+++ general/genlib/libusb/libusb-desc.xml (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
@@ -0,0 +1,22 @@
+
+Contents
+
+The libusb package contains
+libusb libraries,
+the /usr/include/usb.h header,
+and a usb-config script.
+
+
+
+Description
+
+libusb libraries
+libusb libraries contain C functions for
+accessing USB hardware.
+
+usb-config
+The usb-config script provides the right
+compiler and linker flags for programs using
+this library.
+
+
Index: general/genlib/libusb/libusb-exp.xml
===================================================================
--- general/genlib/libusb/libusb-exp.xml (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
+++ general/genlib/libusb/libusb-exp.xml (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
@@ -0,0 +1,7 @@
+
+Command explanations
+
+--disable-build-docs: This switch turns off
+by default enabled building of documentation since it requires
+OpenJade.
+
Index: general/genlib/libusb/libusb-inst.xml
===================================================================
--- general/genlib/libusb/libusb-inst.xml (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
+++ general/genlib/libusb/libusb-inst.xml (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
@@ -0,0 +1,10 @@
+
+Installation of libusb
+
+Install libusb by running the following commands:
+
+./configure --prefix=/usr --disable-build-docs &&
+make &&
+make install
+
+
Index: general/genlib/libusb/libusb-intro.xml
===================================================================
--- general/genlib/libusb/libusb-intro.xml (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
+++ general/genlib/libusb/libusb-intro.xml (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
@@ -0,0 +1,21 @@
+
+Introduction to libusb
+
+The libusb package contains a library
+used by some applications for USB device access.
+
+Package information
+
+Download (HTTP):
+Download (FTP):
+Download size: &libusb-size;
+Estimated Disk space required: &libusb-buildsize;
+Estimated build time: &libusb-time;
+
+
+libusb dependencies
+Optional
+
+
+
+
Index: general/genlib/libusb/libusb.ent
===================================================================
--- general/genlib/libusb/libusb.ent (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
+++ general/genlib/libusb/libusb.ent (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
Index: introduction/welcome/changelog.xml
===================================================================
--- introduction/welcome/changelog.xml (revision 5a3b2adde8ec55f262483e2184468c7d4e99b824)
+++ introduction/welcome/changelog.xml (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
@@ -11,4 +11,7 @@
+
+May 10th, 2004 [igor]: Added libusb-0.1.8,
+contributed by Alexander E. Patrakov.
May 10th, 2004 [igor]: Updated to XSane-0.93,
Index: introduction/welcome/credits.xml
===================================================================
--- introduction/welcome/credits.xml (revision 5a3b2adde8ec55f262483e2184468c7d4e99b824)
+++ introduction/welcome/credits.xml (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
@@ -140,5 +140,5 @@
PHP: Jeremy Utley
-Gimp-Print: Alexander E. Patrakov
+Gimp-Print, libusb: Alexander E. Patrakov
fetchmail and wvdial: Paul Campbell
Index: pst/scanning/sane/sane-intro.xml
===================================================================
--- pst/scanning/sane/sane-intro.xml (revision 5a3b2adde8ec55f262483e2184468c7d4e99b824)
+++ pst/scanning/sane/sane-intro.xml (revision bdf5806e71b4b8e61f709d88a58ed03d40063bf8)
@@ -33,5 +33,5 @@
SANE dependencies
Optional
-libusb,
+,
libieee1284,
gPhoto2,