add compile options against various ssl libraries
authorImre Kaloz <kaloz@openwrt.org>
Tue, 26 Nov 2013 13:10:57 +0000 (13:10 +0000)
committerImre Kaloz <kaloz@openwrt.org>
Tue, 26 Nov 2013 13:10:57 +0000 (13:10 +0000)
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 38920

net/coova-chilli/Config.in
net/coova-chilli/Makefile

index 392c6dcf79931345fbe96252139ba239c0b29b6c..947266203934d4b7275000df36c8c29858dd5482 100644 (file)
@@ -23,4 +23,22 @@ config COOVACHILLI_UAMDOMAINFILE
        bool "Enable loading of mass uamdomains from file"
        default n
 
+choice
+       prompt "SSL library"
+       default COOVACHILLI_NOSSL
+
+config COOVACHILLI_NOSSL
+       bool "No SSL support"
+
+config COOVACHILLI_MATRIXSSL
+       bool "MatrixSSL"
+
+config COOVACHILLI_CYASSL
+       bool "CyaSSL"
+
+config COOVACHILLI_OPENSSL
+       bool "OpenSSL"
+
+endchoice
+
 endmenu
index 83353fe836125aedc4c017b2f741b8d64efcfafe..ba49be988697a277057a0dfd9d02f354ecce0ee8 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=coova-chilli
 PKG_VERSION:=1.3.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://ap.coova.org/chilli
@@ -22,7 +22,11 @@ PKG_CONFIG_DEPENDS := \
   COOVACHILLI_REDIR \
   COOVACHILLI_USERAGENT \
   COOVACHILLI_DNSLOG \
-  COOVACHILLI_UAMDOMAINFILE
+  COOVACHILLI_UAMDOMAINFILE \
+  COOVACHILLI_NOSSL \
+  COOVACHILLI_MATRIXSSL \
+  COOVACHILLI_CYASSL \
+  COOVACHILLI_OPENSSL
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -30,7 +34,7 @@ define Package/coova-chilli
   SUBMENU:=Captive Portals
   SECTION:=net
   CATEGORY:=Network
-  DEPENDS:=+kmod-tun +librt
+  DEPENDS:=+kmod-tun +librt +COOVACHILLI_MATRIXSSL:libmatrixssl +COOVACHILLI_CYASSL:libcyassl +COOVACHILLI_OPENSSL:libopenssl
   TITLE:=Wireless LAN HotSpot controller (Coova Chilli Version)
   URL:=http://www.coova.org/CoovaChilli
   MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
@@ -58,6 +62,9 @@ define Build/Configure
        $(if $(CONFIG_COOVACHILLI_MINIPORTAL),--enable,--disable)-miniportal \
        $(if $(CONFIG_COOVACHILLI_USERAGENT),--enable,--disable)-useragent \
        $(if $(CONFIG_COOVACHILLI_UAMDOMAINFILE),--enable,--disable)-uamdomainfile \
+       $(if $(CONFIG_COOVACHILLI_MATRIXSSL),--with,--without)-matrixssl \
+       $(if $(CONFIG_COOVACHILLI_CYASSL),--with,--without)-cyaxssl \
+       $(if $(CONFIG_COOVACHILLI_OPENSSL),--with,--without)-openssl \
        )
 endef