Hi ports@,

This is update kamailio port.

Changelog:
- update to version 5.1.1
- sync pathes
- sync WANTLIB
- switch to compile with system malloc

Tested on current amd64.

Ok? Comments?
Index: Makefile
===================================================================
RCS file: /cvs/ports/telephony/kamailio/Makefile,v
retrieving revision 1.43
diff -u -p -u -p -r1.43 Makefile
--- Makefile    11 Jan 2018 19:27:11 -0000      1.43
+++ Makefile    1 Mar 2018 15:35:15 -0000
@@ -2,7 +2,7 @@
 
 COMMENT-main =         mature and flexible open source SIP server
 
-VERSION =              5.0.3
+VERSION =              5.1.1
 
 DISTNAME =             kamailio-${VERSION}_src
 
@@ -17,7 +17,6 @@ PKGNAME-snmpstats =   kamailio-snmpstats-$
 PKGNAME-perl =         kamailio-perl-${VERSION}
 PKGNAME-presence =     kamailio-presence-${VERSION}
 PKGNAME-radius =       kamailio-radius-${VERSION}
-REVISION-main =                0
 
 CATEGORIES =           telephony
 MAINTAINER =           Roman Kravchuk <kravchuk...@gmail.com>
@@ -27,10 +26,10 @@ HOMEPAGE =          http://www.kamailio.org/
 # GPLv2+
 PERMIT_PACKAGE_CDROM = Yes
 
-SHARED_LIBS =          srdb1   4.0     # 1.0
-SHARED_LIBS +=         srdb2   4.0     # 1.0
-SHARED_LIBS +=         trie    4.0     # 1.0
-SHARED_LIBS +=         srutils 3.0     # 1.0
+SHARED_LIBS =          srdb1   5.0     # 1.0
+SHARED_LIBS +=         srdb2   5.0     # 1.0
+SHARED_LIBS +=         trie    5.0     # 1.0
+SHARED_LIBS +=         srutils 4.0     # 1.0
 
 MAKE_ENV =             CC="${CC}" \
                        CC_EXTRA_OPTS="${CFLAGS} -DOPENSSL_NO_BUF_FREELISTS 
-DHAVE_ARC4RANDOM -I${LOCALBASE}/include" \
@@ -39,8 +38,9 @@ MAKE_ENV =            CC="${CC}" \
 MASTER_SITES =         http://www.kamailio.org/pub/kamailio/${VERSION}/src/
 WRKDIST =              ${WRKDIR}/kamailio-${VERSION}
 
-WANTLIB-main =         c crypto curl expat event_core event_extra iconv m \
-                       pcre pthread ssl lzma xml2 ncurses readline unistring z
+WANTLIB-main =         c crypto curl curses expat event_core event_extra iconv 
m \
+                       pcre pthread ssl lzma xml2 ncurses readline unistring z 
\
+                       ${COMPILER_LIBCXX}
 
 LIB_DEPENDS-main =     converters/libiconv \
                        converters/libunistring \
@@ -63,10 +63,11 @@ MAKE_FLAGS =        LIBDIR=lib \
                cfg-prefix=${WRKINST} \
                cfg_dir=share/examples/kamailio/ \
                cfg_target=${SYSCONFDIR}/kamailio/ \
-               run_target=${VARBASE}/run/kamailio/ \
+               run_target=${VARBASE}/run/kamailio \
                QUIET=verbose \
                RADCLI=1 \
                SCTP=0 \
+               MEMPKG=sys \
                group_include="${KAMAILIO_GROUPS}" \
                LIBsrdb1_VERSION=${LIBsrdb1_VERSION} \
                LIBsrdb2_VERSION=${LIBsrdb2_VERSION} \
Index: distinfo
===================================================================
RCS file: /cvs/ports/telephony/kamailio/distinfo,v
retrieving revision 1.9
diff -u -p -u -p -r1.9 distinfo
--- distinfo    21 Sep 2017 09:34:32 -0000      1.9
+++ distinfo    1 Mar 2018 15:35:15 -0000
@@ -1,2 +1,2 @@
-SHA256 (kamailio-5.0.3_src.tar.gz) = 
+nX3Oh1AxLorMy3mqk/pqqUxZ5NMb6rfoEJH0tMLVwo=
-SIZE (kamailio-5.0.3_src.tar.gz) = 11678360
+SHA256 (kamailio-5.1.1_src.tar.gz) = 
lvFf1jnW6i9PmSHoPs3f8KxCcy8nCbz3Jp1ZGVJnb8Q=
+SIZE (kamailio-5.1.1_src.tar.gz) = 12005671
Index: patches/patch-etc_kamailio_cfg
===================================================================
RCS file: /cvs/ports/telephony/kamailio/patches/patch-etc_kamailio_cfg,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 patch-etc_kamailio_cfg
--- patches/patch-etc_kamailio_cfg      3 Jul 2017 22:14:20 -0000       1.5
+++ patches/patch-etc_kamailio_cfg      1 Mar 2018 15:35:15 -0000
@@ -1,7 +1,8 @@
 $OpenBSD: patch-etc_kamailio_cfg,v 1.5 2017/07/03 22:14:20 sthen Exp $
---- etc/kamailio.cfg.orig      Wed Apr  5 16:32:38 2017
-+++ etc/kamailio.cfg   Mon May 15 21:48:56 2017
-@@ -160,6 +160,9 @@ log_facility=LOG_LOCAL0
+Index: etc/kamailio.cfg
+--- etc/kamailio.cfg.orig
++++ etc/kamailio.cfg
+@@ -161,6 +161,9 @@ log_prefix="{$mt $hdr(CSeq) $ci} "
  /* number of SIP routing processes */
  children=8
  
Index: patches/patch-src_Makefile_defs
===================================================================
RCS file: /cvs/ports/telephony/kamailio/patches/patch-src_Makefile_defs,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-src_Makefile_defs
--- patches/patch-src_Makefile_defs     21 Sep 2017 09:34:32 -0000      1.2
+++ patches/patch-src_Makefile_defs     1 Mar 2018 15:35:15 -0000
@@ -2,7 +2,7 @@ $OpenBSD: patch-src_Makefile_defs,v 1.2 
 Index: src/Makefile.defs
 --- src/Makefile.defs.orig
 +++ src/Makefile.defs
-@@ -316,9 +316,9 @@ ppc_macros= __powerpc __powerpc__ __POWERPC__ __ppc__ 
+@@ -318,9 +318,9 @@ ppc_macros= __powerpc __powerpc__ __POWERPC__ __ppc__ 
  ppc64_macros= __ppc64__ _ARCH_PPC64
  
  mips_macros= __mips__ __mips _MIPS_ARCH_MIPS1
@@ -14,14 +14,14 @@ Index: src/Makefile.defs
  
  alpha_macros= __alpha__ __alpha _M_ALPHA_
  
