Package: scanbuttond
Version: 0.2.3.cvs20090713-5
Severity: minor
Tags: patch
User: [email protected]
Usertags: origin-ubuntu oneiric ubuntu-patch
In Ubuntu, the attached patch was applied to achieve the following:
* Apply patch from potter000 adding support for HP ScanJet 4500.
(LP: #675326)
Thanks for considering the patch.
-- System Information:
Debian Release: wheezy/sid
APT prefers oneiric-updates
APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500,
'oneiric-proposed'), (500, 'oneiric')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-7-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru scanbuttond-0.2.3.cvs20090713/debian/patches/hp4500.patch scanbuttond-0.2.3.cvs20090713/debian/patches/hp4500.patch
--- scanbuttond-0.2.3.cvs20090713/debian/patches/hp4500.patch 1969-12-31 19:00:00.000000000 -0500
+++ scanbuttond-0.2.3.cvs20090713/debian/patches/hp4500.patch 2011-07-28 08:49:45.000000000 -0400
@@ -0,0 +1,33 @@
+Description: Add support for HP ScanJet 4500
+Author: potter000
+Reviewed-by: Daniel T Chen <[email protected]>
+Origin: potter000, https://bugs.launchpad.net/ubuntu/+source/scanbuttond/+bug/675326/+attachment/1733623/+files/hp4500.patch
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/scanbuttond/+bug/675326
+Forwarded: no
+Last-Update: 2011-07-28
+
+--- ./backends/hp5590.c
++++ ./backends/hp5590.c
+@@ -27,11 +27,12 @@
+
+ static char* backend_name = "HP5590 USB";
+
+-#define NUM_SUPPORTED_USB_DEVICES 4
++#define NUM_SUPPORTED_USB_DEVICES 5
+
+ static int supported_usb_devices[NUM_SUPPORTED_USB_DEVICES][3] =
+ {
+ /* vendor, product, num_buttons */
++ { 0x03f0, 0x1205, 5 }, /* HP Scanjet 4500 */
+ { 0x03f0, 0x1305, 5 }, /* HP Scanjet 4570 */
+ { 0x03f0, 0x1305, 5 }, /* HP Scanjet 5550 */
+ { 0x03f0, 0x1705, 5 }, /* HP Scanjet 5590 */
+@@ -40,6 +41,7 @@
+
+ static char* usb_device_descriptions[NUM_SUPPORTED_USB_DEVICES][2] =
+ {
++ { "Hewlett-Packard", "ScanJet 4500" },
+ { "Hewlett-Packard", "ScanJet 4570" },
+ { "Hewlett-Packard", "ScanJet 5550" },
+ { "Hewlett-Packard", "Scanjet 5590" },
+
diff -Nru scanbuttond-0.2.3.cvs20090713/debian/patches/series scanbuttond-0.2.3.cvs20090713/debian/patches/series
--- scanbuttond-0.2.3.cvs20090713/debian/patches/series 2011-05-07 15:40:49.000000000 -0400
+++ scanbuttond-0.2.3.cvs20090713/debian/patches/series 2011-07-28 08:45:39.000000000 -0400
@@ -4,3 +4,4 @@
path-segfault.patch
buttonpressed-example.patch
debian-changes-0.2.3.cvs20090713-5
+hp4500.patch