LUCI_CFLAGS:=
PKG_SELECTED_MODULES:=
+ifeq ($(BOARD),brcm-2.4)
+ MAKE_FLAGS += CRAP="1"
+endif
+
include $(INCLUDE_DIR)/package.mk
### Templates ###
define Package/luci/libtemplate
- SECTION:=admin
- CATEGORY:=Administration
+ SECTION:=luci
+ CATEGORY:=LuCI
TITLE:=LuCI - Lua Configuration Interface
URL:=http://luci.freifunk-halle.net/
MAINTAINER:=Steven Barth <steven-at-midlink-dot-org>
- SUBMENU:=LuCI Libraries
+ SUBMENU:=Libraries
DEPENDS:=+luci-core
endef
define Package/luci/fftemplate
$(call Package/luci/libtemplate)
- SUBMENU:=LuCI Freifunk Support
+ SUBMENU:=Freifunk
DEPENDS:=+luci-mod-freifunk
endef
-define Package/luci/httpdtemplate
- $(call Package/luci/libtemplate)
- SUBMENU:=LuCIttpd
- DEPENDS:=+luci-httpd
-endef
-
define Package/luci/i18ntemplate
$(call Package/luci/libtemplate)
- SUBMENU:=LuCI Translations
+ SUBMENU:=Translations
DEPENDS:=+luci-web
endef
define Package/luci/thtemplate
$(call Package/luci/libtemplate)
- SUBMENU:=LuCI Themes
+ SUBMENU:=Themes
DEPENDS:=+luci-web
endef
define Package/luci/webtemplate
$(call Package/luci/libtemplate)
- SUBMENU:=LuCI Components
+ SUBMENU:=Components
endef
config PACKAGE_luci-nixio_axtls
bool "Builtin (axTLS)"
- select PACKAGE_dropbear
- select PACKAGE_dropbearconvert
config PACKAGE_luci-nixio_cyassl
bool "CyaSSL"
-### HTTPD ###
-
-define Package/luci-httpd
- $(call Package/luci/httpdtemplate)
- DEPENDS:=+luci-http +libuci
- TITLE:=Server Core
-endef
-
-define Package/luci-httpd/install
- $(call Package/luci/install/template,$(1),libs/lucittpd)
-endef
-
-
-
### Community Packages ###
define Package/luci-freifunk-community
define Package/luci-mod-freifunk
$(call Package/luci/fftemplate)
- DEPENDS:=+luci-admin-full +luci-json
+ DEPENDS:=+luci-admin-full +luci-json +PACKAGE_luci-mod-freifunk:freifunk-firewall
TITLE:=LuCI Freifunk module
endef
define Package/luci-app-olsr
$(call Package/luci/webtemplate)
- DEPENDS+=+luci-admin-full +PACKAGE_luci-app-olsr:olsrd-luci +PACKAGE_luci-app-olsr:olsrd-luci-mod-txtinfo
+ DEPENDS+=+luci-admin-full +PACKAGE_luci-app-olsr:olsrd-luci \
+ +PACKAGE_luci-app-olsr:olsrd-luci-mod-txtinfo
TITLE:=OLSR configuration and status module
endef
define Package/luci-app-splash
$(call Package/luci/fftemplate)
- DEPENDS+=+PACKAGE_luci-app-splash:luci-nixio +PACKAGE_luci-app-splash:iptables-mod-nat-extra
+ DEPENDS+=+PACKAGE_luci-app-splash:luci-nixio \
+ +PACKAGE_luci-app-splash:tc +PACKAGE_luci-app-splash:kmod-sched \
+ +PACKAGE_luci-app-splash:iptables-mod-nat-extra \
+ +PACKAGE_luci-app-splash:iptables-mod-ipopt
TITLE:=Freifunk DHCP-Splash application
endef
$(call Package/luci/install/template,$(1),applications/luci-openvpn)
endef
+define Package/luci-app-p2pblock
+ $(call Package/luci/webtemplate)
+ TITLE:=LuCI Support for the Freifunk P2P-Block addon
+ DEPENDS+=+luci-admin-core +luci-app-firewall \
+ +PACKAGE_luci-app-p2pblock:freifunk-p2pblock
+endef
+
+define Package/luci-app-p2pblock/install
+ $(call Package/luci/install/template,$(1),applications/luci-p2pblock)
+endef
+
### Server Gateway Interfaces ###
PKG_SELECTED_MODULES+=libs/uvl
endif
-ifneq ($(CONFIG_PACKAGE_luci-httpd),)
- PKG_SELECTED_MODULES+=libs/lucittpd
-endif
-
ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
PKG_SELECTED_MODULES+=modules/admin-core
endif
ifneq ($(CONFIG_PACKAGE_luci-app-openvpn),)
PKG_SELECTED_MODULES+=applications/luci-openvpn
endif
+ifneq ($(CONFIG_PACKAGE_luci-app-p2pblock),)
+ PKG_SELECTED_MODULES+=applications/luci-p2pblock
+endif
ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
PKG_SELECTED_MODULES+=libs/sgi-luci
endif
-ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci),)
- PKG_SELECTED_MODULES+=libs/sgi-webuci
-endif
ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
PKG_SELECTED_MODULES+=themes/base
$(eval $(call BuildPackage,luci-web))
$(eval $(call BuildPackage,luci-uvl))
-$(eval $(call BuildPackage,luci-httpd))
-
$(eval $(call BuildPackage,luci-admin-core))
$(eval $(call BuildPackage,luci-admin-mini))
$(eval $(call BuildPackage,luci-admin-full))
$(eval $(call BuildPackage,luci-app-asterisk))
$(eval $(call BuildPackage,luci-app-polipo))
$(eval $(call BuildPackage,luci-app-openvpn))
+$(eval $(call BuildPackage,luci-app-p2pblock))
$(eval $(call BuildPackage,luci-sgi-cgi))