1
0
mirror of https://github.com/falk-werner/webfused synced 2024-10-27 20:44:08 +00:00

added dependency to libconfig

This commit is contained in:
Falk Werner 2020-03-02 21:55:39 +01:00
parent f371fdaba9
commit 207f18f4fd
4 changed files with 41 additions and 0 deletions

View File

@ -24,6 +24,7 @@ addons:
- python3-setuptools - python3-setuptools
- python3-wheel - python3-wheel
- ninja-build - ninja-build
- libconfig-dev
before_install: before_install:

View File

@ -9,6 +9,7 @@ pkg_check_modules(FUSE3 REQUIRED fuse3)
pkg_check_modules(LWS REQUIRED libwebsockets) pkg_check_modules(LWS REQUIRED libwebsockets)
pkg_check_modules(JANSSON REQUIRED jansson) pkg_check_modules(JANSSON REQUIRED jansson)
pkg_check_modules(UUID REQUIRED uuid) pkg_check_modules(UUID REQUIRED uuid)
pkg_check_modules(LIBCONFIG REQUIRED libconfig)
pkg_check_modules(OPENSSL REQUIRED openssl) pkg_check_modules(OPENSSL REQUIRED openssl)
pkg_check_modules(WEBFUSE REQUIRED libwebfuse-adapter) pkg_check_modules(WEBFUSE REQUIRED libwebfuse-adapter)
@ -35,6 +36,7 @@ add_library(userdb STATIC
) )
target_include_directories(userdb PUBLIC target_include_directories(userdb PUBLIC
${LIBCONFIG_INCLUDE_DIRS}
${OPENSSL_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIRS}
${JANSSON_INCLUDE_DIRS} ${JANSSON_INCLUDE_DIRS}
) )
@ -48,6 +50,7 @@ add_executable(webfused
target_link_libraries(webfused PUBLIC target_link_libraries(webfused PUBLIC
userdb userdb
${LIBCONFIG_LIBRARIES}
${OPENSSL_LIBRARIES} ${OPENSSL_LIBRARIES}
${WEBFUSE_LIBRARIES} ${WEBFUSE_LIBRARIES}
${UUID_LIBRARIES} ${UUID_LIBRARIES}

View File

@ -22,6 +22,7 @@ To install dependecies, see below.
- [libwebsockets](https://libwebsockets.org/) - [libwebsockets](https://libwebsockets.org/)
- [jansson](https://github.com/akheron/jansson) - [jansson](https://github.com/akheron/jansson)
- [openssl](https://www.openssl.org/) - [openssl](https://www.openssl.org/)
- [libconfig](https://hyperrealm.github.io/libconfig/)
### Installing dependencies ### Installing dependencies
@ -76,3 +77,8 @@ To install libfuse, meson is needed. Please refer to [meson quick guide](https:/
cmake -DWITHOUT_TESTS=ON .. cmake -DWITHOUT_TESTS=ON ..
make make
sudo make install sudo make install
#### libconfig
sudo apt update
sudo apt install libconfig-dev

31
etc/webfused.conf Normal file
View File

@ -0,0 +1,31 @@
# Webfuse deamon configuration file
version = { major = 1, minor = 0 }
server:
{
vhost_name = "localhost"
port = 8080
# tls:
# {
# certificate = "/etc/webfused/cert.pem"
# key = "/etc/webfused/key.pem"
# }
# document_root = "/var/www"
}
authentication:
{
provider = "file"
settings:
{
file = "/etc/webfused/passwd"
}
}
filesystems:
(
{name = "test", mount_point = "/tmp" }
)