diff options
author | B. Watson <yalhcru@gmail.com> | 2011-08-26 19:14:16 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-08-26 19:14:16 -0300 |
commit | 18894ebd610a25353fcab0e38ffd261f21a10523 (patch) | |
tree | ea5755308e1acb665d30014109fcb731f6de2a28 /system/gphotofs | |
parent | edcad06d1d5fa7354648d2cdf4bb1a17e0e83a09 (diff) |
system/gphotofs: Added (FUSE filesystem for cameras)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'system/gphotofs')
-rw-r--r-- | system/gphotofs/README | 5 | ||||
-rw-r--r-- | system/gphotofs/README.fstab | 16 | ||||
-rw-r--r-- | system/gphotofs/gphotofs.1 | 174 | ||||
-rw-r--r-- | system/gphotofs/gphotofs.SlackBuild | 82 | ||||
-rw-r--r-- | system/gphotofs/gphotofs.info | 10 | ||||
-rw-r--r-- | system/gphotofs/slack-desc | 19 |
6 files changed, 306 insertions, 0 deletions
diff --git a/system/gphotofs/README b/system/gphotofs/README new file mode 100644 index 0000000000000..53fcc49f4e7bc --- /dev/null +++ b/system/gphotofs/README @@ -0,0 +1,5 @@ +gphotofs is a FUSE filesystem module to mount your camera as a filesystem +on Linux. This allow using your camera with any tool able to read from +a mounted filesystem. + +gphotofs was written by Philip Langdale. diff --git a/system/gphotofs/README.fstab b/system/gphotofs/README.fstab new file mode 100644 index 0000000000000..2dba5eaa10903 --- /dev/null +++ b/system/gphotofs/README.fstab @@ -0,0 +1,16 @@ +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 + +(This bit of documentation was borrowed from the Debian gphotofs package, +with thanks) + diff --git a/system/gphotofs/gphotofs.1 b/system/gphotofs/gphotofs.1 new file mode 100644 index 0000000000000..093c405873493 --- /dev/null +++ b/system/gphotofs/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. diff --git a/system/gphotofs/gphotofs.SlackBuild b/system/gphotofs/gphotofs.SlackBuild new file mode 100644 index 0000000000000..04c216e6f8ff8 --- /dev/null +++ b/system/gphotofs/gphotofs.SlackBuild @@ -0,0 +1,82 @@ +#!/bin/sh + +# Slackware build script for gphotofs + +# Written by B. Watson (yalhcru@gmail.com) + +PRGNAM=gphotofs +VERSION=${VERSION:-0.4.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +# Man page borrowed from Debian +mkdir -p $PKG/usr/man/man1 +gzip -9c $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING ChangeLog NEWS README $CWD/README.fstab \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/system/gphotofs/gphotofs.info b/system/gphotofs/gphotofs.info new file mode 100644 index 0000000000000..02c7cb1404ed7 --- /dev/null +++ b/system/gphotofs/gphotofs.info @@ -0,0 +1,10 @@ +PRGNAM="gphotofs" +VERSION="0.4.0" +HOMEPAGE="http://www.gphoto.org/proj/gphotofs/" +DOWNLOAD="http://downloads.sourceforge.net/gphoto/gphotofs-0.4.0.tar.bz2" +DOWNLOAD_x86_64="" +MD5SUM="42b63d839e7cff2a0e6b5413bed0530f" +MD5SUM_x86_64="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" +APPROVED="Niels Horn" diff --git a/system/gphotofs/slack-desc b/system/gphotofs/slack-desc new file mode 100644 index 0000000000000..99b94b60aaa72 --- /dev/null +++ b/system/gphotofs/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +gphotofs: gphotofs (FUSE filesystem for cameras) +gphotofs: +gphotofs: gphotofs is a FUSE filesystem module to mount your camera as a +gphotofs: filesystem on Linux. This allow using your camera with any tool able +gphotofs: to read from a mounted filesystem. +gphotofs: +gphotofs: gphotofs was written by Philip Langdale. +gphotofs: +gphotofs: +gphotofs: +gphotofs: |