There is an ffp package for lighttpd but it was not compiled with webdav. The only way to add webdav support is to recompile lighttpd with
The most natural way to look for information on how to do that is by following the crosscompiling article at DNS323Wiki. A more junior colleague followed that, making sure that dependencies are built for the NAS’ architecture, but for some reason, there is a runtime linking problem. In particular, the error is “
undefined reference to '__deregister_frame_info'“.
I took a different approach by compiling from ffp sources. I used ffp 0.5 and used fonz’ post as a guide. This is what I did:
- Installed gcc ffp package. See ffp howto on how to do that.
- Retrieve ffp source. There at least two ways to do that:
- Install svn in local computer and check out from there then transfer source tree to NAS
- Install svn in NAS and check out from there
The command to check out the source tree is
svn co inreto.de/svn/dns323/funplug/trunk funplug
This will create a funplug subdirectory in the current directory. The funplug directory is versioned so subversion tricks like updating and log viewing are possible.
To save space or if this is just a one-time thing, your can export the source tree instead:
svn export inreto.de/svn/dns323/funplug/trunk funplug
This will create an unversioned directory which is smaller and cleaner (no .svn directories) but you can’t do subversion tricks.
- Go to the lighttpd source directory:
- Edit configure_args and add (append) the following lines at the end:
- Go up one directory and change to root:
cd .. su
- Retrieve source tarballs and build:
./Make.sh -F lighttpd ./Make.sh lighttpd
- Install built package located at
/ffp/sbin/funpkg -i ../packages/lighttpd*.gz
You may also download my built lighttpd 1.4.22 with webdav package but I haven’t tested it in other machines or in a vanilla installation.
Possibly useful references: