Module: kamailio
Branch: master
Commit: 38d746e6181990d61f2fd7fd88599690a987bfec
URL:
https://github.com/kamailio/kamailio/commit/38d746e6181990d61f2fd7fd8859969…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2017-09-22T18:07:50-04:00
pkg/kamailio/alpine: Packaged rabbitmq, sctp, radius modules
---
Modified: pkg/kamailio/alpine/APKBUILD
Modified: pkg/kamailio/alpine_docker/build.sh
---
Diff:
https://github.com/kamailio/kamailio/commit/38d746e6181990d61f2fd7fd8859969…
Patch:
https://github.com/kamailio/kamailio/commit/38d746e6181990d61f2fd7fd8859969…
---
diff --git a/pkg/kamailio/alpine/APKBUILD b/pkg/kamailio/alpine/APKBUILD
index 259a0f1021..064605267f 100644
--- a/pkg/kamailio/alpine/APKBUILD
+++ b/pkg/kamailio/alpine/APKBUILD
@@ -23,7 +23,7 @@ pkggroups="kamailio"
arch="all"
license="GPL2+"
depends=""
-makedepends="bison flex expat-dev postgresql-dev pcre-dev mariadb-dev
+makedepends="bison flex freeradius-client-dev expat-dev lksctp-tools-dev
postgresql-dev pcre-dev mariadb-dev
libxml2-dev curl-dev unixodbc-dev confuse-dev ncurses-dev sqlite-dev
lua-dev openldap-dev libressl-dev net-snmp-dev libuuid libev-dev
jansson-dev json-c-dev libevent-dev linux-headers libmemcached-dev
@@ -228,7 +228,7 @@ for _i in db postgres sqlite dbtext mysql \
ldap utils tls presence lua ims outbound debugger \
extras json websocket authephemeral \
uuid ev memcached redis geoip2 jansson \
- jsdt http_async kazoo; do
+ jsdt http_async kazoo rabbitmq sctp radius; do
subpackages="$subpackages $pkgname-$_i"
eval "_modules=\"\$_modules \$_mod_list_$_i\""
@@ -273,13 +273,13 @@ build() {
DESTDIR="$pkgdir" \
cfg_prefix="$pkgdir" \
cfg
- make EMBEDDED_UTF8_DECODE=1 STUN=1 \
+ make EMBEDDED_UTF8_DECODE=1 STUN=1 FREERADIUS=1 \
all || return 1
}
package() {
cd "$builddir"
- make -j1 install || return 1
+ make FREERADIUS=1 -j1 install || return 1
# move default config to -doc package and use our own default config
@@ -496,6 +496,16 @@ kazoo() {
"$_mod_list_kazoo"
}
+radius() {
+ _generic_pkg "RADIUS modules for Kamailio" \
+ "$_mod_list_radius"
+}
+
+sctp() {
+ _generic_pkg "SCTP transport for Kamailio" \
+ "$_mod_list_sctp"
+}
+
sha512sums="6b4c58fe628270f8927721813607ce080b5e257cca8ace8c7b286c77c7880be258c07f1c7fb5711449cfc1f8841468e6ca647cf2e28be7a8d3dbb316527b7198
kamailio-5.1.0.20170922-1fe5970.tar.gz
6badfb611c02ffcb4c2e9937731162ea1a4b737f042ed52120e2f96ebb80b5b7d240b5612c9ca565e693eec9b8c52c1ee5db04dfc47d204501021f984b4b11db
0001-kamdbctl.base.patch
diff --git a/pkg/kamailio/alpine_docker/build.sh b/pkg/kamailio/alpine_docker/build.sh
index ea1cd53625..a65f4a3915 100755
--- a/pkg/kamailio/alpine_docker/build.sh
+++ b/pkg/kamailio/alpine_docker/build.sh
@@ -12,7 +12,7 @@ prepare_build() {
apk add --no-cache abuild git gcc build-base bison flex expat-dev postgresql-dev pcre-dev
mariadb-dev \
libxml2-dev curl-dev unixodbc-dev confuse-dev ncurses-dev sqlite-dev lua-dev
openldap-dev \
libressl-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
+ libmemcached-dev rabbitmq-c-dev hiredis-dev libmaxminddb-dev libunistring-dev
freeradius-client-dev lksctp-tools-dev
adduser -D build && addgroup build abuild
echo "%abuild ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/abuild