forked from freifunk-franken/firmware
Adrian Schmutzler
341d5cc57d
There might be scenarios where a user only needs the hood file, but no WebUI (e.g. for 4M devices and node firmware), or only the WebUI, but no hood file (e.g. layer3 firmware). This separates the HTTP server (section) for the hood file into a separate package fff-web-hood. The new package is then only added to the node firmware. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Robert Langhammer <rlanghammer@web.de> Acked-by: Christian Dresel <freifunk@dresel.systems>
36 lines
840 B
Makefile
36 lines
840 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=fff-web
|
|
PKG_RELEASE:=15
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/$(PKG_NAME)
|
|
SECTION:=base
|
|
CATEGORY:=Freifunk
|
|
TITLE:=Freifunk-Franken Webinterface
|
|
URL:=http://www.freifunk-franken.de
|
|
DEPENDS:=+uhttpd +libustream-mbedtls +haserl +px5g +fff-simple-tc \
|
|
+fff-boardname +fff-config +fff-network +fff-hoodutils \
|
|
+@BUSYBOX_CONFIG_WGET +@BUSYBOX_CONFIG_FEATURE_WGET_TIMEOUT
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/description
|
|
This is the Webinterface for the Freifunk Franken Firmware
|
|
endef
|
|
|
|
define Build/Compile
|
|
# nothing
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/install
|
|
$(CP) ./files/* $(1)/
|
|
ifeq ($(CONFIG_PACKAGE_fff-nodewatcher),y)
|
|
ln -s ../../tmp/crawldata/node.data $(1)/www/public/node.data
|
|
endif
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|