Subject: [PATCH] main/kamailio version bump 5.2.3 new subpackages: python3 ruby openrc

From: Nathan Angelacos <[email-masked]>
Date: Mon, 15 Jul 2019 19:21:38 -0400

---
 main/kamailio/APKBUILD | 44 ++++++++++++++++++++++++++++++------------
 1 file changed, 32 insertions(+), 12 deletions(-)

diff --git a/main/kamailio/APKBUILD b/main/kamailio/APKBUILD
index b5d873df78..d67643c68b 100644
--- a/main/kamailio/APKBUILD
+++ b/main/kamailio/APKBUILD
@@ -4,8 +4,8 @@
 # Maintainer: Nathan Angelacos <[email-masked]>
 
 pkgname=kamailio
-pkgver=5.2.2
-pkgrel=1
+pkgver=5.2.3
+pkgrel=0
 
 # If building from a git snapshot, specify the gitcommit
 # If building a proper release, leave gitcommit blank
@@ -24,11 +24,14 @@ pkggroups="kamailio"
 arch="all"
 license="GPL-2.0-or-later"
 depends="gawk"
-makedepends="bison db-dev flex freeradius-client-dev expat-dev lksctp-tools-dev perl-dev postgresql-dev python2-dev pcre-dev mariadb-dev
-	libxml2-dev curl-dev unixodbc-dev confuse-dev ncurses-dev sqlite-dev
-	lua-dev openldap-dev openssl-dev net-snmp-dev libuuid libev-dev
-	jansson-dev json-c-dev libevent-dev linux-headers libmemcached-dev
-	rabbitmq-c-dev hiredis-dev libmaxminddb-dev libunistring-dev"
+makedepends="bison db-dev flex freeradius-client-dev expat-dev 
+	lksctp-tools-dev perl-dev postgresql-dev python2-dev python3-dev
+	pcre-dev mariadb-dev libxml2-dev curl-dev unixodbc-dev 
+	confuse-dev ncurses-dev sqlite-dev lua-dev openldap-dev openssl-dev
+	net-snmp-dev libuuid libev-dev jansson-dev json-c-dev libevent-dev 
+	linux-headers libmemcached-dev rabbitmq-c-dev hiredis-dev 
+	ruby-dev libmaxminddb-dev libunistring-dev"
+
 install="$pkgname.pre-install $pkgname.pre-upgrade"
 
 # secfixes:
@@ -158,9 +161,15 @@ _mod_list_lua="app_lua"
 # - modules depending on perl library
 _mod_list_perl="app_perl db_perlvdb"
 
-# - modules depending on python library
+# - modules depending on python2 library
 _mod_list_python="app_python"
 
+# - modules depending on python3 libarary
+_mod_list_python3="app_python3"
+
+# - modules depending on ruby library
+_mod_list_ruby="app_ruby"
+
 # - modules depending on rabbitmq
 _mod_list_rabbitmq="rabbitmq"
 
@@ -235,14 +244,15 @@ _module_group_kstandard="$_mod_list_basic $_mod_list_dbuid $_mod_list_pcre"
 
 # END Makefile.groups #############################################################
 
-subpackages="$pkgname-doc $pkgname-dbg"
+subpackages="$pkgname-doc $pkgname-dbg $pkgname-openrc"
 _modules="$_module_group_kstandard"
 for _i in db postgres sqlite dbtext mysql \
 	cpl xml unixodbc snmpstats xmpp carrierroute \
 	ldap utils tls presence lua ims outbound debugger \
 	extras json websocket authephemeral \
 	uuid ev memcached redis geoip2 jansson sqlang sipdump \
-	jsdt http_async kazoo rabbitmq sctp radius perl python; do
+	jsdt http_async kazoo rabbitmq sctp radius perl python \
+	python3 ruby; do
 
    subpackages="$subpackages $pkgname-$_i"
    eval "_modules=\"\$_modules \$_mod_list_$_i\""
@@ -518,10 +528,20 @@ perl() {
 }
 
 python() {
-	_generic_pkg "Python extensions for Kamailio" \
+	_generic_pkg "Execute embedded Python2 scripts" \
 		"$_mod_list_python"
 }
 
+python3() {
+	_generic_pkg "Execute embedded Python3 scripts" \
+		"$_mod_list_python3"
+}
+
+ruby() {
+	_generic_pkg "Execute embedded Ruby scripts" \
+		"$_mod_list_ruby"
+}
+
 sqlang() {
 	_generic_pkg "Squirrel Language (SQLang) for Kamailio" \
 		"$_mod_list_sqlang"
@@ -537,7 +557,7 @@ sipdump() {
 		"$_mod_list_sipdump"
 }
 
-sha512sums="5a9695ff8ea5058922247e7615485d29f4430ab9a5e085b3cbe092988011c23c5536ef00a45ee138d06d664b0aa67bb1afb548ba3d06eac8b8d22794ae2b4127  kamailio-5.2.2.tar.gz
+sha512sums="fed5b467fc9bc7024cbb873a6386ceba4b479f7ad26d303a768f2f78ad399ee65f00ea263c858a05bbcd0359121291e4cf1d28d870860370d719b6c81bfc2aeb  kamailio-5.2.3.tar.gz
 af8362201957eae6b66baf7368c9ca884024209a396d77c5c52180c9aabe13772e9c6513e59721d39503e5bb7a8c1030f5c10301ea9055bddafb7f01ee2f3076  0004-src_core_tcp_read_c.patch
 100a40ec63eaf62f8ac794f1bb17e8109030413617e61a7d2f55a8c8efbe26c1f0f611e6d99548638001f1af678fb7129a98db175eb02190c85d31f60af52202  dont-force-mips-revision.patch
 321b1b160434150bcde3c0ad7f47ddf259791b68d4ce74ba4c35034026421a2bc6f5e86f26f393f5fcdb523d8cd75f944709473065553ce860b0ea06b3dc2a1b  kamailio.initd"
-- 
2.22.0