Gentoo Archives: gentoo-commits

From: Denis Reva <denis7774@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-fs/hubicfuse/
Date: Sun, 10 May 2020 16:58:09
Message-Id: 1589129864.8c7e43b9572388995d348062048de8e8c0b39bd1.RarogCmex@gentoo
1 commit: 8c7e43b9572388995d348062048de8e8c0b39bd1
2 Author: Denis Reva <denis7774 <AT> gmail <DOT> com>
3 AuthorDate: Sun May 10 16:57:44 2020 +0000
4 Commit: Denis Reva <denis7774 <AT> gmail <DOT> com>
5 CommitDate: Sun May 10 16:57:44 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8c7e43b9
7
8 net-fs/hubicfuse: n/p FUSE cloud mountpoing for hubiC
9
10 A FUSE application which provides access to hubiC's
11 cloud files via a mount-point
12
13 Package-Manager: Portage-2.3.99, Repoman-2.3.22
14 Signed-off-by: Denis Reva <denis7774 <AT> gmail.com>
15
16 net-fs/hubicfuse/Manifest | 1 +
17 net-fs/hubicfuse/hubicfuse-3.0.1.ebuild | 36 +++++++++++++++++++++++
18 net-fs/hubicfuse/metadata.xml | 51 +++++++++++++++++++++++++++++++++
19 3 files changed, 88 insertions(+)
20
21 diff --git a/net-fs/hubicfuse/Manifest b/net-fs/hubicfuse/Manifest
22 new file mode 100644
23 index 0000000..e2c0645
24 --- /dev/null
25 +++ b/net-fs/hubicfuse/Manifest
26 @@ -0,0 +1 @@
27 +DIST hubicfuse-3.0.1.tar.gz 94467 BLAKE2B c30561d9d35378d67666eaf663064bde082775c92e7fd018b57bcebd72939d82892534e62e506be34a2613fb3aa24bd402aa81e6f5e425b0b1922a49bbaf98b4 SHA512 39301395987c8e68c5de57361a6b1ce8c8cd58e3dfdf89b23ff9efd63900eb934261aab6df46d2cf73e4151b9815d1ebe4984cabd9145b83191835e6c4360e16
28
29 diff --git a/net-fs/hubicfuse/hubicfuse-3.0.1.ebuild b/net-fs/hubicfuse/hubicfuse-3.0.1.ebuild
30 new file mode 100644
31 index 0000000..d1fd3fa
32 --- /dev/null
33 +++ b/net-fs/hubicfuse/hubicfuse-3.0.1.ebuild
34 @@ -0,0 +1,36 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +DESCRIPTION="Support for mounting HubiC drive in GNU/Linux"
41 +HOMEPAGE="https://github.com/TurboGit/hubicfuse"
42 +SRC_URI="https://github.com/TurboGit/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +SLOT="0"
44 +
45 +LICENSE="LGPL-3"
46 +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86"
47 +IUSE="libressl"
48 +
49 +DEPEND="
50 + net-misc/curl
51 + !libressl? ( dev-libs/openssl:0= )
52 + libressl? ( dev-libs/libressl:0= )
53 + sys-fs/fuse:0
54 + sys-apps/file
55 + dev-libs/libxml2
56 + dev-libs/json-c
57 +"
58 +RDEPEND="${DEPEND}"
59 +
60 +DOCS=( README.md )
61 +
62 +src_install() {
63 + default
64 +
65 + dobin hubic_token
66 +
67 + ewarn "The hubiC service is now closed to new subscriptions:"
68 + ewarn "https://www.ovh.co.uk/subscriptions-hubic-ended/"
69 + ewarn "Make sure that you already have hubiC account."
70 +}
71
72 diff --git a/net-fs/hubicfuse/metadata.xml b/net-fs/hubicfuse/metadata.xml
73 new file mode 100644
74 index 0000000..b91fcbc
75 --- /dev/null
76 +++ b/net-fs/hubicfuse/metadata.xml
77 @@ -0,0 +1,51 @@
78 +<?xml version="1.0" encoding="UTF-8"?>
79 +<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
80 +<pkgmetadata>
81 + <maintainer type="person">
82 + <email>denis7774@×××××.com</email>
83 + <name>Reva Denis aka RarogCmex</name>
84 + </maintainer>
85 + <longdescription lang="en">
86 + A FUSE application which provides access to hubiC's cloud files via a mount-point.
87 +
88 + This version contains support for DLO, symlinks and support to see other tenant's containers.
89 + Those features are coming from https://github.com/LabAdvComp/cloudfuse
90 + USAGE
91 + Your hubiC Cloud configuration can be placed in a file named $HOME/.hubicfuse. All the following variables are required:
92 +
93 + client_id=[hubiC client id for the registered application]
94 + client_secret=[hubiC client secret for the registered application]
95 + refresh_token=[A refresh token you got from the script]
96 + Optional variables:
97 +
98 + get_extended_metadata=[true/false, force download of additional file metadata like atime and mtime on first directory list]
99 + curl_verbose=[true/false, enable verbose output for curl HTTP requests]
100 + curl_progress_state=[true/false, enable verbose progress output for curl HTTP requests. Used for debugging.]
101 + cache_statfs_timeout=[value in seconds, large timeout increases the file access speed]
102 + debug_level=[0 default, 1 extremely verbose for debugging purposes]
103 + enable_chmod=[true/false, false by default, still experimental feature]
104 + enable_chown=[true/false, false by default, still experimental feature]
105 + client_id and client_secret can be retrieved from the hubiC web interface
106 +
107 + The refresh_token can be obtained running the script provided (hubic_token) or with any
108 + other method you like if you follow the example at https://api.hubic.com/
109 +
110 + Then you can call hubicfuse:
111 +
112 + sudo hubicfuse /mnt/hubic -o noauto_cache,sync_read,allow_other
113 + And finaly, it can be set in /etc/fstab:
114 +
115 + hubicfuse /mnt/hubic fuse user,noauto 0 0
116 + It also inherits a number of command-line arguments and mount options from the Fuse framework.
117 + The "-h" argument should provide a summary.
118 +
119 + It is also possible to pass a custom hubicfuse settings file so that it is possible to mount multiple hubiC accounts:
120 +
121 + sudo hubicfuse /mnt/hubic1 -o noauto_cache,sync_read,allow_other,settings_filename=/root/hubic/account1.settings
122 + sudo hubicfuse /mnt/hubic2 -o noauto_cache,sync_read,allow_other,settings_filename=/root/hubic/account2.settings
123 + And finaly, in /etc/fstab :
124 +
125 + hubicfuse /mnt/hubic1 fuse user,noauto,settings_filename=/root/hubic/account1.settings 0 0
126 + hubicfuse /mnt/hubic2 fuse user,noauto,settings_filename=/root/hubic/account2.settings 0 0
127 + </longdescription>
128 +</pkgmetadata>