![](https://secure.gravatar.com/avatar/df8330968b6df8cd1c1942c5fb4b720c.jpg?s=120&d=mm&r=g)
Author: jue Date: 2006-03-03 11:42:37 +0100 (Fri, 03 Mar 2006) New Revision: 869 Modified: crux-2.2/ports/opt/sane/.footprint crux-2.2/ports/opt/sane/Pkgfile crux-2.2/ports/opt/sane/README Log: sane: added locking again Modified: crux-2.2/ports/opt/sane/.footprint =================================================================== --- crux-2.2/ports/opt/sane/.footprint 2006-03-03 10:37:21 UTC (rev 868) +++ crux-2.2/ports/opt/sane/.footprint 2006-03-03 10:42:37 UTC (rev 869) @@ -399,3 +399,6 @@ -rw-r--r-- root/root usr/man/man8/saned.8.gz drwxr-xr-x root/root usr/sbin/ -rwxr-xr-x root/root usr/sbin/saned +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/lock/ +drwxrwxr-x root/scanner var/lock/sane/ Modified: crux-2.2/ports/opt/sane/Pkgfile =================================================================== --- crux-2.2/ports/opt/sane/Pkgfile 2006-03-03 10:37:21 UTC (rev 868) +++ crux-2.2/ports/opt/sane/Pkgfile 2006-03-03 10:42:37 UTC (rev 869) @@ -5,7 +5,7 @@ name=sane version=1.0.17 -release=1 +release=2 source=(ftp://ftp.sane-project.org/pub/$name/$name-backends-$version/$name-backends-$version.tar.gz) build () { @@ -14,12 +14,13 @@ ./configure --prefix=/usr \ --localstatedir=/var \ --disable-translations \ - --disable-locking + --enable-locking \ + --with-group=scanner make make prefix=$PKG/usr install - # hotplug scripts for USB scanners - install -d $PKG/etc/hotplug/usb + install -d $PKG/{etc/hotplug/usb,var/lock} + install -d -g scanner -m 775 $PKG/var/lock/sane install -m 755 tools/hotplug/libusbscanner $PKG/etc/hotplug/usb install -m 644 tools/hotplug/libsane.usermap $PKG/etc/hotplug/usb Modified: crux-2.2/ports/opt/sane/README =================================================================== --- crux-2.2/ports/opt/sane/README 2006-03-03 10:37:21 UTC (rev 868) +++ crux-2.2/ports/opt/sane/README 2006-03-03 10:42:37 UTC (rev 869) @@ -3,27 +3,25 @@ REQUIREMENTS PRE-INSTALL - -POST-INSTALL - 1. If you're using an USB scanner, create the group 'scanner' and add all users which need access to your device. - 2. To find the vendor/product id of your scanner, run the command: +POST-INSTALL + 1. To find the vendor/product id of your scanner, run the command: # sane-find-scanner -q found USB scanner (vendor=0x04a9 [Canon], product=0x2204 [CanoScan] at libusb:002:002 You need the 'vendor' id (0x04a9) and the 'product' id (0x2204) - 3. Check if /etc/hotplug/usb/libsane.usermap already knows about + 2. Check if /etc/hotplug/usb/libsane.usermap already knows about your scanner. If your scanner is not in this list, add a line like the following, remember to replace 0x04a9 and 0x2204 with your values: libusbscanner 0x0003 0x04a9 0x2204 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 - 4. Check the file permissions in /proc/bus/usb after you have plugged + 3. Check the file permissions in /proc/bus/usb after you have plugged in your scanner device. # ls -l /proc/bus/usb/001