--- gphotofs-0.4.0.orig/debian/copyright
+++ gphotofs-0.4.0/debian/copyright
@@ -0,0 +1,18 @@
+This package was debianized by Florian Ragwitz <rafl@debian.org> on
+Thu, 9 Feb 2006 17:01:51 +0100.
+
+It was downloaded from http://intr.overt.org/gphotofs
+
+Upstream author: Philip Langdale
+
+Copyright (C) 2005 Philip Langdale <philipl@mail.utexas.edu>
+
+License:
+
+This program can be distributed under the terms of the GNU GPL.
+
+On Debian systems, the complete text of the GNU General Public License can be
+found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is © 2009, Patrick Matthäi <pmatthaei@debian.org> and
+is licensed under the GPL, see above.
--- gphotofs-0.4.0.orig/debian/watch
+++ gphotofs-0.4.0/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/gphoto/gphotofs-(.*)\.tar\.gz
--- gphotofs-0.4.0.orig/debian/control
+++ gphotofs-0.4.0/debian/control
@@ -0,0 +1,22 @@
+Source: gphotofs
+Section: utils
+Priority: optional
+Maintainer: Patrick Matthäi <pmatthaei@debian.org>
+Build-Depends: cdbs, debhelper (>= 5), perl, libfuse-dev, libglib2.0-dev, libgphoto2-2-dev
+Standards-Version: 3.8.2
+Homepage: http://www.gphoto.org/proj/gphotofs/
+
+Package: gphotofs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, fuse-utils
+Description: filesystem to mount digital cameras
+ GPhotoFS is a filesystem client based on libgphoto2 that exposes
+ supported cameras as filesystems; while some cameras implement the USB
+ Mass Storage class and already appear as filesystems (making this
+ program redundant), many use the Picture Transfer Protocol (PTP) or
+ some other custom protocol. But as long as the camera is supported
+ by libgphoto2, it can be mounted as a filesystem using this program.
+ .
+ This package is based on the FUSE (filesystem in user space)
+ infra-structure of the Linux kernel and, therefore, does not require
+ any modifications to the kernel, apart from the fuse module.
--- gphotofs-0.4.0.orig/debian/docs
+++ gphotofs-0.4.0/debian/docs
@@ -0,0 +1,2 @@
+NEWS
+README
--- gphotofs-0.4.0.orig/debian/README.Debian
+++ gphotofs-0.4.0/debian/README.Debian
@@ -0,0 +1,9 @@
+gphotofs for Debian
+-------------------
+
+To be able to use gphotofs as a regular user it's suggested to add that user to
+the group `plugdev':
+
+ $ adduser <user> plugdev
+
+ -- Florian Ragwitz <rafl@debian.org> Sat, 02 Sep 2006 15:12:52 +0200
--- gphotofs-0.4.0.orig/debian/manpages
+++ gphotofs-0.4.0/debian/manpages
@@ -0,0 +1 @@
+debian/gphotofs.1
--- gphotofs-0.4.0.orig/debian/compat
+++ gphotofs-0.4.0/debian/compat
@@ -0,0 +1 @@
+5
--- gphotofs-0.4.0.orig/debian/rules
+++ gphotofs-0.4.0/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+build/gphotofs::
+ pod2man --section=1 --release="Debian Project" --center="Debian GNU/Linux manual" debian/gphotofs.pod debian/gphotofs.1
--- gphotofs-0.4.0.orig/debian/changelog
+++ gphotofs-0.4.0/debian/changelog
@@ -0,0 +1,76 @@
+gphotofs (0.4.0-3) unstable; urgency=low
+
+ * Add versioned build dependency on debhelper. Fixes lintian warning
+ package-lacks-versioned-build-depends-on-debhelper.
+
+ -- Patrick Matthäi <pmatthaei@debian.org> Thu, 13 Aug 2009 18:35:25 +0200
+
+gphotofs (0.4.0-2) unstable; urgency=low
+
+ * Add my own copyright for the Debian packaging.
+ * Bump Standards-Version to 3.8.2 (no changes needed).
+
+ -- Patrick Matthäi <pmatthaei@debian.org> Thu, 18 Jun 2009 08:58:37 +0200
+
+gphotofs (0.4.0-1) unstable; urgency=low
+
+ * New maintainer.
+ Closes: #523162
+ * New upstream release.
+ Closes: #469158
+ * Fix debian/watch.
+ * Add 01-readme-fstab-mount.patch from Tomas Pospisek, which adds some notes
+ to the packages README, how to mount a gphotofs about /etc/fstab.
+ Thanks for your contribution.
+ Closes: #440014
+
+ -- Patrick Matthäi <pmatthaei@debian.org> Sat, 25 Apr 2009 01:04:03 +0200
+
+gphotofs (0.3-2) unstable; urgency=low
+
+ * QA upload.
+ * debian/control:
+ + remove build dependency on debhelper.
+ + set maintainer to "Debian QA group".
+ + added additional information to the long description.
+ + added homepage field.
+ + bump Standards-Version to 3.8.1.
+ * debian/watch: create a new watchfile.
+
+ -- Rogério Brito <rbrito@ime.usp.br> Fri, 24 Apr 2009 08:20:08 -0300
+
+gphotofs (0.3-1) unstable; urgency=low
+
+ * New upstream release.
+ * Generate manpage from pod during build time.
+ + Build depend on perl.
+ * Apply (slightly modified) patch by Marvin Renich <mrvn@renich.org> to make
+ the manpage mention how to set up permissions as well (Closes: #385922).
+ * Suggest to add gphoto users to `plugdev' instead of `camera' in
+ README.Debian (Closes: #423666).
+ * Fix a typo in the package description (Closes: #408828).
+
+ -- Florian Ragwitz <rafl@debian.org> Sun, 22 Jul 2007 15:22:36 +0200
+
+gphotofs (0.2-3) unstable; urgency=low
+
+ * Added README.Debian which describes how to setup permissions properly
+ (Closes: #383561).
+ * Bump-up Standards-Version to 3.7.2.
+ * Use DH_COMPAT 5.
+
+ -- Florian Ragwitz <rafl@debian.org> Sat, 2 Sep 2006 15:35:48 +0200
+
+gphotofs (0.2-2) unstable; urgency=low
+
+ * Added fuse-utils to Depends as gphotofs executes fusermount.
+ Thanks to Pawel Parys <parys@mimuw.edu.pl> for pointing this out.
+
+ -- Florian Ragwitz <rafl@debian.org> Mon, 24 Apr 2006 17:52:46 +0200
+
+gphotofs (0.2-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Florian Ragwitz <rafl@debian.org> Thu, 9 Feb 2006 17:01:51 +0100
+
--- gphotofs-0.4.0.orig/debian/gphotofs.pod
+++ gphotofs-0.4.0/debian/gphotofs.pod
@@ -0,0 +1,55 @@
+=pod
+
+=head1 NAME
+
+gphotofs - filesystem to mount digital cameras
+
+=head1 DESCRIPTION
+
+GPhotoFS is a filesystem client based on libgphoto2 that exposes
+supported cameras as filesystems; while some cameras implement the
+USB Mass Storage class and already appear as filesystems (making
+this program redundant), many use the Picture Transfer Protocol (PTP)
+or some other custom protocol. But as long as the camera is supported
+by libgphoto2, it can be mounted as a filesystem using this program.
+
+As libgphoto2 is a userspace library for interacting with cameras,
+it is natural that if one to build a filesystem ontop of it, one
+should use FUSE, and that is what I have done.
+
+=head1 SYNOPSIS
+
+=over 2
+
+=item mounting
+
+ gphotofs <mountpoint>
+
+=item unmounting
+
+ fusermount -u <mountpoint>
+
+=back
+
+=head1 NOTES
+
+You must have permission to read and write the device. By default,
+devices recognized by libgphoto2 are created with read/write access for
+group "plugdev", so users must be added to this group to use GPhotoFS.
+
+=head1 LIMITATIONS
+
+GPhotoFS currently can't add or remove directories, rename files or
+directories, add or modify files and get space information.
+
+=head1 SEE ALSO
+
+L<fusermount(1)>
+
+=head1 AUTHOR
+
+This manpage was written by Florian Ragwitz E<lt>rafl@debian.orgE<gt> for the
+Debian GNU/Linux distribution, but may be used by others under the terms of the
+GNU General Public License version 2.
+
+=cut
--- gphotofs-0.4.0.orig/debian/gphotofs.1
+++ gphotofs-0.4.0/debian/gphotofs.1
@@ -0,0 +1,174 @@
+.\" Automatically generated by Pod::Man 2.1801 (Pod::Simple 3.05)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.ie \nF \{\
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. nr % 0
+. rr F
+.\}
+.el \{\
+. de IX
+..
+.\}
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "GPHOTOFS 1"
+.TH GPHOTOFS 1 "2009-04-24" "Debian Project" "Debian GNU/Linux manual"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+gphotofs \- filesystem to mount digital cameras
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+GPhotoFS is a filesystem client based on libgphoto2 that exposes
+supported cameras as filesystems; while some cameras implement the
+\&\s-1USB\s0 Mass Storage class and already appear as filesystems (making
+this program redundant), many use the Picture Transfer Protocol (\s-1PTP\s0)
+or some other custom protocol. But as long as the camera is supported
+by libgphoto2, it can be mounted as a filesystem using this program.
+.PP
+As libgphoto2 is a userspace library for interacting with cameras,
+it is natural that if one to build a filesystem ontop of it, one
+should use \s-1FUSE\s0, and that is what I have done.
+.SH "SYNOPSIS"
+.IX Header "SYNOPSIS"
+.IP "mounting" 2
+.IX Item "mounting"
+.Vb 1
+\& gphotofs <mountpoint>
+.Ve
+.IP "unmounting" 2
+.IX Item "unmounting"
+.Vb 1
+\& fusermount \-u <mountpoint>
+.Ve
+.SH "NOTES"
+.IX Header "NOTES"
+You must have permission to read and write the device. By default,
+devices recognized by libgphoto2 are created with read/write access for
+group \*(L"plugdev\*(R", so users must be added to this group to use GPhotoFS.
+.SH "LIMITATIONS"
+.IX Header "LIMITATIONS"
+GPhotoFS currently can't add or remove directories, rename files or
+directories, add or modify files and get space information.
+.SH "SEE ALSO"
+.IX Header "SEE ALSO"
+\&\fIfusermount\fR\|(1)
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+This manpage was written by Florian Ragwitz <rafl@debian.org> for the
+Debian GNU/Linux distribution, but may be used by others under the terms of the
+\&\s-1GNU\s0 General Public License version 2.
--- gphotofs-0.4.0.orig/debian/patches/01-readme-fstab-mount.patch
+++ gphotofs-0.4.0/debian/patches/01-readme-fstab-mount.patch
@@ -0,0 +1,25 @@
+diff -Naur gphotofs-0.4.0.orig/README gphotofs-0.4.0/README
+--- gphotofs-0.4.0.orig/README 2009-04-25 01:14:25.000000000 +0200
++++ gphotofs-0.4.0/README 2009-04-25 01:15:25.000000000 +0200
+@@ -49,6 +49,21 @@
+
+ fusermount -u <mountpoint>
+
++
++Alternatively you can put an entry into /etc/fstab (please adapt the
++mount options to your needs):
++
++ gphotofs /media/camera fuse users,rw,noauto,defaults 0 0
++
++Make sure in that case /media/camera exists:
++
++ [ -d /media/camera ] || mkdir /media/camera
++
++Now you should be able to mount your camera by simpy issuing:
++
++ mount /media/camera
++
++
+ Usage
+ -----
+