-@@ -879,16 +879,12 @@ ifeq     ($(ARCH), i386)
+@@ -881,16 +881,12 @@ ifeq     ($(ARCH), i386)
  ifeq          ($(CC_NAME), gcc)
                                C_DEFS+=-DCC_GCC_LIKE_ASM
                                #common stuff
 -                              CFLAGS=-g $(CC_OPT) -funroll-loops  
-Wcast-align $(PROFILE)
 +                              CFLAGS=
-                       #if gcc 6.0+, 5.0+, 4.5+ or 4.2+
- ifeq (,$(strip $(filter-out 4.2+ 4.5+ 5.0+ 6.0+,$(CC_SHORTVER))))
+                       #if gcc 7.0+, 6.0+, 5.0+, 4.5+ or 4.2+
+ ifeq (,$(strip $(filter-out 4.2+ 4.5+ 5.0+ 6.0+ 7.0+,$(CC_SHORTVER))))
  $(call                                set_if_empty,CPUTYPE,athlon64)
 -                                      CFLAGS+=-m32 -minline-all-stringops \
 -                                                      -falign-loops \
@@ -34,7 +34,7 @@ Index: src/Makefile.defs
  else
                        #if gcc 4.0+
  ifeq                  ($(CC_SHORTVER), 4.x)
-@@ -936,8 +932,8 @@ else               # CC_NAME, gcc
+@@ -938,8 +934,8 @@ else               # CC_NAME, gcc
  ifeq          ($(CC_NAME), clang)
  $(call                          set_if_empty,CPUTYPE,athlon64)
                                        C_DEFS+=-DCC_GCC_LIKE_ASM
@@ -45,7 +45,7 @@ Index: src/Makefile.defs
  else                  # CC_NAME, clang
  ifeq          ($(CC_NAME), icc)
                        C_DEFS+=-DCC_GCC_LIKE_ASM
-@@ -961,7 +957,7 @@ ifeq       ($(ARCH), x86_64)
+@@ -963,7 +959,7 @@ ifeq       ($(ARCH), x86_64)
  ifeq          ($(CC_NAME), gcc)
                                C_DEFS+=-DCC_GCC_LIKE_ASM
                                #common stuff
@@ -53,8 +53,8 @@ Index: src/Makefile.defs
 +                              CFLAGS=
                        #if gcc 4.5+
                        # don't add '-mtune=$(CPUTYPE)' - gcc failure
- ifeq                  ($(CC_SHORTVER),$(filter $(CC_SHORTVER),4.5+ 5.0+ 6.0+))
-@@ -975,12 +971,8 @@ else
+ ifeq                  ($(CC_SHORTVER),$(filter $(CC_SHORTVER),4.5+ 5.0+ 6.0+ 
7.0+))
+@@ -977,12 +973,8 @@ else
                        #if gcc 4.2+
  ifeq                  ($(CC_SHORTVER), 4.2+)
  $(call                                set_if_empty,CPUTYPE,opteron)
@@ -69,7 +69,7 @@ Index: src/Makefile.defs
  else
                        #if gcc 4.0+
  ifeq                  ($(CC_SHORTVER), 4.x)
-@@ -1029,9 +1021,8 @@ else             # CC_NAME, gcc
+@@ -1031,9 +1023,8 @@ else             # CC_NAME, gcc
  ifeq            ($(CC_NAME), clang)
  $(call                          set_if_empty,CPUTYPE,opteron)
                                        C_DEFS+=-DCC_GCC_LIKE_ASM
