commit 89c76f5f8c93024a50176c671a857a78e70c2a59 Author: Sergey Zhemoitel Date: Wed Feb 8 20:25:52 2017 +0300 Imported from SRPM diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..3d814b7 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + MegaFuse-c2c35981f7f6be9e10b5ad571e4141996a5f5db8.zip: de4f1e95013866df2af233a1bd09f3afd29440a6 diff --git a/megabdb.patch b/megabdb.patch new file mode 100644 index 0000000..5395e9e --- /dev/null +++ b/megabdb.patch @@ -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 + +! #include + + #include "mega.h" + #include "megaclient.h" +--- 18,24 ---- + + #include + +! #include + + #include "mega.h" + #include "megaclient.h" diff --git a/megafuse.spec b/megafuse.spec new file mode 100644 index 0000000..b9708d1 --- /dev/null +++ b/megafuse.spec @@ -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 diff --git a/megafuse.src.patch b/megafuse.src.patch new file mode 100644 index 0000000..1be62ea --- /dev/null +++ b/megafuse.src.patch @@ -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 + #include "megaposix.h" + +! #include + #include "megabdb.h" + #include "MegaFuse.h" + MegaFuse::MegaFuse():running(true) +--- 12,18 ---- + #include + #include "megaposix.h" + +! #include + #include "megabdb.h" + #include "MegaFuse.h" + MegaFuse::MegaFuse():running(true) diff --git a/megaposix.src.patch b/megaposix.src.patch new file mode 100644 index 0000000..d76a29c --- /dev/null +++ b/megaposix.src.patch @@ -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 + +! #include + + #define USE_VARARGS + #define PREFER_STDARG +--- 39,45 ---- + + #include + +! #include + + #define USE_VARARGS + #define PREFER_STDARG