From 4b08ba282da840c2fd1d7f65bcd1f67b32463b25 Mon Sep 17 00:00:00 2001 From: Patrick Kursawe Date: Mon, 11 Feb 2008 10:33:12 +0000 Subject: sane-backends 1.0.19 is out. (Portage version: 2.1.3.19) --- media-gfx/sane-backends/files/udev-rule-5.patch | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 media-gfx/sane-backends/files/udev-rule-5.patch (limited to 'media-gfx/sane-backends/files') 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; + } -- cgit v1.2.3-65-gdbad