From 740cf4fb18b1b9b8fd47d8554f538fcfb71f570e Mon Sep 17 00:00:00 2001 From: Dylan Bourdon Date: Mon, 25 May 2020 17:27:33 -0400 Subject: [PATCH] coova-chilli: Add json interface build option Signed-off-by: Dylan Bourdon --- net/coova-chilli/Config.in | 4 ++++ net/coova-chilli/Makefile | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/net/coova-chilli/Config.in b/net/coova-chilli/Config.in index 9202ab7ae..b20788eef 100644 --- a/net/coova-chilli/Config.in +++ b/net/coova-chilli/Config.in @@ -26,6 +26,10 @@ config COOVACHILLI_LARGELIMITS bool "Enable larger limits for use with non-embedded systems" default n +config COOVACHILLI_JSONINTERFACE + bool "Enable the JSON interface for the CoovaChilli Controller" + default n + choice prompt "SSL library" default COOVACHILLI_NOSSL diff --git a/net/coova-chilli/Makefile b/net/coova-chilli/Makefile index 45e763e87..634e7f076 100644 --- a/net/coova-chilli/Makefile +++ b/net/coova-chilli/Makefile @@ -24,6 +24,7 @@ PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=0 PKG_CONFIG_DEPENDS:= \ + COOVACHILLI_JSONINTERFACE \ COOVACHILLI_LARGELIMITS \ COOVACHILLI_MINIPORTAL \ COOVACHILLI_NOSSL \ @@ -43,7 +44,8 @@ define Package/coova-chilli SECTION:=net CATEGORY:=Network DEPENDS:=+kmod-tun +librt +COOVACHILLI_MINIPORTAL:haserl \ - +COOVACHILLI_WOLFSSL:libwolfssl +COOVACHILLI_OPENSSL:libopenssl + +COOVACHILLI_WOLFSSL:libwolfssl +COOVACHILLI_OPENSSL:libopenssl \ + +COOVACHILLI_JSONINTERFACE:libjson-c TITLE:=Wireless LAN HotSpot controller (Coova Chilli Version) URL:=https://coova.github.io/ MENU:=1 @@ -111,6 +113,8 @@ define Build/Configure $(if $(CONFIG_COOVACHILLI_MINIPORTAL),--enable,--disable)-miniportal \ $(if $(CONFIG_COOVACHILLI_USERAGENT),--enable,--disable)-useragent \ $(if $(CONFIG_COOVACHILLI_LARGELIMITS),--enable,--disable)-largelimits \ + $(if $(CONFIG_COOVACHILLI_JSONINTERFACE),--enable,--disable)-libjson \ + $(if $(CONFIG_COOVACHILLI_JSONINTERFACE),--enable,--disable)-json \ $(if $(CONFIG_COOVACHILLI_UAMDOMAINFILE),--enable,--disable)-uamdomainfile \ $(if $(CONFIG_IPV6),--with,--without)-ipv6 \ $(if $(CONFIG_COOVACHILLI_WOLFSSL),--with,--without)-cyassl \