Merge pull request #10927 from mans0n/chilli

coova-chilli: more fixes and improvements
This commit is contained in:
Rosen Penev 2020-01-03 14:58:00 -08:00 committed by GitHub
commit 7679f5afe9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 26 deletions

View file

@ -1,11 +1,10 @@
# CoovaChilli advanced configuration # CoovaChilli advanced configuration
menu "Configuration" if PACKAGE_coova-chilli
depends on PACKAGE_coova-chilli
config COOVACHILLI_PROXY config COOVACHILLI_PROXY
bool "Enable support for chilli proxy. Required for AAA Proxy through http" bool "Enable support for chilli proxy. Required for AAA Proxy through http"
default n default n
config COOVACHILLI_REDIR config COOVACHILLI_REDIR
bool "Enable support for redir server. Required for uamregex" bool "Enable support for redir server. Required for uamregex"
@ -19,10 +18,6 @@ config COOVACHILLI_USERAGENT
bool "Enable recording user-agent" bool "Enable recording user-agent"
default n default n
config COOVACHILLI_DNSLOG
bool "Enable support to log DNS name queries"
default n
config COOVACHILLI_UAMDOMAINFILE config COOVACHILLI_UAMDOMAINFILE
bool "Enable loading of mass uamdomains from file" bool "Enable loading of mass uamdomains from file"
default n default n
@ -46,4 +41,4 @@ config COOVACHILLI_OPENSSL
endchoice endchoice
endmenu endif

View file

@ -24,15 +24,16 @@ PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=0 PKG_BUILD_PARALLEL:=0
PKG_CONFIG_DEPENDS:= \ PKG_CONFIG_DEPENDS:= \
COOVACHILLI_MINIPORTAL \
COOVACHILLI_REDIR \
COOVACHILLI_USERAGENT \
COOVACHILLI_DNSLOG \
COOVACHILLI_UAMDOMAINFILE \
COOVACHILLI_LARGELIMITS \ COOVACHILLI_LARGELIMITS \
COOVACHILLI_MINIPORTAL \
COOVACHILLI_NOSSL \ COOVACHILLI_NOSSL \
COOVACHILLI_OPENSSL \
COOVACHILLI_PROXY \
COOVACHILLI_REDIR \
COOVACHILLI_UAMDOMAINFILE \
COOVACHILLI_USERAGENT \
COOVACHILLI_WOLFSSL \ COOVACHILLI_WOLFSSL \
COOVACHILLI_OPENSSL IPV6
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/kernel.mk include $(INCLUDE_DIR)/kernel.mk
@ -41,7 +42,8 @@ define Package/coova-chilli
SUBMENU:=Captive Portals SUBMENU:=Captive Portals
SECTION:=net SECTION:=net
CATEGORY:=Network CATEGORY:=Network
DEPENDS:=+kmod-tun +librt +COOVACHILLI_WOLFSSL:libwolfssl +COOVACHILLI_OPENSSL:libopenssl DEPENDS:=+kmod-tun +librt +COOVACHILLI_MINIPORTAL:haserl \
+COOVACHILLI_WOLFSSL:libwolfssl +COOVACHILLI_OPENSSL:libopenssl
TITLE:=Wireless LAN HotSpot controller (Coova Chilli Version) TITLE:=Wireless LAN HotSpot controller (Coova Chilli Version)
URL:=https://coova.github.io/ URL:=https://coova.github.io/
MENU:=1 MENU:=1
@ -106,7 +108,6 @@ define Build/Configure
$(call Build/Configure/Default, \ $(call Build/Configure/Default, \
$(if $(CONFIG_COOVACHILLI_PROXY),--enable,--disable)-chilliproxy \ $(if $(CONFIG_COOVACHILLI_PROXY),--enable,--disable)-chilliproxy \
$(if $(CONFIG_COOVACHILLI_REDIR),--enable,--disable)-chilliredir \ $(if $(CONFIG_COOVACHILLI_REDIR),--enable,--disable)-chilliredir \
$(if $(CONFIG_COOVACHILLI_DNSLOG),--enable,--disable)-dnslog \
$(if $(CONFIG_COOVACHILLI_MINIPORTAL),--enable,--disable)-miniportal \ $(if $(CONFIG_COOVACHILLI_MINIPORTAL),--enable,--disable)-miniportal \
$(if $(CONFIG_COOVACHILLI_USERAGENT),--enable,--disable)-useragent \ $(if $(CONFIG_COOVACHILLI_USERAGENT),--enable,--disable)-useragent \
$(if $(CONFIG_COOVACHILLI_LARGELIMITS),--enable,--disable)-largelimits \ $(if $(CONFIG_COOVACHILLI_LARGELIMITS),--enable,--disable)-largelimits \
@ -141,7 +142,6 @@ define Package/coova-chilli/install
$(INSTALL_BIN) files/chilli.init $(1)/etc/init.d/chilli $(INSTALL_BIN) files/chilli.init $(1)/etc/init.d/chilli
$(INSTALL_DIR) $(1)/etc/config $(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DATA) files/chilli.config $(1)/etc/config/chilli $(INSTALL_DATA) files/chilli.config $(1)/etc/config/chilli
$(INSTALL_DIR) $(1)/lib/firewall
endef endef
$(eval $(call BuildPackage,coova-chilli)) $(eval $(call BuildPackage,coova-chilli))

View file

@ -12,9 +12,6 @@ config chilli
# name of network interface # name of network interface
option network '' option network ''
# Include this flag if process is to run in the foreground
#option fg
# Include this flag to include debug information. # Include this flag to include debug information.
#option debug 1 #option debug 1
@ -22,10 +19,6 @@ config chilli
# name lookups to be performed. Value is given in seconds. # name lookups to be performed. Value is given in seconds.
#option interval 3600 #option interval 3600
# File to store information about the process id of the program.
# The program must have write access to this file/directory.
#option pidfile /var/run/chilli.pid
# Directory to use for nonvolatile storage. # Directory to use for nonvolatile storage.
# The program must have write access to this directory. # The program must have write access to this directory.
# this option is currently ignored # this option is currently ignored

View file

@ -49,7 +49,7 @@ start_chilli() {
local cfg="$1" local cfg="$1"
local base="/var/run/chilli_${cfg}" local base="/var/run/chilli_${cfg}"
config_get_bool disabled "$1" 'disabled' 1 config_get_bool disabled "$1" 'disabled' 0
[ $disabled = 1 ] && return [ $disabled = 1 ] && return
procd_open_instance "$cfg" procd_open_instance "$cfg"