]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
buildroot: Add webdav support to lighttpd.
authorMarek Belisko <marek.belisko@open-nandra.com>
Thu, 3 Mar 2011 13:53:30 +0000 (14:53 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 1 Apr 2011 21:02:35 +0000 (23:02 +0200)
[Peter: needs host-pkg-config]
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/lighttpd/Config.in
package/lighttpd/lighttpd.mk

index b56d66b4cfda5230d97fa8ac2da0c748856b7aa3..49877e41818502497d3e95e56118c4f683b2d02d 100644 (file)
@@ -42,5 +42,13 @@ config BR2_PACKAGE_LIGHTTPD_PCRE
        help
          Enable PCRE support. Needed to support mod_rewrite
 
+config BR2_PACKAGE_LIGHTTPD_WEBDAV
+       bool "webdav"
+       depends on BR2_PACKAGE_LIGHTTPD
+       select BR2_PACKAGE_LIBXML2
+       select BR2_PACKAGE_SQLITE
+       help
+         Enable webdav support. Needed to support mod_webdav
+
 endmenu
 endif
index 67cd2724191ca899192d32d02f3be1d7929663b6..5901801536e374b4674f4d936872c3dacb2559f5 100644 (file)
@@ -6,7 +6,7 @@
 
 LIGHTTPD_VERSION = 1.4.28
 LIGHTTPD_SITE = http://download.lighttpd.net/lighttpd/releases-1.4.x
-
+LIGHTTPD_DEPENDENCIES = host-pkg-config
 LIGHTTPD_CONF_OPT = \
        --libdir=/usr/lib/lighttpd \
        --libexecdir=/usr/lib \
@@ -43,6 +43,13 @@ else
 LIGHTTPD_CONF_OPT += --without-pcre
 endif
 
+ifeq ($(BR2_PACKAGE_LIGHTTPD_WEBDAV),y)
+LIGHTTPD_DEPENDENCIES += libxml2 sqlite
+LIGHTTPD_CONF_OPT += --with-webdav-props --with-webdav-locks
+else
+LIGHTTPD_CONF_OPT += ---without-webdav-props --without-webdav-locks
+endif
+
 define LIGHTTPD_UNINSTALL_TARGET_CMDS
        rm -f $(TARGET_DIR)/usr/sbin/lighttpd
        rm -f $(TARGET_DIR)/usr/sbin/lighttpd-angel