summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Kursawe <phosphan@gentoo.org>2008-02-11 10:33:12 +0000
committerPatrick Kursawe <phosphan@gentoo.org>2008-02-11 10:33:12 +0000
commit4b08ba282da840c2fd1d7f65bcd1f67b32463b25 (patch)
treefed48cef6f2663c3ed6c3bbc877ee137d9f5962b /media-gfx/sane-backends/files
parentold (diff)
downloadgentoo-2-4b08ba282da840c2fd1d7f65bcd1f67b32463b25.tar.gz
gentoo-2-4b08ba282da840c2fd1d7f65bcd1f67b32463b25.tar.bz2
gentoo-2-4b08ba282da840c2fd1d7f65bcd1f67b32463b25.zip
sane-backends 1.0.19 is out.
(Portage version: 2.1.3.19)
Diffstat (limited to 'media-gfx/sane-backends/files')
-rw-r--r--media-gfx/sane-backends/files/udev-rule-5.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/media-gfx/sane-backends/files/udev-rule-5.patch b/media-gfx/sane-backends/files/udev-rule-5.patch
new file mode 100644
index 000000000000..6298539d4834
--- /dev/null
+++ b/media-gfx/sane-backends/files/udev-rule-5.patch
@@ -0,0 +1,33 @@
+--- tools/sane-desc.c 2008-02-07 09:09:16.000000000 +0100
++++ tools/sane-desc.c.new 2008-02-07 09:27:19.000000000 +0100
+@@ -3157,7 +3157,7 @@
+
+ printf
+ ("#\n"
+- "# udev rules file for supported USB devices\n"
++ "# udev rules file for supported USB and SCSI devices\n"
+ "#\n"
+ "# To add a USB device, add a rule to the list below between the\n"
+ "# LABEL=\"libsane_rules_begin\" and LABEL=\"libsane_rules_end\" lines.\n"
+@@ -3180,9 +3180,11 @@
+
+ print_udev_header ();
+ printf("ACTION!=\"add\", GOTO=\"libsane_rules_end\"\n"
++ "SUBSYSTEMS==\"scsi\", ATTRS{type}==\"3|6\", MODE=\"660\", GROUP=\"scanner\"\n"
+ "ENV{DEVTYPE}==\"usb_device\", GOTO=\"libsane_create_usb_dev\"\n"
+ "SUBSYSTEM==\"usb_device\", GOTO=\"libsane_rules_begin\"\n"
+- "SUBSYSTEM!=\"usb_device\", GOTO=\"libsane_rules_end\"\n"
++ "SUBSYSTEM!=\"usb|usb_device\", GOTO=\"libsane_rules_end\"\n"
++ "SUBSYSTEM==\"usb\", ENV{DEVTYPE}!=\"usb_device\" ,GOTO=\"libsane_rules_end\"\n"
+ "\n");
+
+ printf("# Kernel >= 2.6.22 jumps here\n"
+@@ -3226,7 +3228,7 @@
+ }
+ }
+ printf ("\n");
+- printf ("SYSFS{idVendor}==\"%s\", SYSFS{idProduct}==\"%s\", MODE=\"0664\", GROUP=\"scanner\", ENV{libsane_matched}=\"yes\"\n",
++ printf ("ATTRS{idVendor}==\"%s\", ATTRS{idProduct}==\"%s\", MODE=\"0664\", GROUP=\"scanner\", ENV{libsane_matched}=\"yes\"\n",
+ usbid->usb_vendor_id + 2, usbid->usb_product_id + 2);
+ usbid = usbid->next;
+ }