summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Glover <jmglov@gentoo.org>2007-06-24 03:53:27 +0000
committerJosh Glover <jmglov@gentoo.org>2007-06-24 03:53:27 +0000
commitebe160e331bf8b638762803db67539ee553d8f06 (patch)
tree46635103968be7f7df2967d0fea2c27a597a932e /sys-fs/flickrfs
parentStable on mips, per #175465. (diff)
downloadhistorical-ebe160e331bf8b638762803db67539ee553d8f06.tar.gz
historical-ebe160e331bf8b638762803db67539ee553d8f06.tar.bz2
historical-ebe160e331bf8b638762803db67539ee553d8f06.zip
This package was submitted by Gunnar Wrobel in bug #112550
Package-Manager: portage-2.1.2.7
Diffstat (limited to 'sys-fs/flickrfs')
-rw-r--r--sys-fs/flickrfs/ChangeLog10
-rw-r--r--sys-fs/flickrfs/Manifest24
-rw-r--r--sys-fs/flickrfs/files/digest-flickrfs-1.3.93
-rwxr-xr-xsys-fs/flickrfs/files/flickrfs5
-rw-r--r--sys-fs/flickrfs/files/flickrfs-1.3.9.patch138
-rw-r--r--sys-fs/flickrfs/flickrfs-1.3.9.ebuild37
-rw-r--r--sys-fs/flickrfs/metadata.xml9
7 files changed, 226 insertions, 0 deletions
diff --git a/sys-fs/flickrfs/ChangeLog b/sys-fs/flickrfs/ChangeLog
new file mode 100644
index 000000000000..3f8172c2b545
--- /dev/null
+++ b/sys-fs/flickrfs/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-fs/flickrfs
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/flickrfs/ChangeLog,v 1.1 2007/06/24 03:53:27 jmglov Exp $
+
+*flickrfs-1.3.9 (24 Jun 2007)
+
+ 24 Jun 2007; Josh Glover <jmglov@gentoo.org> +files/flickrfs-1.3.9.patch,
+ +files/flickrfs, +metadata.xml, +flickrfs-1.3.9.ebuild:
+ This package was submitted by Gunnar Wrobel in bug #112550
+
diff --git a/sys-fs/flickrfs/Manifest b/sys-fs/flickrfs/Manifest
new file mode 100644
index 000000000000..4eca7e47b685
--- /dev/null
+++ b/sys-fs/flickrfs/Manifest
@@ -0,0 +1,24 @@
+AUX flickrfs 171 RMD160 740323db61838a8a7e99a109edc5369e0643a268 SHA1 c2bd13f946ac9ccdb70349ee1a097c8530c508b8 SHA256 d678e9fd8b47739a68766193b4329a7fc0bc252ceaea748b886c8b7a59378d72
+MD5 602a0232925ae0fca78fc6a36e7c7f5b files/flickrfs 171
+RMD160 740323db61838a8a7e99a109edc5369e0643a268 files/flickrfs 171
+SHA256 d678e9fd8b47739a68766193b4329a7fc0bc252ceaea748b886c8b7a59378d72 files/flickrfs 171
+AUX flickrfs-1.3.9.patch 4630 RMD160 7bc6c2481bd2662b364cfa14f244e36fc1d5cc84 SHA1 50c046b2779769b54c7e7ab117e4b6c0172d194d SHA256 ef230a726712b1e27c08946402037708dcd01328a6b8fb2413dec8293441e91c
+MD5 bda90abb84b74fce9f395ec3c66ecadd files/flickrfs-1.3.9.patch 4630
+RMD160 7bc6c2481bd2662b364cfa14f244e36fc1d5cc84 files/flickrfs-1.3.9.patch 4630
+SHA256 ef230a726712b1e27c08946402037708dcd01328a6b8fb2413dec8293441e91c files/flickrfs-1.3.9.patch 4630
+DIST flickrfs-1.3.9.tar.gz 21312 RMD160 ca78299454c186be1add1ebbc3b719ec59b78787 SHA1 9f7cfeed57a4dc524217c6ecaad82d2f7c342f2d SHA256 97d919c60ac5b9c2932d9045718ca936e1f95b70a43206046a961d937ffeac2d
+EBUILD flickrfs-1.3.9.ebuild 786 RMD160 77c045c309169e5346ce01e1ff9dc9e98c080f7b SHA1 fdf2fa12737950cca1d06b62e427ecf353f10ecd SHA256 b584eeb503fe359d9d54ca4279efe6c47b56099ddca95333c1d6bcf9f0da339b
+MD5 07f8a41073f452d9d2a55170331f58fd flickrfs-1.3.9.ebuild 786
+RMD160 77c045c309169e5346ce01e1ff9dc9e98c080f7b flickrfs-1.3.9.ebuild 786
+SHA256 b584eeb503fe359d9d54ca4279efe6c47b56099ddca95333c1d6bcf9f0da339b flickrfs-1.3.9.ebuild 786
+MISC ChangeLog 430 RMD160 38183480e881dd118bf10f714a6300dad806fa03 SHA1 d1420ca30da58965300cba6db251a669ea52bd31 SHA256 a6d296e2f8b667f9416d8cfd42d0b57ead1bbbad555ec9d39b260e7c63fc9b47
+MD5 a5cfe220a83c220f9234f2f3d6783215 ChangeLog 430
+RMD160 38183480e881dd118bf10f714a6300dad806fa03 ChangeLog 430
+SHA256 a6d296e2f8b667f9416d8cfd42d0b57ead1bbbad555ec9d39b260e7c63fc9b47 ChangeLog 430
+MISC metadata.xml 716 RMD160 12efca96eabbf69cc9e4864d14d51024d0347812 SHA1 ae319735bc22f3a94340ac32c58383cbd75ec570 SHA256 50f32d223fae4a40b23a7838e0fdfa6c5bd71996cbec055313ed00b6b4d9ce3b
+MD5 7522ded61ee5ab90e39d067970e9f1c0 metadata.xml 716
+RMD160 12efca96eabbf69cc9e4864d14d51024d0347812 metadata.xml 716
+SHA256 50f32d223fae4a40b23a7838e0fdfa6c5bd71996cbec055313ed00b6b4d9ce3b metadata.xml 716
+MD5 580d84181bdae2b4492654680bcd2087 files/digest-flickrfs-1.3.9 241
+RMD160 224d009dc0d6a082e92e185516061ab2b741f7e0 files/digest-flickrfs-1.3.9 241
+SHA256 fb927cd9539fb222c58d9311d5353699092484163290fdaf99cec671f04892e9 files/digest-flickrfs-1.3.9 241
diff --git a/sys-fs/flickrfs/files/digest-flickrfs-1.3.9 b/sys-fs/flickrfs/files/digest-flickrfs-1.3.9
new file mode 100644
index 000000000000..4b93b3dbd272
--- /dev/null
+++ b/sys-fs/flickrfs/files/digest-flickrfs-1.3.9
@@ -0,0 +1,3 @@
+MD5 3a423880cb7a9e61b26bad2e830accf1 flickrfs-1.3.9.tar.gz 21312
+RMD160 ca78299454c186be1add1ebbc3b719ec59b78787 flickrfs-1.3.9.tar.gz 21312
+SHA256 97d919c60ac5b9c2932d9045718ca936e1f95b70a43206046a961d937ffeac2d flickrfs-1.3.9.tar.gz 21312
diff --git a/sys-fs/flickrfs/files/flickrfs b/sys-fs/flickrfs/files/flickrfs
new file mode 100755
index 000000000000..36597aadddc9
--- /dev/null
+++ b/sys-fs/flickrfs/files/flickrfs
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# Josh Glover <jmglov@wmalumni.com> - we need to use the old fuse-python
+# API until flickrfs is upgraded to use the new one
+FUSE_PYTHON_API=0.1 flickrfs.py $@
diff --git a/sys-fs/flickrfs/files/flickrfs-1.3.9.patch b/sys-fs/flickrfs/files/flickrfs-1.3.9.patch
new file mode 100644
index 000000000000..3ff20ab665b0
--- /dev/null
+++ b/sys-fs/flickrfs/files/flickrfs-1.3.9.patch
@@ -0,0 +1,138 @@
+diff -Naur --exclude='*.pyc' flickrapi.py.ORIG flickrapi.py
+--- flickrapi.py.ORIG 2007-06-17 23:37:13.000000000 +0900
++++ flickrapi.py 2007-06-17 23:37:40.000000000 +0900
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!python
+ #
+ # Flickr API implementation
+ #
+diff -Naur --exclude='*.pyc' flickrfs-1.3.9/flickrfs.conf flickrfs-1.3.9-mod/flickrfs.conf
+--- flickrfs.conf 1970-01-01 01:00:00.000000000 +0100
++++ flickrfs-1.3.9-mod/flickrfs.conf 2005-11-14 21:03:03.000000000 +0100
+@@ -0,0 +1,18 @@
++[USER]
++
++# for out-of-band auth inside a web browser
++browserName : /usr/bin/firefox
++
++
++#-------------------------------------------------------------------
++
++# It is not necessary to change these. They just identifies this as
++# this application as flickrfs so that flickr.com can track the
++# usage by different api's
++
++# API key
++flickrAPIKey : f8aa9917a9ae5e44a87cae657924f42d
++
++# shared "secret"
++flickrSecret : 3fbf7144be7eca28
++
+diff -Naur --exclude='*.pyc' flickrfs.py.ORIG flickrfs.py
+--- flickrfs.py.ORIG 2007-06-17 23:38:08.000000000 +0900
++++ flickrfs.py 2007-06-17 23:50:35.000000000 +0900
+@@ -1,3 +1,4 @@
++#!python
+ #===============================================================================
+ # flickrfs - Virtual Filesystem for Flickr
+ # Copyright (c) 2005,2006 Manish Rai Jain <manishrjain@gmail.com>
+@@ -23,7 +24,7 @@
+ import threading
+ import random, commands
+ from urllib2 import URLError
+-from transactions import TransFlickr
++from transactions import TransFlickr, read_config
+ import inodes
+
+ #Some global definitions and functions
+@@ -1075,6 +1076,12 @@
+
+
+ if __name__ == '__main__':
++
++ config = read_config()
++ flickrAPIKey = config.get('USER', 'flickrAPIKey')
++ flickrSecret = config.get('USER', 'flickrSecret')
++ browserName = config.get('USER', 'browserName')
++
+ try:
+ server = Flickrfs()
+ server.multithreaded = 1;
+diff -Naur --exclude='*.pyc' transactions.py.ORIG transactions.py
+--- transactions.py.ORIG 2007-06-24 12:03:35.946226309 +0900
++++ transactions.py 2007-06-24 12:22:09.546226308 +0900
+@@ -22,9 +22,22 @@
+ import os
+ import time
+
+-# flickr auth information
+-flickrAPIKey = "f8aa9917a9ae5e44a87cae657924f42d" # API key
+-flickrSecret = "3fbf7144be7eca28" # shared "secret"
++# Import ConfigParser
++from ConfigParser import ConfigParser
++
++def read_config(config_file = '/etc/flickrfs/flickrfs.conf'):
++ defaults = {
++ 'flickrAPIKey' : "f8aa9917a9ae5e44a87cae657924f42d", # API key
++ 'flickrSecret' : "3fbf7144be7eca28", # shared "secret"
++ 'browserName' : "/usr/bin/firefox",} # for out-of-band auth inside a web browser
++
++ config = ConfigParser(defaults)
++ config.add_section('USER')
++
++ if os.access(config_file, os.R_OK):
++ config.read(config_file)
++
++ return config
+
+ # Utility functions
+ def kwdict(**kw): return kw
+@@ -38,7 +51,13 @@
+ def __init__(self, logg, browserName):
+ global log
+ log = logg
+- self.fapi = FlickrAPI(flickrAPIKey, flickrSecret)
++
++ config = read_config()
++ self.flickrAPIKey = config.get('USER', 'flickrAPIKey')
++ self.flickrSecret = config.get('USER', 'flickrSecret')
++ self.browserName = config.get('USER', 'browserName')
++
++ self.fapi = FlickrAPI(self.flickrAPIKey, self.flickrSecret)
+ self.user_id = ""
+ # proceed with auth
+ # TODO use auth.checkToken function if available,
+@@ -302,7 +321,7 @@
+ return (bw['max'], bw['used'])
+
+ def getUserId(self):
+- rsp = self.fapi.auth_checkToken(api_key=flickrAPIKey,
++ rsp = self.fapi.auth_checkToken(api_key=self.flickrAPIKey,
+ auth_token=self.authtoken)
+ if not rsp:
+ log.error("Unable to get userid:" + rsp.errormsg)
+diff -Naur --exclude='*.pyc' flickrfs-1.3.9/setup.py flickrfs-1.3.9-mod/setup.py
+--- setup.py 1970-01-01 01:00:00.000000000 +0100
++++ flickrfs-1.3.9-mod/setup.py 2005-11-14 20:23:31.000000000 +0100
+@@ -0,0 +1,20 @@
++#!/usr/bin/env python
++
++import sys
++
++from distutils.core import setup
++
++# this affects the names of all the directories we do stuff with
++sys.path.insert(0, './')
++
++setup(name = 'flickrfs',
++ version = '1.3.9',
++ description = 'A virtual filesystem that provides easy access to flickr',
++ author = 'Manish Rai Jain',
++ author_email = 'manishrjain@gmail.com',
++ url = 'http://flickrfs.sourceforge.net/',
++ scripts = ['flickrfs.py'],
++ py_modules = ['flickrapi', 'inodes', 'transactions'],
++ data_files = [('/etc/flickrfs', ['flickrfs.conf'])],
++ license = 'GPL',
++ )
diff --git a/sys-fs/flickrfs/flickrfs-1.3.9.ebuild b/sys-fs/flickrfs/flickrfs-1.3.9.ebuild
new file mode 100644
index 000000000000..40abcdb49ee6
--- /dev/null
+++ b/sys-fs/flickrfs/flickrfs-1.3.9.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/flickrfs/flickrfs-1.3.9.ebuild,v 1.1 2007/06/24 03:53:27 jmglov Exp $
+
+inherit distutils eutils
+
+DESCRIPTION="Flickrfs is a virtual filesystem based upon FUSE that provides easy access to flickr."
+HOMEPAGE="http://manishrjain.googlepages.com/flickrfs"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+KEYWORDS="~x86"
+
+RDEPEND="
+ =dev-lang/python-2.4*
+ sys-fs/fuse-python
+ media-gfx/imagemagick"
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ unpack ${A} && cd ${S}
+
+ epatch ${FILESDIR}/${P}.patch
+}
+
+src_compile() {
+ distutils_src_compile
+}
+
+src_install() {
+ distutils_src_install
+
+ dobin ${FILESDIR}/flickrfs
+}
diff --git a/sys-fs/flickrfs/metadata.xml b/sys-fs/flickrfs/metadata.xml
new file mode 100644
index 000000000000..28a8b74c5522
--- /dev/null
+++ b/sys-fs/flickrfs/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>jmglov@gentoo.org</email>
+<name>Josh Glover</name>
+</maintainer>
+<longdescription>Flickrfs is a virtual filesystem which mounts on your linux machine like any other partition. Once mounted, it retrieves information about your photos hosted on your flickr account, and shows them as files. You can now easily copy photos from your local machine to this mount, and it will automatically upload them to your flickr account. Similary, you can copy the files from your mount to your local machine, and it will download your images from flickr.</longdescription>
+</pkgmetadata>