mirror of
https://abf.rosa.ru/djam/megafuse.git
synced 2025-02-23 16:52:46 +00:00
Imported from SRPM
This commit is contained in:
commit
89c76f5f8c
5 changed files with 127 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
sources:
|
||||||
|
MegaFuse-c2c35981f7f6be9e10b5ad571e4141996a5f5db8.zip: de4f1e95013866df2af233a1bd09f3afd29440a6
|
19
megabdb.patch
Normal file
19
megabdb.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
*** sdk/megabdb.cpp 2015-01-17 19:46:29.000000000 +0300
|
||||||
|
--- sdk/megabdb.cpp.new 2016-05-30 00:41:05.000000000 +0300
|
||||||
|
***************
|
||||||
|
*** 18,24 ****
|
||||||
|
|
||||||
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
! #include <db_cxx.h>
|
||||||
|
|
||||||
|
#include "mega.h"
|
||||||
|
#include "megaclient.h"
|
||||||
|
--- 18,24 ----
|
||||||
|
|
||||||
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
! #include <db52/db_cxx.h>
|
||||||
|
|
||||||
|
#include "mega.h"
|
||||||
|
#include "megaclient.h"
|
68
megafuse.spec
Normal file
68
megafuse.spec
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
%define oname MegaFuse
|
||||||
|
%define gitrev c2c35981f7f6be9e10b5ad571e4141996a5f5db8
|
||||||
|
%define datarev 20160605
|
||||||
|
|
||||||
|
Name: megafuse
|
||||||
|
Summary: Mount mega.nz
|
||||||
|
Version: 0.01
|
||||||
|
Release: 2.%{datarev}
|
||||||
|
License: GPLv2
|
||||||
|
URL: https://github.com/matteoserva/MegaFuse
|
||||||
|
Group: Networking/File transfer
|
||||||
|
Source0: %{oname}-%{gitrev}.zip
|
||||||
|
Patch0: megafuse.src.patch
|
||||||
|
Patch1: megaposix.src.patch
|
||||||
|
Patch2: megabdb.patch
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: pkgconfig(fuse)
|
||||||
|
BuildRequires: pkgconfig(openssl)
|
||||||
|
BuildRequires: pkgconfig(cryptopp)
|
||||||
|
BuildRequires: pkgconfig(libcurl)
|
||||||
|
BuildRequires: db52-devel
|
||||||
|
BuildRequires: freeimage-devel
|
||||||
|
BuildRequires: readline-devel
|
||||||
|
BuildRequires: systemd
|
||||||
|
|
||||||
|
Requires(post): systemd
|
||||||
|
Requires(preun): systemd
|
||||||
|
Requires(postun): systemd
|
||||||
|
|
||||||
|
%description
|
||||||
|
This is a linux client for the MEGA cloud storage provider.
|
||||||
|
It is based on FUSE and it allows to mount the remote cloud
|
||||||
|
drive on the local filesystem.
|
||||||
|
Once mounted, all linux program will see the cloud drive as
|
||||||
|
a normal folder.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -qn %{oname}-%{gitrev}
|
||||||
|
%patch -p0
|
||||||
|
%patch1 -p0
|
||||||
|
%patch2 -p0
|
||||||
|
|
||||||
|
sed -i -e "s/%{oname}/%{name}/g" %{name}.service %{name}@.service
|
||||||
|
|
||||||
|
%build
|
||||||
|
%make
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d %{buildroot}%{_bindir}
|
||||||
|
install -d %{buildroot}%{_unitdir}
|
||||||
|
install -d %{buildroot}/%{_sysconfdir}
|
||||||
|
install -Dm0755 %{oname} %{buildroot}%{_bindir}/%{name}
|
||||||
|
install -Dm0644 %{name}.service %{buildroot}%{_unitdir}/%{name}.service
|
||||||
|
install -Dm0644 %{name}@.service %{buildroot}%{_unitdir}/%{name}@.service
|
||||||
|
|
||||||
|
%post
|
||||||
|
%systemd_post %{name}@.service
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%systemd_preun %{name}@.servie
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%systemd_postun_with_restart %{name}@.service
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md LICENSE.txt FAQ.txt
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%{_unitdir}/%{name}*.service
|
19
megafuse.src.patch
Normal file
19
megafuse.src.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
*** src/MegaFuse.cpp 2015-01-17 19:46:29.000000000 +0300
|
||||||
|
--- src/MegaFuse.cpp.new 2016-05-28 01:34:39.000000000 +0300
|
||||||
|
***************
|
||||||
|
*** 12,18 ****
|
||||||
|
#include <termios.h>
|
||||||
|
#include "megaposix.h"
|
||||||
|
|
||||||
|
! #include <db_cxx.h>
|
||||||
|
#include "megabdb.h"
|
||||||
|
#include "MegaFuse.h"
|
||||||
|
MegaFuse::MegaFuse():running(true)
|
||||||
|
--- 12,18 ----
|
||||||
|
#include <termios.h>
|
||||||
|
#include "megaposix.h"
|
||||||
|
|
||||||
|
! #include <db52/db_cxx.h>
|
||||||
|
#include "megabdb.h"
|
||||||
|
#include "MegaFuse.h"
|
||||||
|
MegaFuse::MegaFuse():running(true)
|
19
megaposix.src.patch
Normal file
19
megaposix.src.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
*** src/megaposix.cpp 2015-01-17 19:46:29.000000000 +0300
|
||||||
|
--- src/megaposix.cpp.new 2016-05-28 01:35:49.000000000 +0300
|
||||||
|
***************
|
||||||
|
*** 39,45 ****
|
||||||
|
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
! #include <db_cxx.h>
|
||||||
|
|
||||||
|
#define USE_VARARGS
|
||||||
|
#define PREFER_STDARG
|
||||||
|
--- 39,45 ----
|
||||||
|
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
! #include <db52/db_cxx.h>
|
||||||
|
|
||||||
|
#define USE_VARARGS
|
||||||
|
#define PREFER_STDARG
|
Loading…
Add table
Reference in a new issue