From f33a4041c9da689c7485d1e7a8f7f22bd848c1d8 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Wed, 24 Jun 2015 15:02:46 +0200 Subject: [PATCH 1/4] kamailio-4.x: fix build with musl Signed-off-by: Daniel Golle --- .../110-include-sys-time-h-in-ld_session-h.patch | 10 ++++++++++ .../patches/111-include-sys-time-h-in-sercmd-c.patch | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 net/kamailio-4.x/patches/110-include-sys-time-h-in-ld_session-h.patch create mode 100644 net/kamailio-4.x/patches/111-include-sys-time-h-in-sercmd-c.patch diff --git a/net/kamailio-4.x/patches/110-include-sys-time-h-in-ld_session-h.patch b/net/kamailio-4.x/patches/110-include-sys-time-h-in-ld_session-h.patch new file mode 100644 index 0000000..2dab8d1 --- /dev/null +++ b/net/kamailio-4.x/patches/110-include-sys-time-h-in-ld_session-h.patch @@ -0,0 +1,10 @@ +--- a/modules/ldap/ld_session.h ++++ b/modules/ldap/ld_session.h +@@ -33,6 +33,7 @@ + #ifndef LD_SESSION_H + #define LD_SESSION_H + ++#include + #include + + #include "iniparser.h" diff --git a/net/kamailio-4.x/patches/111-include-sys-time-h-in-sercmd-c.patch b/net/kamailio-4.x/patches/111-include-sys-time-h-in-sercmd-c.patch new file mode 100644 index 0000000..c4e4487 --- /dev/null +++ b/net/kamailio-4.x/patches/111-include-sys-time-h-in-sercmd-c.patch @@ -0,0 +1,10 @@ +--- a/utils/sercmd/sercmd.c ++++ b/utils/sercmd/sercmd.c +@@ -43,6 +43,7 @@ + #include + #include /* isprint */ + #include ++#include /* struct timeval */ + #include /* unix sock*/ + #include /* udp sock */ + #include /* writev */ From ae5c14a7740995585527268deb5c66de3fb0b37a Mon Sep 17 00:00:00 2001 From: Jiri Slachta Date: Thu, 7 Apr 2016 14:53:40 +0200 Subject: [PATCH 2/4] kamailio-4.x: update to 4.4.0 Signed-off-by: Jiri Slachta --- net/kamailio-4.x/Makefile | 9 ++++--- .../patches/050-fix-kamailio-utils.patch | 26 +++++++++++-------- ...0-include-sys-time-h-in-ld_session-h.patch | 2 +- .../patches/120-libevent-libs.patch | 26 +++++++++---------- 4 files changed, 33 insertions(+), 30 deletions(-) diff --git a/net/kamailio-4.x/Makefile b/net/kamailio-4.x/Makefile index f02ec01..e94b47c 100644 --- a/net/kamailio-4.x/Makefile +++ b/net/kamailio-4.x/Makefile @@ -1,5 +1,6 @@ # -# Copyright (C) 2015 OpenWrt.org +# Copyright (C) 2016 OpenWrt.org +# Copyright (C) 2013-2016 CESNET,z.s.p.o. # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,12 +9,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=kamailio4 -PKG_VERSION:=4.3.0 -PKG_RELEASE:=2 +PKG_VERSION:=4.4.0 +PKG_RELEASE:=1 PKG_SOURCE_URL:=http://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src/ PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz -PKG_MD5SUM:=4a6bd2f70f14d94a4ed9a8e6b18f89d7 +PKG_MD5SUM:=e9fa206f67346a6b01c015d76ec2db9d PKG_USE_MIPS16:=0 PKG_LICENSE:=GPL-2.0+ diff --git a/net/kamailio-4.x/patches/050-fix-kamailio-utils.patch b/net/kamailio-4.x/patches/050-fix-kamailio-utils.patch index 68c9ddd..dca7efb 100644 --- a/net/kamailio-4.x/patches/050-fix-kamailio-utils.patch +++ b/net/kamailio-4.x/patches/050-fix-kamailio-utils.patch @@ -1,13 +1,15 @@ ---- a/utils/kamctl/kamctl -+++ b/utils/kamctl/kamctl +diff -rupN kamailio4-4.4.0/utils/kamctl/kamctl kam4/utils/kamctl/kamctl +--- kamailio4-4.4.0/utils/kamctl/kamctl 2016-03-30 15:56:42.000000000 +0200 ++++ kam4/utils/kamctl/kamctl 2016-04-07 14:41:45.108118138 +0200 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # control tool for maintaining Kamailio # ---- a/utils/kamctl/kamctlrc -+++ b/utils/kamctl/kamctlrc +diff -rupN kamailio4-4.4.0/utils/kamctl/kamctlrc kam4/utils/kamctl/kamctlrc +--- kamailio4-4.4.0/utils/kamctl/kamctlrc 2016-03-30 15:56:42.000000000 +0200 ++++ kam4/utils/kamctl/kamctlrc 2016-04-07 14:42:20.348404015 +0200 @@ -147,3 +147,6 @@ ## Extra start options - default is: not set # example: start Kamailio with 64MB share memory: STARTOPTIONS="-m 64" @@ -15,16 +17,18 @@ + +# Disable colour printing in terminal +NOHLPRINT=1 ---- a/utils/kamctl/kamdbctl -+++ b/utils/kamctl/kamdbctl +diff -rupN kamailio4-4.4.0/utils/kamctl/kamdbctl kam4/utils/kamctl/kamdbctl +--- kamailio4-4.4.0/utils/kamctl/kamdbctl 2016-03-30 15:56:42.000000000 +0200 ++++ kam4/utils/kamctl/kamdbctl 2016-04-07 14:42:36.204532677 +0200 @@ -1,4 +1,4 @@ -#!/bin/bash -+#!/bin/sh ++#!/bin/sh # # control tool for maintaining Kamailio databases # ---- a/utils/kamctl/kamdbctl.base -+++ b/utils/kamctl/kamdbctl.base +diff -rupN kamailio4-4.4.0/utils/kamctl/kamdbctl.base kam4/utils/kamctl/kamdbctl.base +--- kamailio4-4.4.0/utils/kamctl/kamdbctl.base 2016-03-30 15:56:42.000000000 +0200 ++++ kam4/utils/kamctl/kamdbctl.base 2016-04-07 14:43:18.180873383 +0200 @@ -33,18 +33,18 @@ INSTALL_DBUID_TABLES=${INSTALL_DBUID_TAB # Used by dbtext and db_berkeley to define tables to be created, used by @@ -37,7 +41,7 @@ + grp uri speed_dial lcr_gw lcr_rule lcr_rule_target pdt subscriber \ + location location_attrs re_grp trusted address missed_calls \ + usr_preferences aliases silo dialog dialog_vars dispatcher dialplan \ - acc_cdrs} + acc_cdrs topos_d topos_t} -EXTRA_TABLES=${EXTRA_TABLES:-imc_members imc_rooms cpl sip_trace domainpolicy - carrierroute carrier_name domain_name carrierfailureroute userblacklist - globalblacklist htable purplemap uacreg pl_pipes mtree mtrees @@ -61,7 +65,7 @@ - permissions registrar usrloc msilo alias_db uri_db speeddial +STANDARD_MODULES=${STANDARD_MODULES:-standard acc lcr domain group \ + permissions registrar usrloc msilo alias_db uri_db speeddial \ - avpops auth_db pdt dialog dispatcher dialplan} + avpops auth_db pdt dialog dispatcher dialplan topos} PRESENCE_MODULES=${PRESENCE_MODULES:-presence rls} diff --git a/net/kamailio-4.x/patches/110-include-sys-time-h-in-ld_session-h.patch b/net/kamailio-4.x/patches/110-include-sys-time-h-in-ld_session-h.patch index 2dab8d1..2fc156e 100644 --- a/net/kamailio-4.x/patches/110-include-sys-time-h-in-ld_session-h.patch +++ b/net/kamailio-4.x/patches/110-include-sys-time-h-in-ld_session-h.patch @@ -1,6 +1,6 @@ --- a/modules/ldap/ld_session.h +++ b/modules/ldap/ld_session.h -@@ -33,6 +33,7 @@ +@@ -28,6 +28,7 @@ #ifndef LD_SESSION_H #define LD_SESSION_H diff --git a/net/kamailio-4.x/patches/120-libevent-libs.patch b/net/kamailio-4.x/patches/120-libevent-libs.patch index 918d27b..a7a3944 100644 --- a/net/kamailio-4.x/patches/120-libevent-libs.patch +++ b/net/kamailio-4.x/patches/120-libevent-libs.patch @@ -1,20 +1,18 @@ -Index: kamailio4-4.3.0/modules/cnxcc/Makefile -=================================================================== ---- kamailio4-4.3.0.orig/modules/cnxcc/Makefile -+++ kamailio4-4.3.0/modules/cnxcc/Makefile -@@ -8,7 +8,7 @@ include ../../Makefile.defs - auto_gen= - NAME=cnxcc.so +diff -rupN kamailio4-4.4.0/modules/cnxcc/Makefile kam4/modules/cnxcc/Makefile +--- kamailio4-4.4.0/modules/cnxcc/Makefile 2016-04-07 11:26:01.186927107 +0200 ++++ kam4/modules/cnxcc/Makefile 2016-04-07 11:25:28.370655776 +0200 +@@ -45,7 +45,7 @@ else + endif + + DEFS+=$(HIREDISDEFS) $(LEVENTDEFS) +-LIBS=$(HIREDISLIBS) $(LEVENTLIBS) ++LIBS=$(HIREDISLIBS) $(LEVENTLIBS) $(EXTRA_LIBS) --LIBS=-lhiredis -levent -+LIBS=-lhiredis -levent $(EXTRA_LIBS) DEFS+=-DOPENSER_MOD_INTERFACE SERLIBPATH=../../lib - SER_LIBS+=$(SERLIBPATH)/kmi/kmi -Index: kamailio4-4.3.0/modules/janssonrpc-c/netstring.h -=================================================================== ---- kamailio4-4.3.0.orig/modules/janssonrpc-c/netstring.h -+++ kamailio4-4.3.0/modules/janssonrpc-c/netstring.h +diff -rupN kamailio4-4.4.0/modules/janssonrpc-c/netstring.h kam4/modules/janssonrpc-c/netstring.h +--- kamailio4-4.4.0/modules/janssonrpc-c/netstring.h 2016-04-07 11:26:24.163117016 +0200 ++++ kam4/modules/janssonrpc-c/netstring.h 2016-04-07 11:25:28.070653295 +0200 @@ -24,6 +24,7 @@ #define __NETSTRING_STREAM_H From 90d6123188003ba08a6d0f5aad5d90cfbb90a3ab Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI Date: Sat, 11 Nov 2017 23:33:47 +0100 Subject: [PATCH 3/4] kamailio-4.x: Fix sercmd/kamcmd patch Signed-off-by: Zoltan HERPAI --- .../patches/111-include-sys-time-h-in-sercmd-c.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/kamailio-4.x/patches/111-include-sys-time-h-in-sercmd-c.patch b/net/kamailio-4.x/patches/111-include-sys-time-h-in-sercmd-c.patch index c4e4487..4615889 100644 --- a/net/kamailio-4.x/patches/111-include-sys-time-h-in-sercmd-c.patch +++ b/net/kamailio-4.x/patches/111-include-sys-time-h-in-sercmd-c.patch @@ -1,5 +1,5 @@ ---- a/utils/sercmd/sercmd.c -+++ b/utils/sercmd/sercmd.c +--- a/utils/kamcmd/kamcmd.c ++++ b/utils/kamcmd/kamcmd.c @@ -43,6 +43,7 @@ #include #include /* isprint */ From f0a53c28f09e04eb00ea07d504bccf9bc3d0bc0d Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI Date: Sat, 11 Nov 2017 23:34:29 +0100 Subject: [PATCH 4/4] kamailio-4.x: fix build - drop dialog-ng module - add dependency for hiredis lib Signed-off-by: Zoltan HERPAI --- net/kamailio-4.x/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/kamailio-4.x/Makefile b/net/kamailio-4.x/Makefile index e94b47c..d9a0105 100644 --- a/net/kamailio-4.x/Makefile +++ b/net/kamailio-4.x/Makefile @@ -33,7 +33,7 @@ define Package/kamailio4/Default CATEGORY:=Network SUBMENU:=Telephony URL:=http://www.kamailio.org/ - DEPENDS:=$(ICONV_DEPENDS) +libncurses +libpthread +libreadline +libxml2 + DEPENDS:=$(ICONV_DEPENDS) +libncurses +libpthread +libreadline +libxml2 +hiredis endef define Package/kamailio4 @@ -137,7 +137,6 @@ $(eval $(call BuildKamailio4Module,db_text,Text database-backend,,,dbtext/kamail $(eval $(call BuildKamailio4Module,db_unixodbc,UnixODBC Database-backend,,+unixodbc)) $(eval $(call BuildKamailio4Module,debugger,Interactive config file debugger,,)) $(eval $(call BuildKamailio4Module,dialog,Dialog support,,+kamailio4-mod-rr +kamailio4-mod-tm)) -$(eval $(call BuildKamailio4Module,dialog_ng,Dialog support,,+kamailio4-mod-rr +kamailio4-mod-tm)) $(eval $(call BuildKamailio4Module,dialplan,Dialplan management,,)) $(eval $(call BuildKamailio4Module,dispatcher,Dispatcher,,)) $(eval $(call BuildKamailio4Module,diversion,Diversion header insertion,,))