summaryrefslogtreecommitdiff
path: root/graphics/libgphoto2/files/patch-camlibs:canon:usb.h
diff options
context:
space:
mode:
authorAndreas Klemm <andreas@FreeBSD.org>2003-10-20 17:49:40 +0000
committerAndreas Klemm <andreas@FreeBSD.org>2003-10-20 17:49:40 +0000
commit95849a2bcf9e37fbc169fa5da77953e62f295bf3 (patch)
treedfaff07b27ac4fb5daafe4ea77f4905f9d750855 /graphics/libgphoto2/files/patch-camlibs:canon:usb.h
parentClose a big security hole in the email2smssend(1) Perl script. (diff)
Fix to support Canon PowerShot G5
Situation: - The PTP2 driver doesn't work for G5 - The G3 driver can't be used a G5 - So the canon native driver has been tought the G5's id etc ... - Bumped port revision, since the G5 PTP2 support was in test status and the G5 canon native driver support - fixes G5 PTP2 flaws and - is kind of new functionality These patches have been sent to the gphoto devel team and have been included into CVS today. Since yestarday 2.1.3 has been releases this fix will show up in later versions of libgphoto. Note 1: when using gphoto --auto-detect unluckily the buggy PTP2 driver will be autodetected. You then have to choose manually the correct driver. Easiest way is to use digikam->Setup and to Choose driver called "Canon PowerShot G5 (normal mode)". Note 2: If you want to use digikam as non-root user, you have to tweak permissions of /dev/ugenX and /dev/ugenX.{1,2,3} I succeded by using the following commands which I put into /etc/rc.local, thanks to Poul-Henning Kamp: /sbin/devfs ruleset 10 /sbin/devfs rule applyset /sbin/devfs rule add path ugen1* mode 666 /sbin/devfs rule show A working solution for /etc/devfs.rules I didn't find yet. Approved by: portmgr@freebsd.org (Joe)
Diffstat (limited to '')
-rw-r--r--graphics/libgphoto2/files/patch-camlibs:canon:usb.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/libgphoto2/files/patch-camlibs:canon:usb.h b/graphics/libgphoto2/files/patch-camlibs:canon:usb.h
new file mode 100644
index 000000000000..c7a7ef14592d
--- /dev/null
+++ b/graphics/libgphoto2/files/patch-camlibs:canon:usb.h
@@ -0,0 +1,11 @@
+--- camlibs/canon/usb.h.orig Sun Aug 10 20:51:13 2003
++++ camlibs/canon/usb.h Mon Oct 20 10:17:57 2003
+@@ -38,7 +38,7 @@
+ * @CANON_USB_FUNCTION_GET_PIC_ABILITIES: Command to "get picture abilities", which
+ * seems to be a list of the different sizes and quality of images that are available on
+ * this camera. Not implemented (and will cause an error) on the EOS cameras
+- * or on newer PowerShot cameras such as the S45 and G3.
++ * or on newer PowerShot cameras such as the S45, G3 and G5.
+ * @CANON_USB_FUNCTION_GENERIC_LOCK_KEYS: Command to lock keys (and turn on "PC" indicator)
+ * on non-EOS cameras.
+ * @CANON_USB_FUNCTION_EOS_LOCK_KEYS: Lock keys (EOS cameras)