diff options
author | 2006-07-26 07:32:20 +0000 | |
---|---|---|
committer | 2006-07-26 07:32:20 +0000 | |
commit | 6016672c9da6580befeeb3bfd19b891488ca7fa5 (patch) | |
tree | 6d4fa5c07590646fbf742ce76f8c3763c2d54053 | |
parent | Digest update for released layman version. (diff) | |
parent | Removed dev-python category in testing (diff) | |
download | overlay-6016672c9da6580befeeb3bfd19b891488ca7fa5.tar.gz overlay-6016672c9da6580befeeb3bfd19b891488ca7fa5.tar.bz2 overlay-6016672c9da6580befeeb3bfd19b891488ca7fa5.zip |
Updated flickrfs ebuild
svn path=/stable/; revision=740
-rw-r--r-- | net-fs/flickrfs/Manifest | 16 | ||||
-rw-r--r-- | net-fs/flickrfs/files/digest-flickrfs-1.2.9 | 3 | ||||
-rw-r--r-- | net-fs/flickrfs/files/flickrfs-1.2.9.patch | 125 | ||||
-rw-r--r-- | net-fs/flickrfs/flickrfs-1.2.9.ebuild | 40 | ||||
-rw-r--r-- | net-fs/flickrfs/trac.BAK | 1 | ||||
-rw-r--r-- | sys-fs/fuse/trac.BAK | 1 |
6 files changed, 186 insertions, 0 deletions
diff --git a/net-fs/flickrfs/Manifest b/net-fs/flickrfs/Manifest new file mode 100644 index 0000000..040139b --- /dev/null +++ b/net-fs/flickrfs/Manifest @@ -0,0 +1,16 @@ +AUX flickrfs-1.2.9.patch 4157 RMD160 bbe5383981b86c60dee498255ee3eca9eea32512 SHA1 755ffd31b9c4dbf930873cc7bab375c39a17b794 SHA256 221f62839c5767d53b291361777cfcd9d601f5b989d46687834c3f7e41f41e07 +MD5 cb94006d683a5cbfd387860e0f335280 files/flickrfs-1.2.9.patch 4157 +RMD160 bbe5383981b86c60dee498255ee3eca9eea32512 files/flickrfs-1.2.9.patch 4157 +SHA256 221f62839c5767d53b291361777cfcd9d601f5b989d46687834c3f7e41f41e07 files/flickrfs-1.2.9.patch 4157 +DIST flickrfs-1.2.9.tar 71680 RMD160 3b6746bf88c170cfc94a47ad3e6c71e797cbf7c3 SHA1 8a827e87be5b54a68069713057334d8cd4961b1d SHA256 5a9b33e88489a60d34aca2e8acae3a35caca85303f7f97529637f7d93a57ed10 +EBUILD flickrfs-1.2.9.ebuild 710 RMD160 677979d6db391c90882a35ab2dd52ef83f574d32 SHA1 fbeae6eca990a080fea1f449d82fae02fcfb4753 SHA256 d3ebaf39241d15b2c312af607592648ebac6c47130c203f61fb021c865eaaed5 +MD5 9935a5266b634d2bfc26cca484916bd7 flickrfs-1.2.9.ebuild 710 +RMD160 677979d6db391c90882a35ab2dd52ef83f574d32 flickrfs-1.2.9.ebuild 710 +SHA256 d3ebaf39241d15b2c312af607592648ebac6c47130c203f61fb021c865eaaed5 flickrfs-1.2.9.ebuild 710 +MISC trac.BAK 13 RMD160 8876947e2d67d9d04aedb5673c5cd3ce5a7fe783 SHA1 e5e3d5d10139c32048bd471fbdd82191e9512c02 SHA256 282be19057fb646e31ce9544178a6e6e55a32b0bdcad7912db401741e39e6737 +MD5 96fc15ba67e3357e2d0f5620e46bbd3d trac.BAK 13 +RMD160 8876947e2d67d9d04aedb5673c5cd3ce5a7fe783 trac.BAK 13 +SHA256 282be19057fb646e31ce9544178a6e6e55a32b0bdcad7912db401741e39e6737 trac.BAK 13 +MD5 5d64cafedf819f5e1dae32710dea3a03 files/digest-flickrfs-1.2.9 232 +RMD160 318108a80f17ba16c4ee579569fa98e0c24686b2 files/digest-flickrfs-1.2.9 232 +SHA256 6e3cb8db222e22909d0c2de60721671da7729cee1a1c3f7c9f8379e8aacbd72a files/digest-flickrfs-1.2.9 232 diff --git a/net-fs/flickrfs/files/digest-flickrfs-1.2.9 b/net-fs/flickrfs/files/digest-flickrfs-1.2.9 new file mode 100644 index 0000000..f0f0551 --- /dev/null +++ b/net-fs/flickrfs/files/digest-flickrfs-1.2.9 @@ -0,0 +1,3 @@ +MD5 d1d2d8accbc1bee4251cd8b157218ab7 flickrfs-1.2.9.tar 71680 +RMD160 3b6746bf88c170cfc94a47ad3e6c71e797cbf7c3 flickrfs-1.2.9.tar 71680 +SHA256 5a9b33e88489a60d34aca2e8acae3a35caca85303f7f97529637f7d93a57ed10 flickrfs-1.2.9.tar 71680 diff --git a/net-fs/flickrfs/files/flickrfs-1.2.9.patch b/net-fs/flickrfs/files/flickrfs-1.2.9.patch new file mode 100644 index 0000000..c9ccabc --- /dev/null +++ b/net-fs/flickrfs/files/flickrfs-1.2.9.patch @@ -0,0 +1,125 @@ +diff -Naur flickrfs-1.2.9.orig/flickrapi.py flickrfs-1.2.9/flickrapi.py +--- flickrfs-1.2.9.orig/flickrapi.py 2006-05-26 02:57:08.000000000 +0200 ++++ flickrfs-1.2.9/flickrapi.py 2006-07-26 09:16:23.000000000 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!python + # + # Flickr API implementation + # +diff -Naur flickrfs-1.2.9.orig/flickrfs.conf flickrfs-1.2.9/flickrfs.conf +--- flickrfs-1.2.9.orig/flickrfs.conf 1970-01-01 01:00:00.000000000 +0100 ++++ flickrfs-1.2.9/flickrfs.conf 2006-07-26 09:16:23.000000000 +0200 +@@ -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 flickrfs-1.2.9.orig/flickrfs.py flickrfs-1.2.9/flickrfs.py +--- flickrfs-1.2.9.orig/flickrfs.py 2006-05-28 09:07:25.000000000 +0200 ++++ flickrfs-1.2.9/flickrfs.py 2006-07-26 09:28:28.000000000 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!python + #=============================================================================== + # flickrfs - Virtual Filesystem for Flickr + # Copyright (c) 2005 Manish Rai Jain <manishrjain@gmail.com> +@@ -18,7 +18,14 @@ + from errno import * + from stat import * + from traceback import format_exc ++ ++import fuse ++# Necessary for new python api to fuse ++# --G.Wrobel ++fuse.compat_0_1 = True ++ + from fuse import Fuse ++ + from flickrapi import FlickrAPI + import random + import commands +@@ -26,10 +33,8 @@ + + #Some global definitions and functions + DEFAULTBLOCKSIZE = 4*1024 #4KB +-# flickr auth information +-flickrAPIKey = "f8aa9917a9ae5e44a87cae657924f42d" # API key +-flickrSecret = "3fbf7144be7eca28" # shared "secret" +-browserName = "/usr/bin/firefox" # for out-of-band auth inside a web browser ++# Import ConfigParser ++from ConfigParser import ConfigParser + + #Set up the .flickfs directory. + homedir = os.getenv('HOME') +@@ -40,6 +45,19 @@ + # Remove previous metadata files from ~/.flickrfs + for a in glob(os.path.join(flickrfsHome, '.*')): + os.remove(os.path.join(flickrfsHome, a)) ++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 + + # Set up logging + log = logging.getLogger('flickrfs') +@@ -1214,6 +1232,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 flickrfs-1.2.9.orig/setup.py flickrfs-1.2.9/setup.py +--- flickrfs-1.2.9.orig/setup.py 1970-01-01 01:00:00.000000000 +0100 ++++ flickrfs-1.2.9/setup.py 2006-07-26 09:16:23.000000000 +0200 +@@ -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.1.9', ++ description = 'A virtual filesystem that provides easy access to flickr', ++ author = 'Manish Rai Jain', ++ author_email = 'manishrjain@gmail.com', ++ url = 'http://manishrjain.googlepages.com/flickrfs', ++ py_modules = ['flickrapi'], ++ scripts = ['flickrfs'], ++ data_files = [('/etc/flickrfs', ['flickrfs.conf'])], ++ license = 'GPL', ++ ) diff --git a/net-fs/flickrfs/flickrfs-1.2.9.ebuild b/net-fs/flickrfs/flickrfs-1.2.9.ebuild new file mode 100644 index 0000000..ef9ac78 --- /dev/null +++ b/net-fs/flickrfs/flickrfs-1.2.9.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit distutils eutils + +DESCRIPTION="Flickrfs is a virtual filesystem based upon FUSE that provides easy access to flickr." +HOMEPAGE="http://flickrfs.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +KEYWORDS="~x86" + +RDEPEND=" + =dev-lang/python-2.4* + dev-python/python-fuse" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${P}" + +src_unpack() { + unpack ${A} && cd ${S} + + epatch ${FILESDIR}/${P}.patch + + mv flickrfs.py flickrfs +} + +src_compile() { + distutils_src_compile +} + +src_install() { + distutils_src_install + + dodoc README test.py +} diff --git a/net-fs/flickrfs/trac.BAK b/net-fs/flickrfs/trac.BAK new file mode 100644 index 0000000..5f57005 --- /dev/null +++ b/net-fs/flickrfs/trac.BAK @@ -0,0 +1 @@ +BUG="112550" diff --git a/sys-fs/fuse/trac.BAK b/sys-fs/fuse/trac.BAK new file mode 100644 index 0000000..982c496 --- /dev/null +++ b/sys-fs/fuse/trac.BAK @@ -0,0 +1 @@ +NOTE="The new python language bindings only work with the cvs version of fuse." |