aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Vigara <yvigara@angarium.co.uk>2023-10-28 00:57:29 +0000
committeromni <omni+alpine@hack.org>2023-11-08 22:28:09 +0000
commit6af460104e28fcf82918942ca5c7b77550fa5e14 (patch)
tree40bed9e05d036b628954033220e10a80577fc567
parentcf8c0a4cbaf1519a4556c3d481e46a5f7ec0887e (diff)
main/kamailio: build tlsa module
- fix typos - add to makedepends: openssl-libs-static zlib-static - sort makedependends alphabetically
-rw-r--r--main/kamailio/APKBUILD69
1 files changed, 55 insertions, 14 deletions
diff --git a/main/kamailio/APKBUILD b/main/kamailio/APKBUILD
index 10dcb34c2e7..41b499c4dc6 100644
--- a/main/kamailio/APKBUILD
+++ b/main/kamailio/APKBUILD
@@ -1,11 +1,12 @@
# Contributor: Ɓukasz Jendrysik <scadu@yandex.com>
# Contributor: Michael Mason <ms13sp@gmail.com>
# Contributor: Leonardo Arena <rnalrd@gmail.com>
+# Contributor: Yann Vigara <yvigara@angarium.co.uk>
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=kamailio
pkgver=5.7.2
-pkgrel=1
+pkgrel=2
# If building from a git snapshot, specify the gitcommit
# If building a proper release, leave gitcommit blank or commented
@@ -24,13 +25,43 @@ arch="all"
license="GPL-2.0-or-later"
options="!check" # no testsuite
depends="gawk"
-makedepends="bison flex freeradius-client-dev expat-dev
- lksctp-tools-dev perl-dev libpq-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>3
- 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 mosquitto-dev libmnl-dev"
+makedepends="bison
+ confuse-dev
+ curl-dev
+ expat-dev
+ flex
+ freeradius-client-dev
+ hiredis-dev
+ jansson-dev
+ json-c-dev
+ libev-dev
+ libevent-dev
+ libmaxminddb-dev
+ libmemcached-dev
+ libmnl-dev
+ libpq-dev
+ libunistring-dev
+ libuuid
+ libxml2-dev
+ linux-headers
+ lksctp-tools-dev
+ lua-dev
+ mariadb-dev
+ mosquitto-dev
+ ncurses-dev
+ net-snmp-dev
+ openldap-dev
+ openssl-dev>3
+ openssl-libs-static
+ pcre-dev
+ perl-dev
+ python3-dev
+ rabbitmq-c-dev
+ ruby-dev
+ sqlite-dev
+ unixodbc-dev
+ zlib-static
+ "
# These are in testing / community - can't enable for kamailio in main
# librdkafka-dev dnssec-tools-dev
source="kamailio-${pkgver}$_suffix.tar.gz::https://github.com/kamailio/kamailio/archive/$_gitcommit.tar.gz
@@ -39,6 +70,8 @@ source="kamailio-${pkgver}$_suffix.tar.gz::https://github.com/kamailio/kamailio/
install="$pkgname.pre-install $pkgname.pre-upgrade"
+[ "$CARCH" = "armv7" ] && options="$options textrels"
+
# secfixes:
# 5.1.4-r0:
# - CVE-2018-14767
@@ -48,7 +81,7 @@ install="$pkgname.pre-install $pkgname.pre-upgrade"
#
# Alpine specific changes:
#
-# _mod_list_debugger is not defined in the orginal
+# _mod_list_debugger is not defined in the original
#
# Move avp from _mod_list_extras to _mod_list_basic, so that we can create
# a kamailio-extras package
@@ -132,6 +165,9 @@ _mod_list_memcached="memcached"
# - modules depending on openssl library
_mod_list_tls="auth_identity crypto tls"
+# - modules depending on static openssl library
+_mod_list_tlsa="tlsa"
+
# - modules depending on openssl library
_mod_list_outbound="outbound"
@@ -161,7 +197,7 @@ _mod_list_lua="app_lua app_lua_sr"
# - modules depending on perl library
_mod_list_perl="app_perl db_perlvdb"
-# - modules depending on python3 libarary
+# - modules depending on python3 library
_mod_list_python3="app_python3 app_python3s"
# - modules depending on ruby library
@@ -248,7 +284,7 @@ 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 \
+ ldap utils tls tlsa 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 \
@@ -271,7 +307,7 @@ prepare() {
cd utils/kamctl/
sed -i -e 's:/var/run/kamailio.pid:/var/run/kamailio/kamailio.pid:g' \
kamctl.base kamctlrc
- # we actually dont need bash
+ # we actually don't need bash
sed -i -e 's:/bin/bash:/bin/sh:' kamctl kamdbctl
}
@@ -342,7 +378,7 @@ sqlite() {
dbtext() {
_db_driver DBText text dbtext dbtext
# kamdbctl.dbtext is a python script - but we will not make python
- # a dependency because kamdbctl is not normaly used
+ # a dependency because kamdbctl is not normally used
mkdir -p "$subpkgdir"/usr/lib/kamailio/kamctl
mv "$pkgdir"/usr/lib/kamailio/kamctl/dbtextdb \
"$subpkgdir"/usr/lib/kamailio/kamctl/
@@ -393,7 +429,7 @@ ldap() {
}
utils() {
- _generic_pkg "miscelaneous utility functions" \
+ _generic_pkg "miscellaneous utility functions" \
"$_mod_list_utils"
}
@@ -402,6 +438,11 @@ tls() {
"$_mod_list_tls"
}
+tlsa() {
+ _generic_pkg "TLS support compiled statically against libssl and libcrypto" \
+ "$_mod_list_tlsa"
+}
+
presence() {
_generic_pkg "SIP Notify (Presence) support" \
"$_mod_list_presence"