From 18e74b6c8e70c0b401704ce89dff26ad2b2119c8 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Thu, 22 Oct 2009 10:17:45 +0000 Subject: [PATCH] ship adapted udev rules from F-12 on (#512516) don't require pam anymore --- sane-backends-1.0.20-rpath.patch | 4 +-- sane-backends-1.0.20-udev.patch | 38 +++++++++++++++++++++++++ sane-backends.spec | 48 ++++++++++++++++++++++++++++---- 3 files changed, 82 insertions(+), 8 deletions(-) create mode 100644 sane-backends-1.0.20-udev.patch diff --git a/sane-backends-1.0.20-rpath.patch b/sane-backends-1.0.20-rpath.patch index e2f34ef..3e564f9 100644 --- a/sane-backends-1.0.20-rpath.patch +++ b/sane-backends-1.0.20-rpath.patch @@ -1,8 +1,8 @@ -commit 1249be5ecbd635feeb880b2c60582b34bc04a798 +commit fe1456e2431a3b8bd27aadc5bbc6998ebc8cd00c Author: Nils Philippsen Date: Mon Aug 31 16:38:23 2009 +0200 - path: rpath + patch: rpath Squashed commit of the following: diff --git a/sane-backends-1.0.20-udev.patch b/sane-backends-1.0.20-udev.patch new file mode 100644 index 0000000..f87ecbe --- /dev/null +++ b/sane-backends-1.0.20-udev.patch @@ -0,0 +1,38 @@ +commit 5e153e8354ee1cba5d7cd4a532f671810186a6a1 +Author: Nils Philippsen +Date: Thu Oct 22 11:19:22 2009 +0200 + + patch: udev + + Squashed commit of the following: + + commit fe874d6f9873598e8bcd9201508bc2c89365e821 + Author: Nils Philippsen + Date: Thu Oct 22 11:16:16 2009 +0200 + + adapt generated udev rules for Fedora + +diff --git a/tools/sane-desc.c b/tools/sane-desc.c +index c317700..b6638a4 100644 +--- a/tools/sane-desc.c ++++ b/tools/sane-desc.c +@@ -3488,7 +3488,7 @@ print_udev (void) + printf ("SUBSYSTEMS!=\"scsi\", GOTO=\"libsane_scsi_rules_end\"\n\n"); + printf ("LABEL=\"libsane_scsi_rules_begin\"\n"); + printf ("# Generic: SCSI device type 6 indicates a scanner\n"); +- printf ("KERNEL==\"sg[0-9]*\", NAME=\"%%k\", ATTRS{type}==\"6\", MODE=\"%s\", GROUP=\"%s\"\n", DEVMODE, DEVGROUP); ++ printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"6\", ENV{libsane_matched}=\"yes\"\n"); + printf ("# Some scanners advertise themselves as SCSI device type 3\n"); + + while (scsiid) +@@ -3521,8 +3521,8 @@ print_udev (void) + } + } + printf ("\n"); +- printf ("KERNEL==\"sg[0-9]*\", NAME=\"%%k\", ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", MODE=\"%s\", GROUP=\"%s\"\n", +- scsiid->scsi_vendor_id, scsiid->scsi_product_id, DEVMODE, DEVGROUP); ++ printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", ENV{libsane_matched}=\"yes\"\n", ++ scsiid->scsi_vendor_id, scsiid->scsi_product_id); + scsiid = scsiid->next; + } + printf ("LABEL=\"libsane_scsi_rules_end\"\n\n"); diff --git a/sane-backends.spec b/sane-backends.spec index a67efdb..80ea27e 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -1,7 +1,21 @@ +# Use the following --with/--without