lighttpd: enable mod_webdav module

genodelabs/genode#5093
This commit is contained in:
Josef Söntgen 2023-11-30 21:25:54 +00:00 committed by Christian Helmuth
parent 8a94dd2cb1
commit 840bb5f90d
5 changed files with 20 additions and 3 deletions

View File

@ -1 +1 @@
38aa0f93ad7cf9e5c35da09ff2a7f3adbd6e7b5f
6a9326a07968a5e7f637ec0720e7b4616e66149e

View File

@ -6,4 +6,4 @@ URL(lighttpd) := http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-$
SHA(lighttpd) := 816cbec71e8d02d874f1d5c798d76d091a76d5acbeb6e017ba76aeb4263d6995
DIR(lighttpd) := src/app/lighttpd
PATCHES := $(addprefix src/app/lighttpd/,fd_cloexec.patch)
PATCHES := $(addprefix src/app/lighttpd/,fd_cloexec.patch mod_webdav.patch)

View File

@ -0,0 +1,16 @@
Disable usage of linkat and unlinkat which is not (yet) support
in our libc.
--- src/app/lighttpd/src/mod_webdav.c
+++ src/app/lighttpd/src/mod_webdav.c
@@ -224,6 +224,10 @@
#endif
#endif
+#undef AT_FDCWD
+#undef _ATFILE_SOURCE
+
+
#ifndef AT_SYMLINK_NOFOLLOW
#define AT_SYMLINK_NOFOLLOW 0
#endif

View File

@ -3,3 +3,4 @@ PLUGIN_INIT(mod_dirlisting)
PLUGIN_INIT(mod_staticfile)
PLUGIN_INIT(mod_access)
PLUGIN_INIT(mod_openssl)
PLUGIN_INIT(mod_webdav)

View File

@ -53,7 +53,6 @@ FILTER_OUT := lempar.c lighttpd-angel.c lemon.c \
mod_vhostdb_ldap.c \
mod_vhostdb_mysql.c \
mod_vhostdb_pgsql.c \
mod_webdav.c \
mod_wolfssl.c \
mod_wstunnel.c
SRC_C = $(filter-out $(FILTER_OUT),$(notdir $(wildcard $(LIGHTTPD_DIR)/src/*.c)))
@ -81,6 +80,7 @@ CC_OPT += -DLIBRARY_DIR="\"/lib\""
CC_OPT += -DLIGHTTPD_STATIC
CC_OPT += -DHAVE_LIBSSL -DUSE_OPENSSL -DUSE_OPENSSL_CRYPTO
CC_OPT += -DMOD_WEBDAV_BUILD_MINIMAL
CC_WARN = -Wall -Wno-unused-variable -Wno-unused-function