Index: patches/patch-src_core_core_cmd_c
===================================================================
RCS file: patches/patch-src_core_core_cmd_c
diff -N patches/patch-src_core_core_cmd_c
--- patches/patch-src_core_core_cmd_c   21 Sep 2017 09:34:32 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
-$OpenBSD: patch-src_core_core_cmd_c,v 1.1 2017/09/21 09:34:32 sthen Exp $
-
-Index: src/core/core_cmd.c
---- src/core/core_cmd.c.orig
-+++ src/core/core_cmd.c
-@@ -943,7 +943,7 @@ static void core_sockets_list(rpc_t* rpc, void* c)
-                               rpc->struct_add(ha, "ss",
-                                               "proto", get_proto_name(proto),
-                                               "address", si->name.s);
--                              if (!si->flags & SI_IS_IP)
-+                              if (!(si->flags & SI_IS_IP))
-                                       rpc->struct_add(ha, "s",
-                                               "ipaddress", si->address_str.s);
-                               rpc->struct_add(ha, "sss",
Index: patches/patch-src_core_pt_c
===================================================================
RCS file: /cvs/ports/telephony/kamailio/patches/patch-src_core_pt_c,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-src_core_pt_c
--- patches/patch-src_core_pt_c 21 Sep 2017 09:34:32 -0000      1.2
+++ patches/patch-src_core_pt_c 1 Mar 2018 15:35:15 -0000
@@ -2,7 +2,7 @@ $OpenBSD: patch-src_core_pt_c,v 1.2 2017
 Index: src/core/pt.c
 --- src/core/pt.c.orig
 +++ src/core/pt.c
-@@ -249,8 +249,10 @@ int fork_process(int child_id, char *desc, int make_so
+@@ -255,8 +255,10 @@ int fork_process(int child_id, char *desc, int make_so
  {
        int pid, child_process_no;
        int ret;
@@ -13,7 +13,7 @@ Index: src/core/pt.c
  #ifdef USE_TCP
        int sockfd[2];
  #endif
-@@ -289,8 +291,10 @@ int fork_process(int child_id, char *desc, int make_so
+@@ -295,8 +297,10 @@ int fork_process(int child_id, char *desc, int make_so
        }
  
        child_process_no = *process_count;
@@ -24,7 +24,7 @@ Index: src/core/pt.c
        pid = fork();
        if (pid<0) {
                lock_release(process_lock);
-@@ -305,9 +309,11 @@ int fork_process(int child_id, char *desc, int make_so
+@@ -311,9 +315,11 @@ int fork_process(int child_id, char *desc, int make_so
  #ifdef USE_TCP
                close_extra_socks(child_id, process_no);
  #endif /* USE_TCP */
@@ -36,7 +36,7 @@ Index: src/core/pt.c
                shm_malloc_on_fork();
  #ifdef PROFILING
                monstartup((u_long) &_start, (u_long) &etext);
-@@ -384,8 +390,10 @@ int fork_tcp_process(int child_id, char *desc, int r, 
+@@ -390,8 +396,10 @@ int fork_tcp_process(int child_id, char *desc, int r, 
        int reader_fd[2]; /* for comm. with the tcp children read  */
        int ret;
        int i;
@@ -47,7 +47,7 @@ Index: src/core/pt.c
  
        /* init */
        sockfd[0]=sockfd[1]=-1;
-@@ -423,8 +431,10 @@ int fork_tcp_process(int child_id, char *desc, int r, 
+@@ -429,8 +437,10 @@ int fork_tcp_process(int child_id, char *desc, int r, 
        }
  
        child_process_no = *process_count;
@@ -58,7 +58,7 @@ Index: src/core/pt.c
        pid = fork();
        if (pid<0) {
                lock_release(process_lock);
-@@ -446,9 +456,11 @@ int fork_tcp_process(int child_id, char *desc, int r, 
+@@ -452,9 +462,11 @@ int fork_tcp_process(int child_id, char *desc, int r, 
                        }
                }
                daemon_status_on_fork_cleanup();
Index: patches/patch-src_core_rand_fastrand_c
===================================================================
RCS file: /cvs/ports/telephony/kamailio/patches/patch-src_core_rand_fastrand_c,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-src_core_rand_fastrand_c
--- patches/patch-src_core_rand_fastrand_c      3 Jul 2017 22:14:20 -0000       
1.1
+++ patches/patch-src_core_rand_fastrand_c      1 Mar 2018 15:35:15 -0000
@@ -1,7 +1,8 @@
 $OpenBSD: patch-src_core_rand_fastrand_c,v 1.1 2017/07/03 22:14:20 sthen Exp $
---- src/core/rand/fastrand.c.orig      Mon May 15 22:48:56 2017
-+++ src/core/rand/fastrand.c   Mon May 15 22:50:19 2017
-@@ -25,6 +25,18 @@
+Index: src/core/rand/fastrand.c
+--- src/core/rand/fastrand.c.orig
++++ src/core/rand/fastrand.c
+@@ -23,6 +23,18 @@
  #include "fastrand.h"
  
  #include <stdlib.h>
@@ -20,7 +21,7 @@ $OpenBSD: patch-src_core_rand_fastrand_c
  #include "isaac/rand.h"
  
  #define FASTRAND_MAX  ((unsigned int)(-1))
-@@ -54,3 +66,4 @@ unsigned int fastrand_max(unsigned int max)
+@@ -52,3 +64,4 @@ unsigned int fastrand_max(unsigned int max)
  {
        return fastrand()%(max+1);
  }
Index: patches/patch-src_core_select_core_c
===================================================================
RCS file: /cvs/ports/telephony/kamailio/patches/patch-src_core_select_core_c,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-src_core_select_core_c
--- patches/patch-src_core_select_core_c        3 Jul 2017 22:14:20 -0000       
1.1
+++ patches/patch-src_core_select_core_c        1 Mar 2018 15:35:15 -0000
@@ -1,7 +1,8 @@
 $OpenBSD: patch-src_core_select_core_c,v 1.1 2017/07/03 22:14:20 sthen Exp $
---- src/core/select_core.c.orig        Mon May 15 22:51:55 2017
-+++ src/core/select_core.c     Mon May 15 22:53:45 2017
-@@ -1513,7 +1513,11 @@ int select_sys_unique(str* res, select_t* s, struct si
+Index: src/core/select_core.c
+--- src/core/select_core.c.orig
++++ src/core/select_core.c
+@@ -1504,7 +1504,11 @@ int select_sys_unique(str* res, select_t* s, struct si
                for (i = UNIQUE_ID_FIX_LEN, cb = 0, x = 0; i < 
UNIQUE_ID_FIX_LEN+UNIQUE_ID_RAND_LEN; i++) {
                        if (!cb) {
                                cb = rb;
Index: patches/patch-src_core_socket_info_c
===================================================================
RCS file: patches/patch-src_core_socket_info_c
diff -N patches/patch-src_core_socket_info_c
--- patches/patch-src_core_socket_info_c        21 Sep 2017 09:34:32 -0000      
1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
-$OpenBSD: patch-src_core_socket_info_c,v 1.1 2017/09/21 09:34:32 sthen Exp $
-
-Index: src/core/socket_info.c
---- src/core/socket_info.c.orig
-+++ src/core/socket_info.c
-@@ -1912,7 +1912,7 @@ void print_all_socket_lists()
-                               printf("             %s: %s",
-                                               get_valid_proto_name(proto),
-                                               si->name.s);
--                              if (!si->flags & SI_IS_IP)
-+                              if (!(si->flags & SI_IS_IP))
-                                       printf(" [%s]", si->address_str.s);
-                               printf( ":%s%s%s",
-                                               si->port_no_str.s, 
Index: patches/patch-src_core_tcp_read_c
===================================================================
RCS file: /cvs/ports/telephony/kamailio/patches/patch-src_core_tcp_read_c,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-src_core_tcp_read_c
--- patches/patch-src_core_tcp_read_c   21 Sep 2017 09:34:32 -0000      1.2
+++ patches/patch-src_core_tcp_read_c   1 Mar 2018 15:35:15 -0000
@@ -3,7 +3,7 @@ $OpenBSD: patch-src_core_tcp_read_c,v 1.
 Index: src/core/tcp_read.c
 --- src/core/tcp_read.c.orig
 +++ src/core/tcp_read.c
-@@ -1503,6 +1503,14 @@ void release_tcpconn(struct tcp_connection* c, long st
+@@ -1663,6 +1663,14 @@ void release_tcpconn(struct tcp_connection* c, long st
                                ip_addr2a(&c->rcv.src_ip), c->rcv.src_port,
                                ip_addr2a(&c->rcv.dst_ip), c->rcv.dst_port);
                LM_DBG("extra_data %p\n", c->extra_data);
Index: patches/patch-src_main_c
===================================================================
RCS file: /cvs/ports/telephony/kamailio/patches/patch-src_main_c,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-src_main_c
--- patches/patch-src_main_c    21 Sep 2017 09:34:32 -0000      1.2
+++ patches/patch-src_main_c    1 Mar 2018 15:35:15 -0000
@@ -2,7 +2,7 @@ $OpenBSD: patch-src_main_c,v 1.2 2017/09
 Index: src/main.c
 --- src/main.c.orig
 +++ src/main.c
-@@ -1842,8 +1842,10 @@ int main(int argc, char** argv)
+@@ -1845,8 +1845,10 @@ int main(int argc, char** argv)
        int proto;
        char *options;
        int ret;
@@ -13,7 +13,7 @@ Index: src/main.c
        int debug_save, debug_flag;
        int dont_fork_cnt;
        struct name_lst* n_lst;
-@@ -2109,6 +2111,7 @@ int main(int argc, char** argv)
+@@ -2112,6 +2114,7 @@ int main(int argc, char** argv)
                goto error;
        }
  
@@ -21,7 +21,7 @@ Index: src/main.c
        /* seed the prng */
        /* try to use /dev/urandom if possible */
        seed=0;
-@@ -2129,6 +2132,7 @@ try_again:
+@@ -2132,6 +2135,7 @@ try_again:
        fastrand_seed(kam_rand());
        srandom(kam_rand()+time(0));
        LM_DBG("test random numbers %u %lu %u\n", kam_rand(), random(), 
fastrand());
Index: patches/patch-src_modules_db_berkeley_bdb_lib_c
===================================================================
RCS file: 
/cvs/ports/telephony/kamailio/patches/patch-src_modules_db_berkeley_bdb_lib_c,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-src_modules_db_berkeley_bdb_lib_c
--- patches/patch-src_modules_db_berkeley_bdb_lib_c     3 Jul 2017 22:14:20 
-0000       1.1
+++ patches/patch-src_modules_db_berkeley_bdb_lib_c     1 Mar 2018 15:35:15 
-0000
@@ -1,7 +1,8 @@
 $OpenBSD: patch-src_modules_db_berkeley_bdb_lib_c,v 1.1 2017/07/03 22:14:20 
sthen Exp $
---- src/modules/db_berkeley/bdb_lib.c.orig     Mon May 15 23:34:21 2017
-+++ src/modules/db_berkeley/bdb_lib.c  Mon May 15 23:34:56 2017
-@@ -666,7 +666,7 @@ int bdblib_create_journal(bdb_db_p _db_p, bdb_table_p 
+Index: src/modules/db_berkeley/bdb_lib.c
+--- src/modules/db_berkeley/bdb_lib.c.orig
++++ src/modules/db_berkeley/bdb_lib.c
+@@ -623,7 +623,7 @@ int bdblib_create_journal(bdb_db_p _db_p, bdb_table_p 
  {
        char *s;
        char fn[1024];
@@ -10,12 +11,12 @@ $OpenBSD: patch-src_modules_db_berkeley_
        FILE *fp = NULL;
        struct tm *t;
        int bl;
-@@ -686,7 +686,7 @@ int bdblib_create_journal(bdb_db_p _db_p, bdb_table_p 
-       s+=_tp->name.len;
-       
-       t = localtime( &tim );
--      bl=strftime(d,128,"-%Y%m%d%H%M%S.jnl",t);
-+      bl=strftime(d,sizeof(d),"-%Y%m%d%H%M%S.jnl",t);
+@@ -645,7 +645,7 @@ int bdblib_create_journal(bdb_db_p _db_p, bdb_table_p 
+       s += _tp->name.len;
+ 
+       t = localtime(&tim);
+-      bl = strftime(d, 128, "-%Y%m%d%H%M%S.jnl", t);
++      bl = strftime(d, sizeof(d), "-%Y%m%d%H%M%S.jnl", t);
        strncpy(s, d, bl);
-       s+= bl;
+       s += bl;
        *s = 0;
Index: patches/patch-src_modules_db_berkeley_km_bdb_lib_c
===================================================================
RCS file: 
/cvs/ports/telephony/kamailio/patches/patch-src_modules_db_berkeley_km_bdb_lib_c,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-src_modules_db_berkeley_km_bdb_lib_c
--- patches/patch-src_modules_db_berkeley_km_bdb_lib_c  3 Jul 2017 22:14:20 
-0000       1.1
+++ patches/patch-src_modules_db_berkeley_km_bdb_lib_c  1 Mar 2018 15:35:15 
-0000
@@ -1,7 +1,8 @@
 $OpenBSD: patch-src_modules_db_berkeley_km_bdb_lib_c,v 1.1 2017/07/03 22:14:20 
sthen Exp $
---- src/modules/db_berkeley/km_bdb_lib.c.orig  Mon May 15 23:35:24 2017
-+++ src/modules/db_berkeley/km_bdb_lib.c       Mon May 15 23:36:06 2017
-@@ -719,7 +719,7 @@ int km_bdblib_create_journal(table_p _tp)
+Index: src/modules/db_berkeley/km_bdb_lib.c
+--- src/modules/db_berkeley/km_bdb_lib.c.orig
++++ src/modules/db_berkeley/km_bdb_lib.c
+@@ -676,7 +676,7 @@ int km_bdblib_create_journal(table_p _tp)
  {
        char *s;
        char fn[1024];
@@ -10,12 +11,12 @@ $OpenBSD: patch-src_modules_db_berkeley_
        FILE *fp = NULL;
        struct tm *t;
        int bl;
-@@ -740,7 +740,7 @@ int km_bdblib_create_journal(table_p _tp)
-       s+=_tp->name.len;
-       
-       t = localtime( &tim );
--      bl=strftime(d,128,"-%Y%m%d%H%M%S.jnl",t);
-+      bl=strftime(d,sizeof(d),"-%Y%m%d%H%M%S.jnl",t);
+@@ -699,7 +699,7 @@ int km_bdblib_create_journal(table_p _tp)
+       s += _tp->name.len;
+ 
+       t = localtime(&tim);
+-      bl = strftime(d, 128, "-%Y%m%d%H%M%S.jnl", t);
++      bl = strftime(d, sizeof(d), "-%Y%m%d%H%M%S.jnl", t);
        strncpy(s, d, bl);
-       s+= bl;
+       s += bl;
        *s = 0;
Index: patches/patch-src_modules_db_mysql_my_cmd_c
===================================================================
RCS file: 
/cvs/ports/telephony/kamailio/patches/patch-src_modules_db_mysql_my_cmd_c,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-src_modules_db_mysql_my_cmd_c
--- patches/patch-src_modules_db_mysql_my_cmd_c 3 Jul 2017 22:14:20 -0000       
1.1
+++ patches/patch-src_modules_db_mysql_my_cmd_c 1 Mar 2018 15:35:15 -0000
@@ -9,7 +9,7 @@ Index: src/modules/db_mysql/my_cmd.c
  /* the following macro will break the compile on solaris */
 -#if !defined (__SVR4) && !defined (__sun)
 +#if !defined (__SVR4) && !defined (__sun) && !defined (__OpenBSD__)
-    #define _XOPEN_SOURCE 4     /* bsd */
+ #define _XOPEN_SOURCE 4     /* bsd */
  #endif
  #define _XOPEN_SOURCE_EXTENDED 1    /* solaris */
 @@ -45,6 +45,7 @@
Index: patches/patch-src_modules_ipops_detailed_ip_type_c
===================================================================
RCS file: 
/cvs/ports/telephony/kamailio/patches/patch-src_modules_ipops_detailed_ip_type_c,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-src_modules_ipops_detailed_ip_type_c
--- patches/patch-src_modules_ipops_detailed_ip_type_c  3 Jul 2017 22:14:20 
-0000       1.1
+++ patches/patch-src_modules_ipops_detailed_ip_type_c  1 Mar 2018 15:35:15 
-0000
@@ -3,7 +3,7 @@ $OpenBSD: patch-src_modules_ipops_detail
 Index: src/modules/ipops/detailed_ip_type.c
 --- src/modules/ipops/detailed_ip_type.c.orig
 +++ src/modules/ipops/detailed_ip_type.c
-@@ -26,7 +26,7 @@
+@@ -24,7 +24,7 @@
  #include <stdio.h>
  #include <stdlib.h>
  #include <arpa/inet.h>
Index: patches/patch-src_modules_nat_traversal_nat_traversal_c
===================================================================
RCS file: 
/cvs/ports/telephony/kamailio/patches/patch-src_modules_nat_traversal_nat_traversal_c,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-src_modules_nat_traversal_nat_traversal_c
--- patches/patch-src_modules_nat_traversal_nat_traversal_c     21 Sep 2017 
09:34:32 -0000      1.2
+++ patches/patch-src_modules_nat_traversal_nat_traversal_c     1 Mar 2018 
15:35:15 -0000
@@ -3,12 +3,12 @@ $OpenBSD: patch-src_modules_nat_traversa
 Index: src/modules/nat_traversal/nat_traversal.c
 --- src/modules/nat_traversal/nat_traversal.c.orig
 +++ src/modules/nat_traversal/nat_traversal.c
-@@ -1691,7 +1691,7 @@ restore_keepalive_state(void)
-     res = fscanf(f, STATE_FILE_HEADER); // skip header
+@@ -1754,7 +1754,7 @@ static void restore_keepalive_state(void)
+       res = fscanf(f, STATE_FILE_HEADER); // skip header
  
-     while (true) {
--        res = fscanf(f, "%63s %63s %ld %ld", uri, socket, &rtime, &stime);
-+        res = fscanf(f, "%63s %63s %lld %lld", uri, socket, &rtime, &stime);
-         if (res == EOF) {
-             if (ferror(f))
-                 LM_ERR("error while reading keepalive state file: %s\n", 
strerror(errno));
+       while(true) {
+-              res = fscanf(f, "%63s %63s %ld %ld", uri, socket, &rtime, 
&stime);
++              res = fscanf(f, "%63s %63s %lld %lld", uri, socket, &rtime, 
&stime);
+               if(res == EOF) {
+                       if(ferror(f))
+                               LM_ERR("error while reading keepalive state 
file: %s\n",
Index: patches/patch-src_modules_rls_utils_c
===================================================================
RCS file: patches/patch-src_modules_rls_utils_c
diff -N patches/patch-src_modules_rls_utils_c
--- patches/patch-src_modules_rls_utils_c       21 Sep 2017 09:34:32 -0000      
1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,22 +0,0 @@
-$OpenBSD: patch-src_modules_rls_utils_c,v 1.2 2017/09/21 09:34:32 sthen Exp $
-
-Index: src/modules/rls/utils.c
---- src/modules/rls/utils.c.orig
-+++ src/modules/rls/utils.c
-@@ -26,14 +26,14 @@
- #define SIP_PREFIX        "sip:"
- #define SIP_PREFIX_LEN    sizeof(SIP_PREFIX)-1
- 
--str* normalize_sip_uri(const str *uri)
-+str* normalize_sip_uri(str *uri)
- {
-       static str normalized_uri;
-       static str null_str = {NULL, 0};
-       static char buf[MAX_URI_SIZE];
- 
-       normalized_uri.s = buf;
--      if (un_escape((str *)uri, &normalized_uri) < 0)
-+      if (un_escape(uri, &normalized_uri) < 0)
-       {
-               LM_ERR("un-escaping URI\n");
-               return &null_str;
Index: patches/patch-src_modules_rls_utils_h
===================================================================
RCS file: patches/patch-src_modules_rls_utils_h
diff -N patches/patch-src_modules_rls_utils_h
--- patches/patch-src_modules_rls_utils_h       3 Jul 2017 22:14:20 -0000       
1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,13 +0,0 @@
-$OpenBSD: patch-src_modules_rls_utils_h,v 1.1 2017/07/03 22:14:20 sthen Exp $
-
-Index: src/modules/rls/utils.h
---- src/modules/rls/utils.h.orig
-+++ src/modules/rls/utils.h
-@@ -26,6 +26,6 @@
- 
- #include "../../core/ut.h"
- 
--extern str* normalize_sip_uri(const str *uri);
-+extern str* normalize_sip_uri(str *uri);
- 
- #endif
Index: patches/patch-src_modules_tls_tls_bio_c
===================================================================
RCS file: 
/cvs/ports/telephony/kamailio/patches/patch-src_modules_tls_tls_bio_c,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-src_modules_tls_tls_bio_c
--- patches/patch-src_modules_tls_tls_bio_c     19 Feb 2018 22:43:28 -0000      
1.1
+++ patches/patch-src_modules_tls_tls_bio_c     1 Mar 2018 15:35:15 -0000
@@ -13,7 +13,27 @@ Index: src/modules/tls/tls_bio.c
  static BIO_METHOD tls_mbuf_method = {
        BIO_TYPE_TLS_MBUF,      /* type */
        "sr_tls_mbuf",          /* name */
-@@ -105,7 +106,8 @@ static BIO_METHOD *tls_mbuf_method = NULL;
+@@ -98,6 +99,19 @@ static void BIO_set_init(BIO *b, int init)
+       b->init = init;
+ }
+ #else
++#if defined(LIBRESSL_VERSION_NUMBER)
++/*
++ * libressl doesn't have OPENSSL_zalloc
++ */
++static void *CRYPTO_zalloc(size_t num, const char *file, int line)
++{
++      void *ret = CRYPTO_malloc(num, file, line);
++      if (ret != NULL)
++              memset(ret, 0, num);
++      return ret;
++}
++# define OPENSSL_zalloc(num) CRYPTO_zalloc(num, __FILE__, __LINE__)
++#endif
+ static BIO_METHOD *tls_mbuf_method = NULL;
+ #endif
+ 
+@@ -105,7 +119,8 @@ static BIO_METHOD *tls_mbuf_method = NULL;
  /** returns a custom tls_mbuf BIO. */
  BIO_METHOD* tls_BIO_mbuf(void)
  {
@@ -23,17 +43,3 @@ Index: src/modules/tls/tls_bio.c
        return &tls_mbuf_method;
  #else
        if(tls_mbuf_method != NULL) {
-@@ -123,7 +125,13 @@ BIO_METHOD* tls_BIO_mbuf(void)
-       BIO_meth_set_ctrl(tls_mbuf_method, tls_bio_mbuf_ctrl);
-       BIO_meth_set_create(tls_mbuf_method, tls_bio_mbuf_new);
-       BIO_meth_set_destroy(tls_mbuf_method, tls_bio_mbuf_free);
-+#if defined(LIBRESSL_VERSION_NUMBER)
-+/*
-+ * libressl doesn't have this accessor yet, however it's a noop here
-+ * as BIO_meth_new returns zeroed space
-+ */
-       BIO_meth_set_callback_ctrl(tls_mbuf_method, NULL);
-+#endif
-       return tls_mbuf_method;
- #endif
- }
Index: patches/patch-src_modules_tls_tls_init_c
===================================================================
RCS file: 
/cvs/ports/telephony/kamailio/patches/patch-src_modules_tls_tls_init_c,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-src_modules_tls_tls_init_c
--- patches/patch-src_modules_tls_tls_init_c    21 Sep 2017 09:34:32 -0000      
1.2
+++ patches/patch-src_modules_tls_tls_init_c    1 Mar 2018 15:35:15 -0000
@@ -3,7 +3,7 @@ $OpenBSD: patch-src_modules_tls_tls_init
 Index: src/modules/tls/tls_init.c
 --- src/modules/tls/tls_init.c.orig
 +++ src/modules/tls/tls_init.c
-@@ -119,7 +119,7 @@ to compile on the  _target_ system)"
+@@ -119,7 +119,7 @@ static int tls_mod_initialized = 0;
  int openssl_kssl_malloc_bug=0; /* is openssl bug #1467 present ? */
  #endif
  
@@ -12,24 +12,7 @@ Index: src/modules/tls/tls_init.c
  const SSL_METHOD* ssl_methods[TLS_METHOD_MAX];
  #else
  sr_tls_methods_t sr_tls_methods[TLS_METHOD_MAX];
-@@ -143,7 +143,7 @@ sr_tls_methods_t sr_tls_methods[TLS_METHOD_MAX];
- */
- 
- 
--
-+#ifndef LIBRESSL_VERSION_NUMBER
- inline static char* buf_append(char* buf, char* end, char* str, int str_len)
- {
-       if ( (buf+str_len)<end){
-@@ -321,6 +321,7 @@ static void ser_free(void *ptr, const char *fname, int
- }
- #endif
- 
-+#endif /* LIBRESSL_VERSION_NUMBER */
- 
- /*
-  * Initialize TLS socket
-@@ -356,7 +357,7 @@ error:
+@@ -361,7 +361,7 @@ error:
   */
  static void init_ssl_methods(void)
  {
@@ -38,96 +21,7 @@ Index: src/modules/tls/tls_init.c
        /* libssl < 1.1.0 */
        memset(ssl_methods, 0, sizeof(ssl_methods));
  
-@@ -366,7 +367,7 @@ static void init_ssl_methods(void)
-       ssl_methods[TLS_USE_SSLv23 - 1] = SSLv23_method();
- 
-       /* only specific SSL or TLS version */
--#if OPENSSL_VERSION_NUMBER < 0x010100000L
-+#if OPENSSL_VERSION_NUMBER < 0x010100000L || defined(LIBRESSL_VERSION_NUMBER)
- #ifndef OPENSSL_NO_SSL2
-       ssl_methods[TLS_USE_SSLv2_cli - 1] = SSLv2_client_method();
-       ssl_methods[TLS_USE_SSLv2_srv - 1] = SSLv2_server_method();
-@@ -384,13 +385,13 @@ static void init_ssl_methods(void)
-       ssl_methods[TLS_USE_TLSv1_srv - 1] = TLSv1_server_method();
-       ssl_methods[TLS_USE_TLSv1 - 1] = TLSv1_method();
- 
--#if OPENSSL_VERSION_NUMBER >= 0x1000100fL
-+#if OPENSSL_VERSION_NUMBER >= 0x1000100fL && !defined(LIBRESSL_VERSION_NUMBER)
-       ssl_methods[TLS_USE_TLSv1_1_cli - 1] = TLSv1_1_client_method();
-       ssl_methods[TLS_USE_TLSv1_1_srv - 1] = TLSv1_1_server_method();
-       ssl_methods[TLS_USE_TLSv1_1 - 1] = TLSv1_1_method();
- #endif
- 
--#if OPENSSL_VERSION_NUMBER >= 0x1000105fL
-+#if OPENSSL_VERSION_NUMBER >= 0x1000105fL && !defined(LIBRESSL_VERSION_NUMBER)
-       ssl_methods[TLS_USE_TLSv1_2_cli - 1] = TLSv1_2_client_method();
-       ssl_methods[TLS_USE_TLSv1_2_srv - 1] = TLSv1_2_server_method();
-       ssl_methods[TLS_USE_TLSv1_2 - 1] = TLSv1_2_method();
-@@ -399,11 +400,11 @@ static void init_ssl_methods(void)
-       /* ranges of TLS versions (require a minimum TLS version) */
-       ssl_methods[TLS_USE_TLSv1_PLUS - 1] = (void*)TLS_OP_TLSv1_PLUS;
- 
--#if OPENSSL_VERSION_NUMBER >= 0x1000100fL
-+#if OPENSSL_VERSION_NUMBER >= 0x1000100fL && !defined(LIBRESSL_VERSION_NUMBER)
-       ssl_methods[TLS_USE_TLSv1_1_PLUS - 1] = (void*)TLS_OP_TLSv1_1_PLUS;
- #endif
- 
--#if OPENSSL_VERSION_NUMBER >= 0x1000105fL
-+#if OPENSSL_VERSION_NUMBER >= 0x1000105fL && !defined(LIBRESSL_VERSION_NUMBER)
-       ssl_methods[TLS_USE_TLSv1_2_PLUS - 1] = (void*)TLS_OP_TLSv1_2_PLUS;
- #endif
- 
-@@ -477,6 +478,7 @@ static void init_ssl_methods(void)
-  */
- static int init_tls_compression(void)
- {
-+#ifndef LIBRESSL_VERSION_NUMBER
- #if OPENSSL_VERSION_NUMBER < 0x010100000L
- #if OPENSSL_VERSION_NUMBER >= 0x00908000L
-       int n, r;
-@@ -563,6 +565,7 @@ static int init_tls_compression(void)
- end:
- #endif /* OPENSSL_VERSION_NUMBER >= 0.9.8 */
- #endif /* OPENSSL_VERSION_NUMBER < 1.1.0 */
-+#endif /* LIBRESSL_VERSION_NUMBER */
-       return 0;
- }
- 
-@@ -573,6 +576,7 @@ end:
-  */
- int tls_pre_init(void)
- {
-+#ifndef LIBRESSL_VERSION_NUMBER
- #if OPENSSL_VERSION_NUMBER < 0x010100000L
-       void *(*mf)(size_t) = NULL;
-       void *(*rf)(void *, size_t) = NULL;
-@@ -599,6 +603,7 @@ int tls_pre_init(void)
-                               " (can be loaded first to be safe)\n");
-               return -1;
-       }
-+#endif /* LIBRESSL_VERSION_NUMBER */
- 
-       if (tls_init_locks()<0)
-               return -1;
-@@ -632,7 +637,7 @@ int init_tls_h(void)
- {
-       /*struct socket_info* si;*/
-       long ssl_version;
--#if OPENSSL_VERSION_NUMBER < 0x010100000L
-+#if OPENSSL_VERSION_NUMBER < 0x010100000L && !defined(LIBRESSL_VERSION_NUMBER)
-       int lib_kerberos;
-       int lib_zlib;
-       int kerberos_support;
-@@ -676,7 +681,7 @@ int init_tls_h(void)
-       }
- 
- /* check kerberos support using compile flags only for version < 1.1.0 */
--#if OPENSSL_VERSION_NUMBER < 0x010100000L
-+#if OPENSSL_VERSION_NUMBER < 0x010100000L && !defined(LIBRESSL_VERSION_NUMBER)
- 
- #ifdef TLS_KERBEROS_SUPPORT
-       kerberos_support=1;
-@@ -847,7 +852,7 @@ void destroy_tls_h(void)
+@@ -857,7 +857,7 @@ void destroy_tls_h(void)
        tls_destroy_cfg();
        tls_destroy_locks();
        tls_ct_wq_destroy();
@@ -135,4 +29,4 @@ Index: src/modules/tls/tls_init.c
 +#if OPENSSL_VERSION_NUMBER >= 0x010100000L && 
!defined(LIBRESSL_VERSION_NUMBER)
        /* explicit execution of libssl cleanup to avoid being executed again
         * by atexit(), when shm is gone */
-       DBG("executing openssl v1.1+ cleanup\n");
+       LM_DBG("executing openssl v1.1+ cleanup\n");
Index: patches/patch-src_modules_tls_tls_locking_c
===================================================================
RCS file: 
/cvs/ports/telephony/kamailio/patches/patch-src_modules_tls_tls_locking_c,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-src_modules_tls_tls_locking_c
--- patches/patch-src_modules_tls_tls_locking_c 21 Sep 2017 09:34:32 -0000      
1.1
+++ patches/patch-src_modules_tls_tls_locking_c 1 Mar 2018 15:35:15 -0000
@@ -3,15 +3,6 @@ $OpenBSD: patch-src_modules_tls_tls_lock
 Index: src/modules/tls/tls_locking.c
 --- src/modules/tls/tls_locking.c.orig
 +++ src/modules/tls/tls_locking.c
-@@ -33,7 +33,7 @@ static int n_static_locks=0;
- static gen_lock_set_t* static_locks=0;
- 
- /* OpenSSL is thread-safe since 1.1.0 */
--#if OPENSSL_VERSION_NUMBER < 0x10100000L
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
- 
- /* "dynamic" locks */
- 
 @@ -168,7 +168,7 @@ int tls_init_locks()
        }
  
Index: patches/patch-src_modules_xhttp_pi_xhttp_pi_fnc_c
===================================================================
RCS file: 
/cvs/ports/telephony/kamailio/patches/patch-src_modules_xhttp_pi_xhttp_pi_fnc_c,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-src_modules_xhttp_pi_xhttp_pi_fnc_c
--- patches/patch-src_modules_xhttp_pi_xhttp_pi_fnc_c   21 Sep 2017 09:34:32 
-0000      1.2
+++ patches/patch-src_modules_xhttp_pi_xhttp_pi_fnc_c   1 Mar 2018 15:35:15 
-0000
@@ -3,7 +3,7 @@ $OpenBSD: patch-src_modules_xhttp_pi_xht
 Index: src/modules/xhttp_pi/xhttp_pi_fnc.c
 --- src/modules/xhttp_pi/xhttp_pi_fnc.c.orig
 +++ src/modules/xhttp_pi/xhttp_pi_fnc.c
-@@ -3193,7 +3193,7 @@ int ph_run_pi_cmd(pi_ctx_t* ctx)
+@@ -3186,7 +3186,7 @@ int ph_run_pi_cmd(pi_ctx_t* ctx)
                                                val_str.len = max_page_len - 
ctx->reply.body.len;
                                                
if(db_time2str(values[j].val.time_val,
                                                                        
val_str.s, &val_str.len)!=0){
@@ -12,7 +12,7 @@ Index: src/modules/xhttp_pi/xhttp_pi_fnc
                                                                
values[j].val.time_val);
                                                        goto error;
                                                }
-@@ -3201,7 +3201,7 @@ int ph_run_pi_cmd(pi_ctx_t* ctx)
+@@ -3194,7 +3194,7 @@ int ph_run_pi_cmd(pi_ctx_t* ctx)
                                                ctx->reply.body.len += 
val_str.len;
                                                if(link_on) 
XHTTP_PI_COPY_2(p,XHTTP_PI_SQUOT_GT,val_str);
                                                LM_DBG("   got %.*s[%d]=>"
Index: patches/patch-src_modules_xmlrpc_xmlrpc_c
===================================================================
RCS file: patches/patch-src_modules_xmlrpc_xmlrpc_c
diff -N patches/patch-src_modules_xmlrpc_xmlrpc_c
--- patches/patch-src_modules_xmlrpc_xmlrpc_c   3 Jul 2017 22:14:20 -0000       
1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
-$OpenBSD: patch-src_modules_xmlrpc_xmlrpc_c,v 1.1 2017/07/03 22:14:20 sthen 
Exp $
-
-Index: src/modules/xmlrpc/xmlrpc.c
---- src/modules/xmlrpc/xmlrpc.c.orig
-+++ src/modules/xmlrpc/xmlrpc.c
-@@ -19,7 +19,7 @@
-  * Temple Place, Suite 330, Boston, MA 02111-1307 USA
-  */
- /*This define breaks on Solaris OS */
--#ifndef __OS_solaris
-+#if !defined (__OS_solaris) && !defined (__OpenBSD__)
-       #define _XOPEN_SOURCE 4           /* strptime */
- #endif
- #define _XOPEN_SOURCE_EXTENDED 1  /* solaris */
Index: patches/patch-utils_kamctl_kamctl_base
===================================================================
RCS file: /cvs/ports/telephony/kamailio/patches/patch-utils_kamctl_kamctl_base,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 patch-utils_kamctl_kamctl_base
--- patches/patch-utils_kamctl_kamctl_base      3 Jul 2017 22:14:20 -0000       
1.5
+++ patches/patch-utils_kamctl_kamctl_base      1 Mar 2018 15:35:15 -0000
@@ -1,7 +1,8 @@
 $OpenBSD: patch-utils_kamctl_kamctl_base,v 1.5 2017/07/03 22:14:20 sthen Exp $
---- utils/kamctl/kamctl.base.orig      Wed Apr  5 16:32:39 2017
-+++ utils/kamctl/kamctl.base   Mon May 15 21:48:56 2017
-@@ -556,7 +556,7 @@ USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_ksr_srv"
+Index: utils/kamctl/kamctl.base
+--- utils/kamctl/kamctl.base.orig
++++ utils/kamctl/kamctl.base
+@@ -559,7 +559,7 @@ USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_ksr_srv"
  mdbg() {
        if [ "0$VERBOSE" -ne 0 ] ; then
                if [ -t 1 -a -z "$NOHLPRINT" ] ; then
@@ -10,7 +11,7 @@ $OpenBSD: patch-utils_kamctl_kamctl_base
                else
                        echo "$1"
                fi
-@@ -565,7 +565,7 @@ mdbg() {
+@@ -568,7 +568,7 @@ mdbg() {
  
  mwarn() {
        if [ -t 1 -a -z "$NOHLPRINT" ] ; then
@@ -19,7 +20,7 @@ $OpenBSD: patch-utils_kamctl_kamctl_base
        else
                echo "** WARNING: $1"
        fi
-@@ -573,7 +573,7 @@ mwarn() {
+@@ -576,7 +576,7 @@ mwarn() {
  
  minfo() {
        if [ -t 1 -a -z "$NOHLPRINT" ] ; then
@@ -28,7 +29,7 @@ $OpenBSD: patch-utils_kamctl_kamctl_base
        else
                echo "** INFO: $1"
        fi
-@@ -581,7 +581,7 @@ minfo() {
+@@ -584,7 +584,7 @@ minfo() {
  
  mecho() {
        if [ -t 1 -a -z "$NOHLPRINT" ] ; then
@@ -37,7 +38,7 @@ $OpenBSD: patch-utils_kamctl_kamctl_base
        else
                echo "$1"
        fi
-@@ -589,7 +589,7 @@ mecho() {
+@@ -592,7 +592,7 @@ mecho() {
  
  merr() {
        if [ -t 1 -a -z "$NOHLPRINT" ] ; then
Index: patches/patch-utils_kamctl_kamctlrc
===================================================================
RCS file: /cvs/ports/telephony/kamailio/patches/patch-utils_kamctl_kamctlrc,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 patch-utils_kamctl_kamctlrc
--- patches/patch-utils_kamctl_kamctlrc 3 Jul 2017 22:14:20 -0000       1.4
+++ patches/patch-utils_kamctl_kamctlrc 1 Mar 2018 15:35:15 -0000
@@ -1,16 +1,17 @@
 $OpenBSD: patch-utils_kamctl_kamctlrc,v 1.4 2017/07/03 22:14:20 sthen Exp $
---- utils/kamctl/kamctlrc.orig Wed Apr  5 16:32:39 2017
-+++ utils/kamctl/kamctlrc      Mon May 15 21:52:23 2017
-@@ -64,7 +64,7 @@
+Index: utils/kamctl/kamctlrc
+--- utils/kamctl/kamctlrc.orig
++++ utils/kamctl/kamctlrc
+@@ -69,7 +69,7 @@
  
  
  # Program to calculate a message-digest fingerprint
 -# MD5="md5sum"
-+MD5="md5sum"
++MD5="md5"
  
  # awk tool
  # AWK="awk"
-@@ -146,8 +146,11 @@
+@@ -155,8 +155,11 @@
  
  ## Kamailio START Options
  ## PID file path - default is: /var/run/kamailio.pid
Index: pkg/PLIST-main
===================================================================
RCS file: /cvs/ports/telephony/kamailio/pkg/PLIST-main,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 PLIST-main
--- pkg/PLIST-main      3 Jul 2017 22:14:20 -0000       1.6
+++ pkg/PLIST-main      1 Mar 2018 15:35:15 -0000
@@ -19,8 +19,10 @@ lib/kamailio/kamctl/kamdbctl.dbtext
 @lib lib/kamailio/libtrie.so.${LIBtrie_VERSION}
 lib/kamailio/modules/
 lib/kamailio/modules/acc.so
+lib/kamailio/modules/acc_diameter.so
 lib/kamailio/modules/alias_db.so
 lib/kamailio/modules/app_jsdt.so
+lib/kamailio/modules/app_sqlang.so
 lib/kamailio/modules/async.so
 lib/kamailio/modules/auth.so
 lib/kamailio/modules/auth_db.so
@@ -32,6 +34,7 @@ lib/kamailio/modules/avpops.so
 lib/kamailio/modules/benchmark.so
 lib/kamailio/modules/blst.so
 lib/kamailio/modules/call_control.so
+lib/kamailio/modules/call_obj.so
 lib/kamailio/modules/cfg_db.so
 lib/kamailio/modules/cfg_rpc.so
 lib/kamailio/modules/cfgt.so
@@ -56,6 +59,7 @@ lib/kamailio/modules/domain.so
 lib/kamailio/modules/domainpolicy.so
 lib/kamailio/modules/drouting.so
 lib/kamailio/modules/enum.so
+lib/kamailio/modules/evrexec.so
 lib/kamailio/modules/exec.so
 lib/kamailio/modules/group.so
 lib/kamailio/modules/htable.so
@@ -64,6 +68,7 @@ lib/kamailio/modules/http_client.so
 lib/kamailio/modules/imc.so
 lib/kamailio/modules/ipops.so
 lib/kamailio/modules/jsonrpcs.so
+lib/kamailio/modules/keepalive.so
 lib/kamailio/modules/kex.so
 lib/kamailio/modules/lcr.so
 lib/kamailio/modules/log_custom.so
@@ -103,6 +108,7 @@ lib/kamailio/modules/sca.so
 lib/kamailio/modules/sdpops.so
 lib/kamailio/modules/seas.so
 lib/kamailio/modules/sipcapture.so
+lib/kamailio/modules/sipdump.so
 lib/kamailio/modules/sipt.so
 lib/kamailio/modules/siptrace.so
 lib/kamailio/modules/siputils.so
@@ -159,8 +165,10 @@ share/doc/kamailio/INSTALL
 share/doc/kamailio/README
 share/doc/kamailio/modules/
 share/doc/kamailio/modules/README.acc
+share/doc/kamailio/modules/README.acc_diameter
 share/doc/kamailio/modules/README.alias_db
 share/doc/kamailio/modules/README.app_jsdt
+share/doc/kamailio/modules/README.app_sqlang
 share/doc/kamailio/modules/README.async
 share/doc/kamailio/modules/README.auth
 share/doc/kamailio/modules/README.auth_db
@@ -172,6 +180,7 @@ share/doc/kamailio/modules/README.avpops
 share/doc/kamailio/modules/README.benchmark
 share/doc/kamailio/modules/README.blst
 share/doc/kamailio/modules/README.call_control
+share/doc/kamailio/modules/README.call_obj
 share/doc/kamailio/modules/README.cfg_db
 share/doc/kamailio/modules/README.cfg_rpc
 share/doc/kamailio/modules/README.cfgt
@@ -196,6 +205,7 @@ share/doc/kamailio/modules/README.domain
 share/doc/kamailio/modules/README.domainpolicy
 share/doc/kamailio/modules/README.drouting
 share/doc/kamailio/modules/README.enum
+share/doc/kamailio/modules/README.evrexec
 share/doc/kamailio/modules/README.exec
 share/doc/kamailio/modules/README.group
 share/doc/kamailio/modules/README.htable
@@ -204,6 +214,7 @@ share/doc/kamailio/modules/README.http_c
 share/doc/kamailio/modules/README.imc
 share/doc/kamailio/modules/README.ipops
 share/doc/kamailio/modules/README.jsonrpcs
+share/doc/kamailio/modules/README.keepalive
 share/doc/kamailio/modules/README.kex
 share/doc/kamailio/modules/README.lcr
 share/doc/kamailio/modules/README.log_custom
@@ -243,6 +254,7 @@ share/doc/kamailio/modules/README.sca
 share/doc/kamailio/modules/README.sdpops
 share/doc/kamailio/modules/README.seas
 share/doc/kamailio/modules/README.sipcapture
+share/doc/kamailio/modules/README.sipdump
 share/doc/kamailio/modules/README.sipt
 share/doc/kamailio/modules/README.siptrace
 share/doc/kamailio/modules/README.siputils
@@ -288,8 +300,6 @@ share/doc/kamailio/modules/README.xprint
 share/examples/kamailio/
 @sample ${SYSCONFDIR}/kamailio/
 @comment share/examples/kamailio/dictionary.kamailio
-share/examples/kamailio/kamailio-advanced.cfg
-share/examples/kamailio/kamailio-basic.cfg
 share/examples/kamailio/kamailio.cfg
 @sample ${SYSCONFDIR}/kamailio/kamailio.cfg
 share/examples/kamailio/kamctlrc

Reply via email to