Commit graph

17 commits

Author SHA1 Message Date
Christian Marangi
ac4ad7f6fc
kamailio: backport and move to PCRE2
Backport merged patch and move package to PCRE2 as PCRE is EOL and won't
receive any security updates anymore.

Additional patch are backported to minimize changes to the backport
patches. Only patch 010 required adaptation due to a fix backported in
5.7 in the same place where the patch fixed some whitespace issue.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-11-03 03:37:05 +01:00
Christian Marangi
231910de5f
kamailio: bump to release 5.7.2
Bump kamailio to release 5.7.2 to make it easier to backport PCRE2
patches.

Drop upstream patch related to time_t and python3 fixes.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-11-03 03:35:35 +01:00
Christian Marangi
ceb721c048
kamailio: add patch fixing fragile kamcmd
Add patch fixing fragile kamcmd where output bin can be renamed to
invalid names due to ENV variable clash.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-11-03 03:33:16 +01:00
Sebastian Kemper
4483312785 kamailio: add patches for app_python3
Python was updated to 3.11 and app_python3 doesn't compile anymore.
This commit adds three upstream patches to resolve this.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-05-29 19:56:57 +02:00
Andre Heider
7681ad21d8 kamailio: refactor to use PKG_BUILD_FLAGS:=no-mips16
See commit 5c545bdb "treewide: replace PKG_USE_MIPS16:=0 with
PKG_BUILD_FLAGS:=no-mips16" on the main repository.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-03-23 11:04:25 +01:00
Sebastian Kemper
2be80b04dd kamailio: use return in init script
"check_listen()" & "start_service()" are functions, hence "return"
should be used instead of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-11-08 22:04:55 +01:00
Sebastian Kemper
7163789ee1 kamailio: bump to 5.6.2
- 4 new modules: misctest, posops, siprepo & slack
- 140-redis_use_pkg-config.patch refreshed
- 160-ldap-rename-private-function-ldap_connect.patch and
  170-core-add-support-for-time64-libcs.patch removed (applied
  upstream)
- 160-siputils-fix-time_t-warning-and-a-typo.patch added to fix time_t
  warning (sent upstream, see [1])

[1] https://github.com/kamailio/kamailio/pull/3266

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-16 17:40:43 +02:00
Sebastian Kemper
457552110e kamailio: fix dep for keepalive module
Currently the dependency is in the wrong position.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-16 17:15:18 +02:00
Sebastian Kemper
07cbb38db1 kamailio: add descriptions via BuildKamailioModule
The Makefile currently advertises that descriptions can be added by
specifying a string in argument 3 of BuildKamailioModule, but there's
actually no mechanism for this. This commit adds the missing pieces.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-10-16 17:09:24 +02:00
Sergey V. Lobanov
f902c18fbc kamailio: fix build on macos
kamailio macos build fails due to kamailio Makefile checks OS
(`uname -s`) and OSREL (`uname -r`). If build host is not Linux,
then these checks will provide different results, but OpenWrt is
always Linux so target OS should be always Linux.

This patch explicitly specifies OS=linux and OSREL=$(LINUX_UNAME_VERSION)
to avoid using build host values for target build.

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-02-14 02:13:47 +03:00
Sebastian Kemper
b0387a66ac kamailio: add patch for time64 libc support
This was upstreamed recently. All twelve commits were squashed into a
single patch.

Also the Makefile is switched to AUTORELEASE.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-12-22 21:49:56 +01:00
Sebastian Kemper
8ecd6e71fd kamailio: ldap: rename function ldap_connect
With the recently updated openldap, kamailio fails to build. This adds
an upstreamed patch to resolve this.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-12-22 21:39:31 +01:00
Sebastian Kemper
7c379687d0 kamailio: bump to 5.5.2
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-02 19:45:10 +01:00
Sebastian Kemper
f25b4a8635 kamailio: replace patch with sed script
On the build bots the patch patches clashes with Build/Prepare. This
commit removes it in favor of a simple sed script. The resulting change
is identical.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-07-23 17:16:36 +02:00
Sebastian Kemper
d6ddedbe50 kamailio: prevent arm -march overrides
src/Makefile.defs adds "-march=..." to target flags for ARM targets.
This can clash with the OpenWrt target flags in
CONFIG_TARGET_OPTIMIZATION. If for example the latter is set to
"-mcpu=cortex-a9" the following warning is issued:

cc1: warning: switch '-mcpu=cortex-a9' conflicts with '-march=armv5t' switch

This commit removes these flags. The addition is unwanted when
cross-compiling.

An issue was raised for this recently, see [1].

[1] https://github.com/openwrt/packages/issues/16135

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-07-15 22:15:31 +02:00
Sebastian Kemper
62a6a0c2a4 kamailio: update to version 5.5.0
Added new module lrkproxy. Module "userblacklist" was renamed upstream
to "userblocklist".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-05-08 17:04:33 +02:00
Sebastian Kemper
a0ac804663 kamailio: minor bump + drop 5.x suffix
Bumps kamailio to version 5.4.2 and removes the suffix, as there is only
one kamailio version at a time anyway.

Also:

 - Replaces a few $(PKG_NAME) uses with simply "kamailio"
 - Drops the use of variable PKG_VARIANT (was not set anyway)
 - Drops 160-openssl-deprecated.patch (upstream first accepted the
   patch, then dropped it again after crashes were reported, see [1])

[1] https://github.com/kamailio/kamailio/issues/2466

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-12-12 23:55:36 +01:00