1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00
Go to file
2019-02-10 15:06:46 +01:00
.github/ISSUE_TEMPLATE Update issue templates 2019-02-03 11:33:32 +01:00
example project structure changed 2019-02-10 14:19:15 +01:00
include project structure changed 2019-02-10 14:19:15 +01:00
lib/wsfs project structure changed 2019-02-10 14:19:15 +01:00
test project structure changed 2019-02-10 14:19:15 +01:00
.gitignore switched tests to google test 2019-01-30 21:53:57 +01:00
.travis.yml enable build of example 2019-02-10 14:23:00 +01:00
AUTHORS added license and authors files 2019-01-27 03:52:29 +01:00
CMakeLists.txt provide installable library 2019-02-10 15:06:46 +01:00
COPYING.LESSER added license and authors files 2019-01-27 03:52:29 +01:00
README.md enable build of example 2019-02-10 14:23:00 +01:00

fuse-wsfs

fuse-wsfs combines libwebsockets and libfuse. It allows ot attach a remote filesystem via websockets.

Status: Proof of concept
Latest Build on travis: https://travis-ci.com/falk-werner/fuse-wsfs

Build and run

To install dependencies, see below.

cd fuse-wsfs
mkdir ./build
cd ./build
cmake -DWITH_EXAMPLE=ON -DWITH_TESTS=ON ..
make
CTEST_OUTPUT_ON_FAILUE=1 make test
mkdir test
./wsfs -m test --document_root=`realpath ../exmaple/www` --port=4711

Dependencies

Installation

libfuse

wget -O fuse-3.1.1.tar.gz https://github.com/libfuse/libfuse/archive/fuse-3.1.1.tar.gz
tar -xf fuse-3.1.1.tar.gz
cd libfuse-fuse-3.1.1
./makeconf.sh
./configure
make
sudo make install

libwebsockets

wget -O libwebsockets-3.1.0.tar.gz https://github.com/warmcat/libwebsockets/archive/v3.1.0.tar.gz
tar -xf libwebsockets-3.1.0.tar.gz
cd libwebsockets-3.1.0
mkdir .build
cd .build
cmake ..
make
sudo make install

Jansson

On many systems, libjansson can installed via apt:

sudo apt install libjansson-dev

Otherwise, it can be installed from source:

wget -O libjansson-2.12.tar.gz https://github.com/akheron/jansson/archive/v2.12.tar.gz
tar -xf libjansson-2.12.tar.gz
cd jansson-2.12
mkdir .build
cd .build
cmake ..
make
sudo make install

GoogleTest

Installation of GoogleTest is optional fuse-wsfs library, but required to compile tests.

wget -O gtest-1.8.1.tar.gz https://github.com/google/googletest/archive/release-1.8.1.tar.gz
tar -xf gtest-1.8.1.tar.gz
cd googletest-release-1.8.1
mkdir .build
cd .build
cmake ..
make
sudo make install