summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Kursawe <phosphan@gentoo.org>2004-06-17 16:04:35 +0000
committerPatrick Kursawe <phosphan@gentoo.org>2004-06-17 16:04:35 +0000
commita0eda6edbfe0c50f4cddb49168a4261186df56f2 (patch)
tree3d0708d6e3c08ecb7e0e1ce110859f392c104bb2 /media-gfx/sane-backends/files
parentadded patch from bug 54068 to make valgrind pic aware (diff)
downloadhistorical-a0eda6edbfe0c50f4cddb49168a4261186df56f2.tar.gz
historical-a0eda6edbfe0c50f4cddb49168a4261186df56f2.tar.bz2
historical-a0eda6edbfe0c50f4cddb49168a4261186df56f2.zip
The hotplug script should work for kernel >= 2.6.6 now
Diffstat (limited to 'media-gfx/sane-backends/files')
-rw-r--r--media-gfx/sane-backends/files/digest-sane-backends-1.0.14-r32
-rw-r--r--media-gfx/sane-backends/files/libusbscanner-device-r1.patch20
2 files changed, 22 insertions, 0 deletions
diff --git a/media-gfx/sane-backends/files/digest-sane-backends-1.0.14-r3 b/media-gfx/sane-backends/files/digest-sane-backends-1.0.14-r3
new file mode 100644
index 000000000000..3249e577723f
--- /dev/null
+++ b/media-gfx/sane-backends/files/digest-sane-backends-1.0.14-r3
@@ -0,0 +1,2 @@
+MD5 7ae5bf91aea34ef7956df6f53cf073bd sane-backends-1.0.14.tar.gz 3198777
+MD5 643de6a8321df8ef561170610b91b538 sane-backends-1.0.13-brothermfc-r1.patch.bz2 9727
diff --git a/media-gfx/sane-backends/files/libusbscanner-device-r1.patch b/media-gfx/sane-backends/files/libusbscanner-device-r1.patch
new file mode 100644
index 000000000000..ee1891bb411b
--- /dev/null
+++ b/media-gfx/sane-backends/files/libusbscanner-device-r1.patch
@@ -0,0 +1,20 @@
+--- tools/hotplug/libusbscanner 2004-05-10 08:28:34.537782880 +0200
++++ libusbscanner.new 2004-05-10 08:32:05.998691893 +0200
+@@ -13,6 +13,17 @@
+ # DEVICE=/proc/bus/usb/BBB/DDD
+ # TYPE=usb
+
++
++if [ -z "${DEVICE}" ] ; then
++ IF=$(echo ${DEVPATH} | sed 's:\(bus/usb/devices/\)\(.*\)-\(.*\):\2:')
++ if [ -r /sys/${DEVPATH}/devnum ]; then
++ DEV=$(cat /sys/${DEVPATH}/devnum)
++ else
++ DEV=1 # you'll have to adjust this manually for kernel < 2.6.6
++ fi
++ DEVICE=$(printf '/proc/bus/usb/%.03d/%.03d' ${IF} ${DEV})
++fi
++
+ if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
+ chown root:scanner "$DEVICE"
+ chmod 0660 "$DEVICE"