uhttpd: update to latest git head - introduces support for multiple index files ...
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 15 Oct 2012 18:19:57 +0000 (18:19 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 15 Oct 2012 18:19:57 +0000 (18:19 +0000)
SVN-Revision: 33778

package/network/services/uhttpd/Makefile
package/network/services/uhttpd/files/uhttpd.init

index b2f0879ea056801faeeba4c040f0652841c3fe6c..555d50c3f22ab1c65e3de75f80380579f38c7fc5 100644 (file)
@@ -8,13 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=uhttpd
-PKG_VERSION:=2012-10-15
+PKG_VERSION:=2012-10-15.2
 PKG_RELEASE=$(PKG_SOURCE_VERSION)
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=git://nbd.name/uhttpd.git
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
-PKG_SOURCE_VERSION:=fa43d1a62864f912e4450affb9c86f3accbe026a
+PKG_SOURCE_VERSION:=d42932f9da6584c10d5d4bc7a41fa87817ac0677
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
 
index 379a9f5b5f7d5806d86fe12f335274dede6c2045..ad46d2c9b730ce6d72dbfdde47f4a268aa4371d7 100755 (executable)
@@ -59,7 +59,7 @@ start_instance()
 
        local cfg="$1"
        local realm="$(uci_get system.@system[0].hostname)"
-       local listen http https interpreter path
+       local listen http https interpreter indexes path
 
        append_arg "$cfg" home "-h"
        append_arg "$cfg" realm "-r" "${realm:-OpenWrt}"
@@ -71,7 +71,6 @@ start_instance()
        append_arg "$cfg" network_timeout "-T"
        append_arg "$cfg" tcp_keepalive "-A"
        append_arg "$cfg" error_page "-E"
-       append_arg "$cfg" index_page "-I"
        append_arg "$cfg" max_requests "-n" 3
 
        append_bool "$cfg" no_symlinks "-S" 0
@@ -88,6 +87,11 @@ start_instance()
                append UHTTPD_ARGS "-i $path"
        done
 
+       config_get indexes "$cfg" index_page
+       for path in $indexes; do
+               append UHTTPD_ARGS "-I $path"
+       done
+
        config_get https "$cfg" listen_https
        config_get UHTTPD_KEY  "$cfg" key  /etc/uhttpd.key
        config_get UHTTPD_CERT "$cfg" cert /etc/uhttpd.crt