Module: kamailio
Branch: master
Commit: 3074600005ac49ff9bdb6adde2f6bcc26f678457
URL:
https://github.com/kamailio/kamailio/commit/3074600005ac49ff9bdb6adde2f6bcc…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Henning Westerholt <henningw(a)users.noreply.github.com>
Date: 2019-07-28T13:43:56+02:00
pkg/kamailio/alpine: backported python3 ruby openrc subpackaging from alpine repo
Reference commit
https://github.com/alpinelinux/aports/commit/280b4b05da6dff3980267a0d27b228…
---
Modified: pkg/kamailio/alpine/APKBUILD
---
Diff:
https://github.com/kamailio/kamailio/commit/3074600005ac49ff9bdb6adde2f6bcc…
Patch:
https://github.com/kamailio/kamailio/commit/3074600005ac49ff9bdb6adde2f6bcc…
---
diff --git a/pkg/kamailio/alpine/APKBUILD b/pkg/kamailio/alpine/APKBUILD
index 57c1c4bbcb..d82f5a8279 100644
--- a/pkg/kamailio/alpine/APKBUILD
+++ b/pkg/kamailio/alpine/APKBUILD
@@ -25,11 +25,14 @@ arch="all"
license="GPL-2.0"
depends="gawk"
options="!check"
-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 ruby-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:
@@ -159,12 +162,18 @@ _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 ruby library
_mod_list_ruby="app_ruby"
+# - 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"
@@ -239,14 +248,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 ruby; do
+ jsdt http_async kazoo rabbitmq sctp radius perl python \
+ python3 ruby; do
subpackages="$subpackages $pkgname-$_i"
eval "_modules=\"\$_modules \$_mod_list_$_i\""
@@ -531,7 +541,7 @@ perl() {
}
python() {
- _generic_pkg "Python extensions for Kamailio" \
+ _generic_pkg "Execute embedded Python2 scripts" \
"$_mod_list_python"
}
@@ -540,6 +550,16 @@ ruby() {
"$_mod_list_ruby"
}
+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"