FreeBSD6.1: Lighttpd from ports with WebDAV
The current port of Lighttpd 1.4.13 (FreeBSD 6.1) doesn't support WebDAV. I'm not sure why the port has been left like this. Any way I applied this patch to the port and did some quick testing and it all seemed to work with MacOSX and Windows clients.
--- Makefile.orig Fri Jan 5 02:35:36 2007
+++ Makefile Fri Jan 5 02:47:45 2007
@@ -40,7 +40,8 @@
MYSQL "Enable MYSQL support" off \
OPENLDAP "Enable LDAP support" off \
OPENSSL "Enable SSL support" on \
- VALGRIND "Enable valgrind support" off
+ VALGRIND "Enable valgrind support" off \
+ WEBDAV "Enable WebDAV support" off
.include <bsd.port.pre.mk>
@@ -107,6 +108,12 @@
RUN_DEPENDS+= valgrind:${PORTSDIR}/devel/valgrind
CONFIGURE_ARGS+= --with-valgrind
.endif
+
+.if defined(WITH_WEBDAV)
+LIB_DEPENDS+= libuuid.1:${PORTSDIR}/misc/e2fsprogs-libuuid
+CONFIGURE_ARGS+= --with-webdav-props --with-webdav-locks
+.endif
+
SUB_LIST+= REQUIRE="${_REQUIRE}"
run
make config install clean

select WebDAV and sit back and watch. There is one glitch though. If you already have e2fsprogs-libuuid installed it may fail (I'm pretty sure I haven't patched the file correctly). Just make uninstall e2fsprogs-libuuid and run make install on lighttp again and it should all work. Now you've got lighttp with WebDAV on freebsd.
I've emailed the port maintainer to offer the patch. Ill update this if something changes.
Update: changed the diff format to unified