diff options
author | Steven Barth <steven@midlink.org> | 2009-03-04 17:17:30 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-03-04 17:17:30 +0000 |
commit | b92e6532a0237b7b13e29c6c0c55943fc1cd7d77 (patch) | |
tree | 0fc2f5f612a856055636745f00e9ca18ecdaff11 /contrib/package | |
parent | a5ae3959b5cde24880fb79a1e489eb839cdeb8c5 (diff) |
nixio: Autogenerate private key on installation if we have axtls
support, make the TLS provider configurable in the build menu
Diffstat (limited to 'contrib/package')
-rw-r--r-- | contrib/package/luci/Makefile | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/contrib/package/luci/Makefile b/contrib/package/luci/Makefile index e915d03709..6dad6d4864 100644 --- a/contrib/package/luci/Makefile +++ b/contrib/package/luci/Makefile @@ -213,15 +213,39 @@ define Package/luci-json/install 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) @@ -951,7 +975,7 @@ MAKE_FLAGS += \ 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)) |