From: Rosen Penev Date: Wed, 20 Aug 2025 19:22:53 +0000 (-0700) Subject: coova-chilli: update to 1.7 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=b1bb4533ef73bbdebc4ce29c1f7f49db57c831d7;p=feed%2Fpackages.git coova-chilli: update to 1.7 Swith to local tarballs for smaller size. Some patches were merged upstream. Switch to static instead of attribute constructor. Simpler. Signed-off-by: Rosen Penev --- diff --git a/net/coova-chilli/Makefile b/net/coova-chilli/Makefile index 950dd7db9e..c0a382c2fb 100644 --- a/net/coova-chilli/Makefile +++ b/net/coova-chilli/Makefile @@ -8,12 +8,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=coova-chilli -PKG_VERSION:=1.6 -PKG_RELEASE:=13 +PKG_VERSION:=1.7 +PKG_RELEASE:=1 -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=https://codeload.github.com/coova/coova-chilli/tar.gz/$(PKG_VERSION)? -PKG_HASH:=26b2bead6fd9c18eb736fb0a0f8709922de4e4fedee1122193f82706eb2b9305 +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/coova/coova-chilli +PKG_SOURCE_VERSION:=$(PKG_VERSION) +PKG_MIRROR_HASH:=adf30c6c61d803770d2f9bcc225e85465edd816396bcf409cc503832cd45c2a3 PKG_MAINTAINER:=Jaehoon You PKG_LICENSE:=GPL-2.0-or-later diff --git a/net/coova-chilli/patches/010-kernel510.patch b/net/coova-chilli/patches/010-kernel510.patch index afdd586a4e..06981f9966 100644 --- a/net/coova-chilli/patches/010-kernel510.patch +++ b/net/coova-chilli/patches/010-kernel510.patch @@ -13,7 +13,7 @@ static u_int32_t hash_rnd; static bool hash_rnd_initted; -@@ -577,6 +581,14 @@ coova_mt_proc_write(struct file *file, c +@@ -582,6 +586,14 @@ coova_mt_proc_write(struct file *file, c return size + 1; } @@ -28,7 +28,7 @@ static const struct file_operations coova_mt_fops = { .open = coova_seq_open, .read = seq_read, -@@ -584,6 +596,7 @@ static const struct file_operations coov +@@ -589,6 +601,7 @@ static const struct file_operations coov .release = seq_release_private, .owner = THIS_MODULE, }; diff --git a/net/coova-chilli/patches/011-kernel517.patch b/net/coova-chilli/patches/011-kernel517.patch deleted file mode 100644 index e66a7c1470..0000000000 --- a/net/coova-chilli/patches/011-kernel517.patch +++ /dev/null @@ -1,34 +0,0 @@ -From: John Thomson -Date: 21 Oct 2022 13:00:00 +1000 -Subject: [PATCH] xt_coova: fix kernel>=5.17 - -Linux kernel 5.17 removed PDE_DATA, and replaced it with pde_data [0] - -[0]: https://github.com/torvalds/linux/commit/359745d78351c6f5442435f81549f0207ece28aa - -Signed-off-by: John Thomson - ---- a/src/linux/xt_coova.c -+++ b/src/linux/xt_coova.c -@@ -470,7 +470,9 @@ static int coova_seq_open(struct inode * - if (st == NULL) - return -ENOMEM; - --#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0) -+ st->table = pde_data(inode); -+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) - st->table = PDE_DATA(inode); - #else - st->table = pde->data; -@@ -482,7 +484,9 @@ static ssize_t - coova_mt_proc_write(struct file *file, const char __user *input, - size_t size, loff_t *loff) - { --#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0) -+ struct coova_table *t = pde_data(file_inode(file)); -+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) - struct coova_table *t = PDE_DATA(file_inode(file)); - #else - const struct proc_dir_entry *pde = PDE(file->f_path.dentry->d_inode); diff --git a/net/coova-chilli/patches/040-gcc15.patch b/net/coova-chilli/patches/040-gcc15.patch deleted file mode 100644 index 60d9b67cc8..0000000000 --- a/net/coova-chilli/patches/040-gcc15.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- a/src/chilli.c -+++ b/src/chilli.c -@@ -7867,7 +7867,7 @@ int chilli_main(int argc, char **argv) { - */ - - #ifdef ENABLE_CHILLIQUERY -- cmdsock_shutdown(); -+ cmdsock_shutdown(cmdsock); - #endif - - #ifdef ENABLE_CHILLIREDIR ---- a/src/chilli.h -+++ b/src/chilli.h -@@ -266,7 +266,7 @@ int cmdsock_init(void); - - int cmdsock_port_init(void); - --void cmdsock_shutdown(); -+void cmdsock_shutdown(int s); - - time_t mainclock_tick(void); - time_t mainclock_now(void);