Browse code

pkg/kamailio/alpine: backported python3 ruby openrc subpackaging from alpine repo

Reference commit
https://github.com/alpinelinux/aports/commit/280b4b05da6dff3980267a0d27b228f0e47a5755#diff-75216d130f5872b5775d4e035eadd419

Sergey Safarov authored on 22/07/2019 10:55:55 • Henning Westerholt committed on 28/07/2019 11:43:56
Showing 1 changed files
... ...
@@ -25,11 +25,14 @@ arch="all"
25 25
 license="GPL-2.0"
26 26
 depends="gawk"
27 27
 options="!check"
28
-makedepends="bison db-dev flex freeradius-client-dev expat-dev lksctp-tools-dev perl-dev postgresql-dev python2-dev pcre-dev mariadb-dev
29
-	libxml2-dev curl-dev unixodbc-dev confuse-dev ncurses-dev sqlite-dev
30
-	lua-dev openldap-dev openssl-dev net-snmp-dev libuuid libev-dev
31
-	jansson-dev json-c-dev libevent-dev linux-headers libmemcached-dev
32
-	rabbitmq-c-dev hiredis-dev libmaxminddb-dev libunistring-dev ruby-dev"
28
+makedepends="bison db-dev flex freeradius-client-dev expat-dev
29
+	lksctp-tools-dev perl-dev postgresql-dev python2-dev python3-dev
30
+	pcre-dev mariadb-dev libxml2-dev curl-dev unixodbc-dev
31
+	confuse-dev ncurses-dev sqlite-dev lua-dev openldap-dev openssl-dev
32
+	net-snmp-dev libuuid libev-dev jansson-dev json-c-dev libevent-dev
33
+	linux-headers libmemcached-dev rabbitmq-c-dev hiredis-dev
34
+	ruby-dev libmaxminddb-dev libunistring-dev"
35
+
33 36
 install="$pkgname.pre-install $pkgname.pre-upgrade"
34 37
 
35 38
 # secfixes:
... ...
@@ -159,12 +162,18 @@ _mod_list_lua="app_lua"
159 162
 # - modules depending on perl library
160 163
 _mod_list_perl="app_perl db_perlvdb"
161 164
 
162
-# - modules depending on python library
165
+# - modules depending on python2 library
163 166
 _mod_list_python="app_python"
164 167
 
165 168
 # - modules depending on ruby library
166 169
 _mod_list_ruby="app_ruby"
167 170
 
171
+# - modules depending on python3 libarary
172
+_mod_list_python3="app_python3"
173
+
174
+# - modules depending on ruby library
175
+_mod_list_ruby="app_ruby"
176
+
168 177
 # - modules depending on rabbitmq
169 178
 _mod_list_rabbitmq="rabbitmq"
170 179
 
... ...
@@ -239,14 +248,15 @@ _module_group_kstandard="$_mod_list_basic $_mod_list_dbuid $_mod_list_pcre"
239 248
 
240 249
 # END Makefile.groups #############################################################
241 250
 
242
-subpackages="$pkgname-doc $pkgname-dbg"
251
+subpackages="$pkgname-doc $pkgname-dbg $pkgname-openrc"
243 252
 _modules="$_module_group_kstandard"
244 253
 for _i in db postgres sqlite dbtext mysql \
245 254
 	cpl xml unixodbc snmpstats xmpp carrierroute \
246 255
 	ldap utils tls presence lua ims outbound debugger \
247 256
 	extras json websocket authephemeral \
248 257
 	uuid ev memcached redis geoip2 jansson sqlang sipdump \
249
-	jsdt http_async kazoo rabbitmq sctp radius perl python ruby; do
258
+	jsdt http_async kazoo rabbitmq sctp radius perl python \
259
+	python3 ruby; do
250 260
 
251 261
    subpackages="$subpackages $pkgname-$_i"
252 262
    eval "_modules=\"\$_modules \$_mod_list_$_i\""
... ...
@@ -531,7 +541,7 @@ perl() {
531 541
 }
532 542
 
533 543
 python() {
534
-	_generic_pkg "Python extensions for Kamailio" \
544
+	_generic_pkg "Execute embedded Python2 scripts" \
535 545
 		"$_mod_list_python"
536 546
 }
537 547
 
... ...
@@ -540,6 +550,16 @@ ruby() {
540 550
 		"$_mod_list_ruby"
541 551
 }
542 552
 
553
+python3() {
554
+	_generic_pkg "Execute embedded Python3 scripts" \
555
+		"$_mod_list_python3"
556
+}
557
+
558
+ruby() {
559
+	_generic_pkg "Execute embedded Ruby scripts" \
560
+		"$_mod_list_ruby"
561
+}
562
+
543 563
 sqlang() {
544 564
 	_generic_pkg "Squirrel Language (SQLang) for Kamailio" \
545 565
 		"$_mod_list_sqlang"