coova-chilli: update to 1.7
authorRosen Penev <[email protected]>
Wed, 20 Aug 2025 19:22:53 +0000 (12:22 -0700)
committerJosef Schlehofer <[email protected]>
Sun, 24 Aug 2025 07:51:54 +0000 (10:51 +0300)
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 <[email protected]>
net/coova-chilli/Makefile
net/coova-chilli/patches/010-kernel510.patch
net/coova-chilli/patches/011-kernel517.patch [deleted file]
net/coova-chilli/patches/040-gcc15.patch [deleted file]

index 950dd7db9e00559814b4b9ec142ba3675c3a2d78..c0a382c2fba066535f2ff149ed2cd8c1677a9902 100644 (file)
@@ -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 <[email protected]>
 PKG_LICENSE:=GPL-2.0-or-later
index afdd586a4e313223c7e81c1c0273277759bdb6ed..06981f9966052f0884b35586d64d627537c45812 100644 (file)
@@ -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 (file)
index e66a7c1..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-From: John Thomson <[email protected]>
-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 <[email protected]>
-
---- 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 (file)
index 60d9b67..0000000
+++ /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);