endef
+define Package/luci-httpclient
+ $(call Package/luci/libtemplate)
+ TITLE:=HTTP(S) client library
+ DEPENDS+=+luci-http +luci-nixio
+endef
+
+define Package/luci-httpclient/install
+ $(call Package/luci/install/template,$(1),libs/httpclient)
+endef
+
+
define Package/luci-ipkg
$(call Package/luci/libtemplate)
TITLE:=LuCI IPKG/OPKG call abstraction library
endef
+
+NIXIO_TLS:=axtls
+
+define Package/luci-nixio
+ $(call Package/luci/libtemplate)
+ TITLE:=NIXIO Socket Library
+ DEPENDS:=
+endef
+
+define Package/luci-nixio/install
+ $(call Package/luci/install/template,$(1),libs/nixio)
+endef
+
+define Package/luci-nixio/config
+ choice
+ prompt "TLS Provider"
+ default PACKAGE_luci-nixio_axtls
+
+ config PACKAGE_luci-nixio_axtls
+ bool "Builtin (axTLS)"
+ select PACKAGE_dropbear
+ select PACKAGE_dropbearconvert
+
+ config PACKAGE_luci-nixio_openssl
+ bool "OpenSSL"
+ select PACKAGE_libopenssl
+ endchoice
+endef
+
+ifneq ($(CONFIG_PACKAGE_luci-nixio_openssl),)
+ NIXIO_TLS:=openssl
+endif
+
+
define Package/luci-sys
$(call Package/luci/libtemplate)
TITLE:=LuCI Linux/POSIX system library
ifneq ($(CONFIG_PACKAGE_luci-http),)
PKG_SELECTED_MODULES+=libs/http
endif
+ifneq ($(CONFIG_PACKAGE_luci-httpclient),)
+ PKG_SELECTED_MODULES+=libs/httpclient
+endif
ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
PKG_SELECTED_MODULES+=libs/ipkg
endif
ifneq ($(CONFIG_PACKAGE_luci-json),)
PKG_SELECTED_MODULES+=libs/json
endif
+ifneq ($(CONFIG_PACKAGE_luci-nixio),)
+ PKG_SELECTED_MODULES+=libs/nixio
+endif
ifneq ($(CONFIG_PACKAGE_luci-uci),)
PKG_SELECTED_MODULES+=libs/uci
endif
LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
- OS="Linux"
+ NIXIO_TLS="$(NIXIO_TLS)" OS="Linux"
$(eval $(call BuildPackage,luci-core))
$(eval $(call BuildPackage,luci-cbi))
$(eval $(call BuildPackage,luci-fastindex))
$(eval $(call BuildPackage,luci-http))
+$(eval $(call BuildPackage,luci-httpclient))
$(eval $(call BuildPackage,luci-ipkg))
$(eval $(call BuildPackage,luci-json))
+$(eval $(call BuildPackage,luci-nixio))
$(eval $(call BuildPackage,luci-uci))
$(eval $(call BuildPackage,luci-sys))
$(eval $(call BuildPackage,luci-web))