forked from freifunk-franken/firmware
To add new menu items in other packages we need a modular construction: - Simpel Babelweb - Layer 3 configuration and so on Every menu item needs a file in /www/menu/ssl/ with the content link,name - link is the name of the html file without extension (.html) - name is the text of the link in the webui While at it, rename "Password" menu item to German "Passwort". Signed-off-by: Christian Dresel <freifunk@dresel.systems> [bump PKG_RELEASE, use /www/menu, use script_file for link, improve use of class_active, commit message adjustments, improve variable names, keep HTML umlaut, keep Logout] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
44 lines
952 B
Makefile
44 lines
952 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=fff-web
|
|
PKG_RELEASE:=13
|
|
|
|
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/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)/
|
|
ifeq ($(CONFIG_PACKAGE_fff-nodewatcher),y)
|
|
ln -s ../../tmp/crawldata/node.data $(1)/www/public/node.data
|
|
endif
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|