PKG_SOURCE_VERSION:=$(PKG_REV)
endif
+PKG_BUILD_DEPENDS:=$(if $(STAGING_DIR_ROOT),lua/host)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
SUBMENU:=Components
endef
+define Package/luci/collectiontemplate
+ $(call Package/luci/libtemplate)
+ SUBMENU:=Collections
+endef
+
define Package/luci/install/template
$(CP) -a $(PKG_BUILD_DIR)/$(2)/dist/* $(1)/ -R
define Package/luci-core/config
choice
prompt "Build Target"
- default PACKAGE_luci-core_source
+ default PACKAGE_luci-core_compile
config PACKAGE_luci-core_compile
bool "Precompiled"
endef
-define Package/luci-luanet
+define Package/luci-lmo
$(call Package/luci/libtemplate)
- TITLE:=luanet
- DEPENDS+=+libiw
+ TITLE:=lmo
endef
-define Package/luci-luanet/install
- $(call Package/luci/install/template,$(1),libs/luanet)
+define Package/luci-lmo/install
+ $(call Package/luci/install/template,$(1),libs/lmo)
endef
-NIXIO_TLS:=axtls
+NIXIO_TLS:=
define Package/luci-nixio
$(call Package/luci/libtemplate)
TITLE:=NIXIO POSIX Library
- DEPENDS:=+PACKAGE_luci-nixio_openssl:libopenssl +PACKAGE_luci-nixio_cyassl:libcyassl-luci
+ DEPENDS:=+PACKAGE_luci-nixio_openssl:libopenssl +PACKAGE_luci-nixio_cyassl:libcyassl
endef
define Package/luci-nixio/install
define Package/luci-nixio/config
choice
prompt "TLS Provider"
- default PACKAGE_luci-nixio_axtls
+ default PACKAGE_luci-nixio_notls
+
+ config PACKAGE_luci-nixio_notls
+ bool "Disabled"
config PACKAGE_luci-nixio_axtls
bool "Builtin (axTLS)"
config PACKAGE_luci-nixio_cyassl
bool "CyaSSL"
- select PACKAGE_libcyassl-luci
+ select PACKAGE_libcyassl
config PACKAGE_luci-nixio_openssl
bool "OpenSSL"
endchoice
endef
+ifneq ($(CONFIG_PACKAGE_luci-nixio_axtls),)
+ NIXIO_TLS:=axtls
+endif
+
ifneq ($(CONFIG_PACKAGE_luci-nixio_openssl),)
NIXIO_TLS:=openssl
endif
define Package/luci-web
$(call Package/luci/libtemplate)
- DEPENDS+=+luci-http +luci-sys +luci-uci +luci-lucid +luci-sgi-cgi
+ DEPENDS+=+luci-http +luci-sys +luci-nixio +luci-uci \
+ +luci-sgi-cgi +luci-sgi-uhttpd +luci-lmo
TITLE:=MVC Webframework
$(call Config,luci.main.lang,string,en,Default Language)
endef
define Package/luci-freifunk-community
$(call Package/luci/fftemplate)
DEPENDS+= \
- +luci-lucid +luci-sgi-cgi +luci-app-splash \
+ +luci-web +luci-app-splash \
+luci-app-ffwizard-leipzig \
+luci-i18n-german \
+PACKAGE_luci-freifunk-community:olsrd-luci +PACKAGE_luci-freifunk-community:olsrd-luci-mod-dyn-gw-plain \
+PACKAGE_luci-freifunk-community:olsrd-luci-mod-txtinfo +PACKAGE_luci-freifunk-community:olsrd-luci-mod-nameservice \
+PACKAGE_luci-freifunk-community:olsrd-luci-mod-watchdog +PACKAGE_luci-freifunk-community:kmod-tun \
- +PACKAGE_luci-freifunk-community:ip +PACKAGE_luci-freifunk-community:freifunk-watchdog +luci-app-olsr \
- +PACKAGE_luci-freifunk-community:remote-update
+ +PACKAGE_luci-freifunk-community:ip +PACKAGE_luci-freifunk-community:freifunk-watchdog +luci-app-olsr
TITLE:=Freifunk Community Meta-Package
endef
TITLE:=Web UI Core Module
endef
-define Package/luci-admin-core/conffiles
-/etc/config/luci_hosts
-/etc/config/luci_ethers
-endef
-
define Package/luci-admin-core/install
$(call Package/luci/install/template,$(1),modules/admin-core)
touch $(1)/etc/init.d/luci_fixtime || true
$(call Package/luci/webtemplate)
DEPENDS+=+luci-admin-full +PACKAGE_luci-app-statistics:collectd \
+PACKAGE_luci-app-statistics:rrdtool1 \
- +PACKAGE_luci-app-statistics:collectd-mod-rrdtool1 \
+ +PACKAGE_luci-app-statistics:collectd-mod-rrdtool \
+PACKAGE_luci-app-statistics:collectd-mod-wireless \
+PACKAGE_luci-app-statistics:collectd-mod-interface \
+PACKAGE_luci-app-statistics:collectd-mod-load
$(call Package/luci/install/template,$(1),applications/luci-statistics)
endef
-
define Package/luci-app-upnp
$(call Package/luci/webtemplate)
DEPENDS+=+luci-admin-core +PACKAGE_luci-app-upnp:miniupnpd
endef
-define Package/luci-app-uvc_streamer
+define Package/luci-app-mmc-over-gpio
$(call Package/luci/webtemplate)
- DEPENDS+=+luci-admin-full +PACKAGE_luci-app-uvc_streamer:uvc-streamer
- TITLE:=Webcam Streaming - UVC-Streamer module
-endef
-
-define Package/luci-app-uvc_streamer/install
- $(call Package/luci/install/template,$(1),applications/luci-uvc_streamer)
-endef
-
-
-define Package/luci-app-mmc_over_gpio
- $(call Package/luci/webtemplate)
- DEPENDS+=+luci-admin-full +PACKAGE_luci-app-mmc_over_gpio:kmod-mmc-over-gpio
+ DEPENDS+=+luci-admin-full +PACKAGE_luci-app-mmc-over-gpio:kmod-mmc-over-gpio
TITLE:=mmc_over_gpio
endef
-define Package/luci-app-mmc_over_gpio/install
- $(call Package/luci/install/template,$(1),applications/luci-mmc_over_gpio)
+define Package/luci-app-mmc-over-gpio/install
+ $(call Package/luci/install/template,$(1),applications/luci-mmc-over-gpio)
endef
$(call Package/luci/install/template,$(1),applications/luci-ushare)
endef
-define Package/luci-app-hd_idle
+define Package/luci-app-hd-idle
$(call Package/luci/webtemplate)
- DEPENDS+=+luci-admin-full +PACKAGE_luci-app-hd_idle:hd-idle
+ DEPENDS+=+luci-admin-full +PACKAGE_luci-app-hd-idle:hd-idle
TITLE:=hd-idle
endef
-define Package/luci-app-hd_idle/install
- $(call Package/luci/install/template,$(1),applications/luci-hd_idle)
+define Package/luci-app-hd-idle/install
+ $(call Package/luci/install/template,$(1),applications/luci-hd-idle)
endef
define Package/luci-app-tinyproxy
$(call Package/luci/install/template,$(1),libs/sgi-cgi)
endef
+define Package/luci-sgi-uhttpd
+ $(call Package/luci/webservertemplate)
+ TITLE:=Binding for the uHTTPd server
+ DEPENDS+=+uhttpd +uhttpd-mod-tls +uhttpd-mod-lua +px5g
+endef
+
+define Package/luci-sgi-uhttpd/install
+ $(call Package/luci/install/template,$(1),libs/sgi-uhttpd)
+endef
+
+
### Themes ###
define Package/luci-theme-base
$(call Package/luci/thtemplate)
- DEPENDS:=+luci-web
+ DEPENDS:=
TITLE:=Common base for all themes
endef
define Package/luci-theme-openwrt
$(call Package/luci/thtemplate)
TITLE:=OpenWrt.org (default)
- DEPENDS:=+luci-theme-base
+ DEPENDS:=+luci-theme-base luci-core
+ DEFAULT:=y if PACKAGE_luci-core
endef
define Package/luci-theme-openwrt/install
endef
+define Package/luci-i18n-spanish
+ $(call Package/luci/i18ntemplate)
+ TITLE:=Spanish (by Guillermo Javier Nardoni)
+endef
+
+define Package/luci-i18n-spanish/install
+ $(call Package/luci/install/template,$(1),i18n/spanish)
+endef
+
+
+### Collections ###
+define Package/luci
+ $(call Package/luci/collectiontemplate)
+ TITLE:=Standard OpenWrt Kamikaze set including full and mini admin and the standard theme
+ DEPENDS:=+luci-admin-full +luci-admin-mini +luci-theme-openwrt +luci-app-firewall +luci-app-initmgr
+endef
+
+define Package/luci/install
+ true
+endef
+
+
+define Package/luci-light
+ $(call Package/luci/collectiontemplate)
+ TITLE:=Minimum package set using only admin mini and a theme without grafics
+ DEPENDS:=+luci-admin-mini +luci-theme-openwrtlight
+endef
+
+define Package/luci-light/install
+ true
+endef
+
+
### Compile ###
ifneq ($(CONFIG_PACKAGE_luci-core),)
PKG_SELECTED_MODULES+=libs/core
ifneq ($(CONFIG_PACKAGE_luci-json),)
PKG_SELECTED_MODULES+=libs/json
endif
-ifneq ($(CONFIG_PACKAGE_luci-luanet),)
- PKG_SELECTED_MODULES+=libs/luanet
+ifneq ($(CONFIG_PACKAGE_luci-lmo),)
+ PKG_SELECTED_MODULES+=libs/lmo
endif
ifneq ($(CONFIG_PACKAGE_luci-lucid),)
PKG_SELECTED_MODULES+=libs/lucid libs/lucid-http
ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
PKG_SELECTED_MODULES+=applications/luci-samba
endif
-ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer),)
- PKG_SELECTED_MODULES+=applications/luci-uvc_streamer
-endif
-ifneq ($(CONFIG_PACKAGE_luci-app-mmc_over_gpio),)
- PKG_SELECTED_MODULES+=applications/luci-mmc_over_gpio
+ifneq ($(CONFIG_PACKAGE_luci-app-mmc-over-gpio),)
+ PKG_SELECTED_MODULES+=applications/luci-mmc-over-gpio
endif
ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
PKG_SELECTED_MODULES+=applications/luci-p910nd
ifneq ($(CONFIG_PACKAGE_luci-app-ushare),)
PKG_SELECTED_MODULES+=applications/luci-ushare
endif
-ifneq ($(CONFIG_PACKAGE_luci-app-hd_idle),)
- PKG_SELECTED_MODULES+=applications/luci-hd_idle
+ifneq ($(CONFIG_PACKAGE_luci-app-hd-idle),)
+ PKG_SELECTED_MODULES+=applications/luci-hd-idle
endif
ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy),)
PKG_SELECTED_MODULES+=applications/luci-tinyproxy
ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
PKG_SELECTED_MODULES+=libs/sgi-cgi
endif
+ifneq ($(CONFIG_PACKAGE_luci-sgi-uhttpd),)
+ PKG_SELECTED_MODULES+=libs/sgi-uhttpd
+endif
ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
PKG_SELECTED_MODULES+=libs/sgi-luci
endif
ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese),)
PKG_SELECTED_MODULES+=i18n/portuguese
endif
+ifneq ($(CONFIG_PACKAGE_luci-i18n-spanish),)
+ PKG_SELECTED_MODULES+=i18n/spanish
+endif
MAKE_FLAGS += \
$(eval $(call BuildPackage,luci-httpclient))
$(eval $(call BuildPackage,luci-ipkg))
$(eval $(call BuildPackage,luci-json))
-$(eval $(call BuildPackage,luci-luanet))
+$(eval $(call BuildPackage,luci-lmo))
$(eval $(call BuildPackage,luci-lucid))
$(eval $(call BuildPackage,luci-nixio))
$(eval $(call BuildPackage,luci-px5g))
$(eval $(call BuildPackage,luci-app-ntpc))
$(eval $(call BuildPackage,luci-app-ddns))
$(eval $(call BuildPackage,luci-app-samba))
-$(eval $(call BuildPackage,luci-app-uvc_streamer))
-$(eval $(call BuildPackage,luci-app-mmc_over_gpio))
+$(eval $(call BuildPackage,luci-app-mmc-over-gpio))
$(eval $(call BuildPackage,luci-app-p910nd))
$(eval $(call BuildPackage,luci-app-ushare))
-$(eval $(call BuildPackage,luci-app-hd_idle))
+$(eval $(call BuildPackage,luci-app-hd-idle))
$(eval $(call BuildPackage,luci-app-tinyproxy))
$(eval $(call BuildPackage,luci-app-initmgr))
$(eval $(call BuildPackage,luci-app-livestats))
$(eval $(call BuildPackage,luci-app-p2pblock))
$(eval $(call BuildPackage,luci-sgi-cgi))
+$(eval $(call BuildPackage,luci-sgi-uhttpd))
$(eval $(call BuildPackage,luci-theme-base))
$(eval $(call BuildPackage,luci-theme-fledermaus))
$(eval $(call BuildPackage,luci-i18n-greek))
$(eval $(call BuildPackage,luci-i18n-catalan))
$(eval $(call BuildPackage,luci-i18n-portuguese))
+$(eval $(call BuildPackage,luci-i18n-spanish))
+
+$(eval $(call BuildPackage,luci))
+$(eval $(call BuildPackage,luci-light))