Commit Graph

57 Commits

Author SHA1 Message Date
Pierre Parent 61ba390b65 coova-chilli: fix libxt-coova not loading properly from iptables ( openwrt/packages#23092 )
Signed-off-by: Pierre Parent <m@pierre-parent.fr>
2024-02-22 16:03:04 -08:00
John Thomson 778ce3c977 coova-chilli: fix kernel >= 5.17 compile
Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
2023-06-29 17:44:08 -07:00
Paul Fertser 0c10c224be treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.

The following temporary change was made to the core:

diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
 abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))

 COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))

 all:
 FORCE: ;

And this command used to fix affected packages:

for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
                              sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
  make package/$i/download
done

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 22:46:58 +02:00
Petr Štetiar 845d81ca09 treewide: fix security issues by bumping all packages using libwolfssl
As wolfSSL is having hard time maintaining ABI compatibility between
releases, we need to manually force rebuild of packages depending on
libwolfssl and thus force their upgrade. Otherwise due to the ABI
handling we would endup with possibly two libwolfssl libraries in the
system, including the patched libwolfssl-5.5.1, but still have
vulnerable services running using the vulnerable libwolfssl-5.4.0.

So in order to propagate update of libwolfssl to latest stable release
done in commit ec8fb542ec3e4 ("wolfssl: fix TLSv1.3 RCE in uhttpd by
using 5.5.1-stable (CVE-2022-39173)") which fixes several remotely
exploitable vulnerabilities, we need to bump PKG_RELEASE of all packages
using wolfSSL library.

Same bump has been done in buildroot in commit f1b7e1434f66 ("treewide:
fix security issues by bumping all packages using libwolfssl").

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-10-04 00:58:29 -07:00
Hauke Mehrtens 55297e45c8 coova-chilli: Fix compile problem with _init()
The _init() function collides with a _init() function in crti.o.
This results in the following error in OpenWrt:
arc-openwrt-linux-gnu/bin/ld: libxt_coova.o: in function `_init':
/lib/gcc/arc-openwrt-linux-gnu/11.3.0/crti.o:(.init+0x4): first defined here
collect2: error: ld returned 1 exit status
make[7]: *** [Makefile:22: libxt_coova.so] Error 1

Fix this by suing a constructor attribute instead. This function will
still be called after the shared library was loaded.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-08-20 19:25:17 -07:00
Thibaut VARÈNE 385923321b coova-chilli: remove kmod dep on binary package
There is no reason for the kmod to depend on the binary package
itself, neither for building nor for installing.

That dependency prevents phase1 from building the kmod even though
support is enabled in the binary.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
2022-03-08 21:57:48 -08:00
Thibaut VARÈNE 8c78c33fed coova-chilli: add interface_trigger "wan"
This intends to replace the hotplug script. It still hardcodes "wan"
interface name (as several other packages do) for lack of a deterministic
way to detect the actual wan iface before it is brought up, but at least
it is fully integrated with procd and will not start a disabled service.

The interface trigger forcefully restarts chilli as a simple reload may
not be sufficient to recover from wan changes.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
2022-01-29 21:02:28 -08:00
Thibaut VARÈNE a3e125267c coova-chilli: remove hotplug call
This hotplug trigger unconditionaly restarts coova-chilli when the "wan"
interface sees action "ifup", without checking whether or not the
service is disabled or the upstream interface is actually called "wan".

This hotplug could be replaced by a suitable service trigger instead.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
2022-01-29 21:02:28 -08:00
Thibaut VARÈNE b1fb66e007 coova-chilli: execute firewall cleanup at shutdown
Coova Chilli creates "undo" firewall scripts that are intended to be run
when the daemon is shut down. Failure to do so results in leftover
entries in firewall and duplicated ones if chilli is subsequently
restarted.

Execute these scripts when the service stops.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
2022-01-29 21:02:28 -08:00
Thibaut VARÈNE 06193dfdd6 coova-chilli: postpone startup until wan is available
Coova Chilli will fail to start if e.g. it cannot resolve names in its
configuration (like uamserver, radiusserver, etc) which is typically the
case when wan is unavailable. Prevent this situation by delaying startup
if wan is not available.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
2022-01-29 21:02:28 -08:00
Rosen Penev eba4abb65d coova-chili: fix compilation with kernel 5.10
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-03-21 21:57:28 -07:00
Rosen Penev c05077a499
coova-chilli: update to 1.6
Remove usptreamed patches.

Switch to AUTORELEASE for simplicity.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-02-22 16:35:46 -08:00
Ilya Lipnitskiy 5d8d4fbbcb
treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-20 16:02:15 -08:00
Rosen Penev 687dc0cc95
coova-chili: fix compilation with glibc
Disable Werror as it errors on pointless stuff.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-30 16:34:30 -08:00
Dylan Bourdon 2986f4c24c
coova-chilli: Update pkg_release
Signed-off-by: Dylan Bourdon <dbourdon@student.42.fr>
2020-05-26 17:51:26 -04:00
Dylan Bourdon 740cf4fb18
coova-chilli: Add json interface build option
Signed-off-by: Dylan Bourdon <dbourdon@student.42.fr>
2020-05-26 17:44:44 -04:00
Sungbo Eo 23a44aab2a coova-chilli: enable service by default
If "disabled" option does not exist, service should be enabled.

Fixes: #10392

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-01-03 20:50:00 +09:00
Sungbo Eo 2ce311209d coova-chilli: remove redundant options from config file
"fg" and "pidfile" parameters are already used in the init script,
so they are not controllable by config file anyway.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-01-03 20:49:22 +09:00
Sungbo Eo 532088818a coova-chilli: add dependency for miniportal
If miniportal option is enabled, some haserl scripts are provided which
present a simple login web page. To make it functional haserl is required.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-01-03 20:49:00 +09:00
Sungbo Eo 2c71fb2065 coova-chilli: clean up Makefile
- add missing configs to PKG_CONFIG_DEPENDS and sort it
- remove redundant INSTALL_DIR

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-01-03 20:48:48 +09:00
Sungbo Eo 95954b84f5 coova-chilli: remove dnslog option
dnslog feature has been removed since v1.4.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-01-03 20:48:35 +09:00
Sungbo Eo 225e323033 coova-chilli: cosmetic changes for Config.in
- simplify configuration menu definition
- fix indent

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2020-01-03 20:47:59 +09:00
Rosen Penev df20377ee9
coova-chili: Fix version
Upstream was sloppy when cutting the release.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-12-31 21:12:13 -08:00
Rosen Penev 68b5a71883
coova-chilli: Update to 1.5
Remove upstreamed patches.

Added patch to fix compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-12-11 19:39:21 -08:00
Petr Štetiar dd39acba55 coova-chilli: Fix debug flag config example and synchronize bool options
debug is boolean option/flag so setting it to 9 doesn't work, while at
it I've synchronized boolean options from source code and sorted it
alphabeticaly with following command:

  grep flag src/cmdline.ggo | cut -d \" -f2 | sort | tr '\n' '|'

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-09-25 13:00:22 +02:00
Petr Štetiar 9d3a1a2a63 coova-chilli: Fix unwanted startup of disabled instances
Code in option_cb was referencing $chilli_inst variable which was
declared as local, thus the instance startup logic in start_chilli was
referencing variable which would always get value of 1, effectively
making `disabled` config option useless.

So I've fixed it with simpler config_get_bool and while at it, I've simplified the
surrounding code little bit as well.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-09-25 12:59:55 +02:00
Petr Štetiar aa6dfc5978 coova-chilli: Wrap excessively long lines
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-09-25 12:59:55 +02:00
Eneas U de Queiroz 4ca57ae9c2
coova-chilli: disable parallel build
Parallel building is causing a failure because it executes some
commands, such as patch, more than once.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2019-07-04 09:01:52 -03:00
Rosen Penev 266b0ba9d9 coova-chili: Fix compilation with newer GCC
Added -Wno-error to fix.

Also added patch to fix compilation without deprecated OpenSSL APIs.

Added PKG_BUILD_PARALLEL for faster compilation.

Switched libcyassl to libwolfssl.

Reorganized makefile for consistency between packages.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-06-28 10:34:27 -07:00
Jaehoon You 1dc8f8f251
coova-chilli: fix build error
This commit removes that copy command to fix build error.

Signed-off-by: Jaehoon You <teslamint@gmail.com>
2019-03-27 19:23:53 +09:00
Rosen Penev 6b76b1310e
coova-chilli: Bump PKG 2019-03-26 19:06:54 -07:00
Rosen Penev d0b67d72a5
Merge pull request #4911 from aleksander0m/coova-chili-fw-fix
net/coova-chili: update default firewall setup
2019-03-26 18:11:23 -07:00
Jaehoon You a7b2eee228
coova-chilli: honor CONFIG_IPv6 option
This fixes #7120.

Signed-off-by: Jaehoon You <teslamint@gmail.com>
2018-10-17 08:36:59 +09:00
Rosen Penev a67193e2ca coova-chilli: Update to 1.4
Switch to codeload for simplicity.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-07-29 20:06:04 -07:00
Jaehoon You 82b67e3363 coova-chilli: change PKG_MAINTAINER
Signed-off-by: Jaehoon You <teslamint@gmail.com>
2018-04-23 13:34:44 +08:00
Jaehoon You 258cbcdb89 coova-chilli: switch to procd
Signed-off-by: Jaehoon You <teslamint@gmail.com>
2018-04-23 13:34:44 +08:00
Marty E. Plummer 0679859513
net/coova-chilli: fix -Werror=misleading-indendation
As it currently stands, the version of coova-chilli the packages feed
will not compile against 4fd87220567f1ae3ad209da1f602dc81c6b4d6b1

I've quasi-backported (could not find a single commit which fixes these
particular issues) https://github.com/coova/coova-chilli 's formatting
on the impacted sections, and it compiles.

Once a new version is added to the feed this patch can likely be
dropped.

Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
2018-03-16 07:01:10 -05:00
Hannu Nyman b5fbdd7fef coova-chilli: remove matrixssl dependency
matrixssl is still in the oldpackages repo,
so coova-chilli should not depend on it.

Remove the config option for selecting matrixssl lib
and the dependency declaration.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-01-20 16:44:08 +02:00
Aleksander Morgado 272d234c0a net/coova-chili: update default firewall setup
Remove the obsolete firewall configuration as the legacy firewall
package was removed in a901329781eae4716c21d3d8f70a18501d9f2352.

And at the same time, define in the configuration the correct paths
for the firewall rules, installed as /etc/chilli/{up|down}.sh

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
2017-10-07 13:23:05 +02:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Rajan Vaja ea24eb2409 coova-chilli: Fix removal of old files
Before starting chilli instance, it first removes generated
files (/var/run/chilli*) for the instance. While deleting
generated files, it doesn't match full instance name.

Thus if coova-chilli config file (/etc/config/chilli) has
instances wlan11 and wlan1 in order,
when creating coova-chilli instance for wlan1, it is removing
files generated for wlan11 instances also (as it uses wlan1*
in remove command).

Fix issue by matching full instance name while removing old files.

Signed-off-by: Rajan Vaja <rajan.vaja@gmail.com>
Signed-off-by: Bhargav Patel <br13patel@gmail.com>
2016-08-04 16:53:14 +05:30
Rajan Vaja bc5561b3e4 coova-chilli: Fix UCI parse error
UCI commands report errors in parsing coova-chilli
sample configuration file. Fix this issue by using
proper format in configuration.

Signed-off-by: Rajan Vaja <rajan.vaja@gmail.com>
2016-07-11 11:59:39 +05:30
champtar 529d184dbf Merge pull request #1340 from teslamint/patch-1
coova-chilli: add network option in chilli.config
2016-04-09 23:14:06 +02:00
Jaehoon You ecd1ab49cc coova-chilli: fix compile error with musl
Signed-off-by: Jaehoon You <teslamint@gmail.com>
2015-07-22 15:21:43 +09:00
Jaehoon You eed8b9114b coova-chilli: add network option
fix #1221

Signed-off-by: Jaehoon You <teslamint@gmail.com>
2015-06-03 14:41:49 +09:00
Jaehoon You c14e55e452 coova-chilli: fix stat failed error when compile without kmod
This patch fixes #1261.

Signed-off-by: Jaehoon You <teslamint@gmail.com>
2015-05-18 13:52:12 +09:00
Jaehoon You 3346bfd27b coova-chilli: fix compile error that cannot copy netfilter extension library
Signed-off-by: Jaehoon You <teslamint@gmail.com>
2015-04-29 00:24:38 +09:00
Imre Kaloz 45e0e2a0b9 coova-chilli: add uci configuration file, init.d and firewall script 2015-04-28 15:08:15 +02:00
Imre Kaloz 8e2807532c Merge pull request #1123 from teslamint/patch-2
coova-chilli: add netfilter kernel module package with patches
2015-04-28 14:59:21 +02:00
Imre Kaloz 927a7164fa Merge pull request #1124 from teslamint/patch-3
coova-chilli: fix compile error with cyassl
2015-04-28 14:59:13 +02:00