new file mode 100644
@@ -0,0 +1,39 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=fff-web-hood
+PKG_RELEASE:=1
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/$(PKG_NAME)
+ SECTION:=base
+ CATEGORY:=Freifunk
+ TITLE:= Freifunk-Franken web server for hood file
+ URL:=http://www.freifunk-franken.de
+ DEPENDS:=+uhttpd
+endef
+
+define Package/$(PKG_NAME)/description
+ This is a tiny web server to serve the hoodfile for
+ other nodes
+endef
+
+define Build/Prepare
+ echo "all: " > $(PKG_BUILD_DIR)/Makefile
+endef
+
+define Build/Configure
+ # nothing
+endef
+
+define Build/Compile
+ # nothing
+endef
+
+define Package/$(PKG_NAME)/install
+ $(CP) ./files/* $(1)/
+endef
+
+$(eval $(call BuildPackage,$(PKG_NAME)))
new file mode 100644
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+uci batch <<EOF
+ delete uhttpd.main
+ delete uhttpd.public
+
+ set uhttpd.hood=uhttpd
+ add_list uhttpd.hood.listen_http='2342'
+ set uhttpd.hood.home='/www/hood'
+ set uhttpd.hood.rfc1918_filter='1'
+ set uhttpd.hood.network_timeout='30'
+ set uhttpd.hood.tcp_keepalive='1'
+ set uhttpd.hood.config='_'
+EOF
+
+uci commit uhttpd
+exit 0
This package provides the uhttpd webserver and the setup to share the hood file. By separating this, the firmware can be built without WebUI, but still capable of providing the hood file. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> --- src/packages/fff/fff-web-hood/Makefile | 39 +++++++++++++++++++ .../files/etc/uci-defaults/93-fff-web-hood | 17 ++++++++ .../fff/fff-web-hood/files/www/hood/.keep | 0 3 files changed, 56 insertions(+) create mode 100644 src/packages/fff/fff-web-hood/Makefile create mode 100644 src/packages/fff/fff-web-hood/files/etc/uci-defaults/93-fff-web-hood create mode 100644 src/packages/fff/fff-web-hood/files/www/hood/.keep diff --git a/src/packages/fff/fff-web-hood/files/www/hood/.keep b/src/packages/fff/fff-web-hood/files/www/hood/.keep new file mode 100644 index 00000000..e69de29b