X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=contrib%2Fpackage%2Fluci%2FMakefile;h=d803b9635c97b3498ce136ae8d0b41c36d34c5f4;hb=291206c9fa8051bd3de7b92e105433d3502b4fb6;hp=46f356eb5975fc64e9766c7805345520ee0ad321;hpb=23965204136603e49f401fccb1b6e16962529791;p=project%2Fluci.git diff --git a/contrib/package/luci/Makefile b/contrib/package/luci/Makefile index 46f356eb5..d803b9635 100644 --- a/contrib/package/luci/Makefile +++ b/contrib/package/luci/Makefile @@ -23,6 +23,7 @@ else 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 @@ -82,6 +83,11 @@ define Package/luci/webtemplate 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 @@ -110,7 +116,7 @@ endef 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" @@ -121,9 +127,6 @@ define Package/luci-core/config config PACKAGE_luci-core_source bool "Full Source" - config PACKAGE_luci-core_zipped - bool "Precompiled and compressed" - endchoice endef @@ -214,14 +217,13 @@ define Package/luci-json/install 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 @@ -238,12 +240,12 @@ endef -NIXIO_TLS:=axtls +NIXIO_TLS:= define Package/luci-nixio $(call Package/luci/libtemplate) TITLE:=NIXIO POSIX Library - DEPENDS:= + DEPENDS:=+PACKAGE_luci-nixio_openssl:libopenssl +PACKAGE_luci-nixio_cyassl:libcyassl endef define Package/luci-nixio/install @@ -253,14 +255,17 @@ endef 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" @@ -268,6 +273,10 @@ define Package/luci-nixio/config endchoice endef +ifneq ($(CONFIG_PACKAGE_luci-nixio_axtls),) + NIXIO_TLS:=axtls +endif + ifneq ($(CONFIG_PACKAGE_luci-nixio_openssl),) NIXIO_TLS:=openssl endif @@ -301,7 +310,8 @@ endef 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 @@ -332,7 +342,7 @@ 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 \ @@ -354,11 +364,6 @@ define Package/luci-admin-core 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 @@ -493,7 +498,7 @@ define Package/luci-app-statistics $(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 @@ -508,7 +513,6 @@ define Package/luci-app-statistics/install $(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 @@ -553,25 +557,14 @@ define Package/luci-app-samba/install 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 @@ -596,14 +589,14 @@ define Package/luci-app-ushare/install $(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 @@ -679,10 +672,21 @@ define Package/luci-sgi-cgi/install $(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 @@ -736,7 +740,8 @@ 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 @@ -855,6 +860,39 @@ define Package/luci-i18n-portuguese/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 @@ -877,8 +915,8 @@ endif 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 @@ -955,11 +993,8 @@ endif 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 @@ -967,8 +1002,8 @@ endif 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 @@ -993,6 +1028,9 @@ endif 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 @@ -1049,6 +1087,9 @@ 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 += \ @@ -1067,7 +1108,7 @@ $(eval $(call BuildPackage,luci-http)) $(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)) @@ -1095,11 +1136,10 @@ $(eval $(call BuildPackage,luci-app-upnp)) $(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)) @@ -1108,6 +1148,7 @@ $(eval $(call BuildPackage,luci-app-openvpn)) $(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)) @@ -1127,3 +1168,7 @@ $(eval $(call BuildPackage,luci-i18n-japanese)) $(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))