aboutsummaryrefslogtreecommitdiffstats
path: root/main/kamailio/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-04-29 09:35:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-04-29 09:37:35 +0000
commit82667982604921f06cb165cae80c5d53f05a1423 (patch)
tree6f2fc8c7201082d2204d3a6b7311f1487eb57aa3 /main/kamailio/APKBUILD
parent49dabb360ce6c2d5a6d4e1eefc136be8a9bfd1e7 (diff)
downloadaports-82667982604921f06cb165cae80c5d53f05a1423.tar.bz2
aports-82667982604921f06cb165cae80c5d53f05a1423.tar.xz
main/kamailio: remove the external kamailio.groups
it broke 'abuild -R' prefix global vars with _
Diffstat (limited to 'main/kamailio/APKBUILD')
-rw-r--r--main/kamailio/APKBUILD357
1 files changed, 329 insertions, 28 deletions
diff --git a/main/kamailio/APKBUILD b/main/kamailio/APKBUILD
index 8314a69f81..2cef79fcfd 100644
--- a/main/kamailio/APKBUILD
+++ b/main/kamailio/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=kamailio
pkgver=4.0.1
-pkgrel=1
+pkgrel=2
pkgdesc="Open Source SIP Server"
url="http://www.kamailio.org/"
pkgusers="kamailio"
@@ -17,24 +17,328 @@ makedepends="bison flex expat-dev postgresql-dev pcre-dev mysql-dev
install="$pkgname.pre-install $pkgname.pre-upgrade"
# Source the kamailio.groups file for the definition of all the various modules
-. ./kamailio.groups
+# BEGIN Makefile.groups #############################################################
+# This is taken from sip-router/Makefile.groups
+
+
+# Alpine specific changes:
+
+# module_groug_kdbg (at the end of this file) is not defined in the orginale
+
+# Move avp from _mod_list_extra to _mod_list_basic, so that we can create
+# a kamailio-extra package
+
+# Remove db_text from _mod_list_db because we create a separate dbtext package
+
+# - basic used modules, with no extra dependency (widespread usage)
+_mod_list_basic="avp async auth benchmark blst cfg_rpc cfgutils corex counters \
+ ctl debugger diversion enum exec ipops kex mangler maxfwd \
+ mediaproxy mi_datagram mi_fifo mi_rpc mqueue \
+ nat_traversal nathelper path pike pv ratelimit rr rtimer \
+ rtpproxy sanity sdpops siputils sl statistics textops \
+ textopsx tm tmx topoh xlog"
+
+# - extra used modules, with no extra dependency
+_mod_list_extra="auth_diameter call_control dmq domainpolicy msrp pdb \
+ qos sca seas sms sst timer tmrec uac_redirect xhttp \
+ xhttp_rpc xprint"
+
+# - common modules depending on database
+_mod_list_db="acc alias_db auth_db avpops cfg_db db_flatstore \
+ db_cluster dialog dispatcher domain drouting group \
+ htable imc matrix msilo mtree p_usrloc pdt permissions \
+ pipelimit prefix_route registrar sipcapture siptrace speeddial \
+ sqlops uac uri_db userblacklist usrloc"
+
+
+# - common modules depending on database, using UID db schema
+_mod_list_dbuid="db2_ops uid_auth_db uid_avp_db uid_domain uid_gflags \
+ uid_uri_db"
+
+# - modules for devel purposes
+_mod_list_devel="malloc_test print print_lib"
+
+# - modules depending on pcre3 library
+_mod_list_pcre="dialplan lcr regex"
+
+# - modules depending on radius client library
+_mod_list_radius="acc_radius auth_radius misc_radius peering"
+
+# - modules depending on ldap client library
+_mod_list_ldap="db2_ldap h350 ldap"
+
+# - modules depending on mysql client library
+_mod_list_mysql="db_mysql"
+
+# - modules depending on postgres client library
+_mod_list_postgres="db_postgres"
+
+# - modules depending on unixodbc library
+_mod_list_unixodbc="db_unixodbc"
+
+# - modules depending on mysql cassandra library
+_mod_list_cassandra="db_cassandra"
+
+# - modules depending on xml2 library
+_mod_list_cpl="cpl-c"
+
+# - modules depending on xml2 library
+_mod_list_xmldeps="xhttp_pi xmlrpc xmlops"
+
+# - modules depending on xml c rpc library
+_mod_list_mi_xmlrpc="mi_xmlrpc"
+
+# - modules depending on net-snmp library
+_mod_list_snmpstats="snmpstats"
+
+# - modules depending on expat library
+_mod_list_xmpp="xmpp"
+
+# - modules depending on confuse library
+_mod_list_carrierroute="carrierroute"
+
+# - modules depending on bdb (db4) library
+_mod_list_berkeley="db_berkeley"
+
+# - modules depending on curl library
+_mod_list_utils="utils"
+
+# - modules depending on purple library
+_mod_list_purple="purple"
+
+# - modules depending on memcache library
+_mod_list_memcached="memcached"
+
+# - modules depending on openssl library
+_mod_list_tlsdeps="auth_identity tls"
+
+# - modules depending on openssl library
+_mod_list_outbound="outbound"
+
+# - modules depending on unistring library
+_mod_list_websocket="websocket"
+
+# - modules depending on openssl library
+_mod_list_stun="stun"
+
+# - modules depending on libval-threads libcrypto libsres libpthread
+_mod_list_dnssec="dnssec"
+
+# - modules related to SIMPLE presence extensions
+_mod_list_presence="presence presence_conference presence_dialoginfo \
+ presence_mwi presence_profile presence_reginfo \
+ presence_xml \
+ pua pua_bla pua_dialoginfo pua_mi pua_reginfo \
+ pua_usrloc pua_xmpp \
+ rls xcap_client xcap_server"
+
+# - modules depending on lua library
+_mod_list_lua="app_lua"
+
+# - modules depending on perl library
+_mod_list_perldeps="app_perl db_perlvdb"
+
+# - modules depending on python library
+_mod_list_python="app_python"
+
+# - modules depending on geoip library
+_mod_list_geoip="geoip"
+
+# - modules depending on sqlite library
+_mod_list_sqlite="db_sqlite"
+
+# - modules depending on oracle library
+_mod_list_oracle="db_oracle"
+
+# - modules depending on json library
+_mod_list_json="json jsonrpc-c"
+
+# - modules depending on redis library
+_mod_list_redis="ndb_redis"
+
+# - modules depending on mono library
+_mod_list_mono="app_mono"
+
+# - modules related to IMS extensions
+_mod_list_ims="cdp cdp_avp dialog_ng ims_auth ims_isc ims_icscf ims_qos \
+ ims_registrar_pcscf ims_registrar_scscf ims_usrloc_pcscf \
+ ims_usrloc_scscf"
+
+# - modules depending on osp toolkit library
+_mod_list_osp="osp"
+
+# - modules depending on java library
+_mod_list_java="app_java"
+
+# - modules depending on iptables library
+_mod_list_iptrtpproxy="iptrtpproxy"
+
+### --- Groups defined for source code compilation ###
+
+# groups are sets of modules selected by compile target interest (should be
+# built by combining lists)
+
+# Modules in this group are the default compiled modules due to
+# no external compile or link dependencies
+_module_group_default="$_mod_list_basic $_mod_list_extra \
+ $_mod_list_db $_mod_list_dbuid \
+ $_mod_list_devel"
+
+# Modules in this group are the default compiled modules due to
+# no internal/external compile or link dependencies
+_module_group_standard="$_mod_list_basic $_mod_list_extra \
+ $_mod_list_devel"
+
+# Modules in this group are considered a standard part due to
+# widespread usage, but they have dependencies that must be satisfied for
+# compilation (e.g., lcr, radius, presence, tls, ...).
+_module_group_common="$_mod_list_db $_mod_list_dbuid \
+ $_mod_list_pcre $_mod_list_radius \
+ $_mod_list_xmldeps $_mod_list_presence \
+ $_mod_list_tlsdeps"
+
+# For db use (db modules, excluding drivers)
+_module_group_db=$_mod_list_db
+
+# For mysql
+_module_group_mysql_driver=db_mysql
+_module_group_mysql="$_module_group_mysql_driver $_module_group_db"
+
+# For postgress
+_module_group_postgres_driver=db_postgres
+_module_group_postgres="$_module_group_postgres_driver $_module_group_db"
+
+# For radius
+_module_group_radius=$_mod_list_radius
+
+# For presence
+# kamailio modules
+_module_group_presence=$_mod_list_presence
+
+# For cassandra
+#_module_group_cassandra_driver=$(_mod_list_cassandra)
+#_module_group_cassandra=$(_module_group_cassandra_driver) $(_module_group_db)
+
+
+### --- Groups defined for pacKaging ###
+
+# Standard modules in main pkg
+_module_group_kstandard="$_mod_list_basic $_mod_list_extra \
+ $_mod_list_db $_mod_list_dbuid \
+ $_mod_list_pcre"
+
+# pkg mysql module
+_module_group_kmysql=$_mod_list_mysql
+
+# pkg postgress module
+_module_group_kpostgres=$_mod_list_postgres
+
+# pkg cpl module
+_module_group_kcpl=$_mod_list_cpl
+
+# pkg xml modules
+_module_group_kxml=$_mod_list_xmldeps
+
+# pkg mi_xmlrpc modules
+_module_group_kmi_xmlrpc=$_mod_list_mi_xmlrpc
+
+# pkg radius modules
+_module_group_kradius=$_mod_list_radius
+
+# pkg unixodbc module
+_module_group_kunixodbc=$_mod_list_unixodbc
+
+# pkg perl module
+_module_group_kperl=$_mod_list_perldeps
+
+# pkg snmpstats module
+_module_group_ksnmpstats=$_mod_list_snmpstats
+
+# pkg xmpp module
+_module_group_kxmpp=$_mod_list_xmpp
+
+# pkg carrierroute module
+_module_group_kcarrierroute=$_mod_list_carrierroute
+
+# pkg berkeley module
+_module_group_kberkeley=$_mod_list_berkeley
+
+# pkg ldap modules
+_module_group_kldap=$_mod_list_ldap
+
+# pkg utils module
+_module_group_kutils=$_mod_list_utils
+
+# pkg purple module
+_module_group_kpurple=$_mod_list_purple
+
+# pkg memcached module
+_module_group_kmemcached=$_mod_list_memcached
+
+# pkg tls module
+_module_group_ktls=$_mod_list_tlsdeps
+
+# pkg websocket module
+_module_group_kwebsocket=$_mod_list_websocket
+
+# pkg presence modules
+_module_group_kpresence=$_mod_list_presence
+
+# pkg lua module
+_module_group_klua=$_mod_list_lua
+
+# pkg python module
+_module_group_kpython=$_mod_list_python
+
+# pkg geoip module
+_module_group_kgeoip=$_mod_list_geoip
+
+# pkg sqlite module
+_module_group_ksqlite=$_mod_list_sqlite
+
+# K json modules
+_module_group_kjson=$_mod_list_json
+
+# pkg redis module
+_module_group_kredis=$_mod_list_redis
+
+# pkg mono module
+_module_group_kmono=$_mod_list_mono
+
+# pkg IMS modules
+_module_group_kims=$_mod_list_ims
+
+# pkg outbound module
+_module_group_koutbound=$_mod_list_outbound
+
+# pkg java module
+_module_group_kjava=$_mod_list_java
+
+# pkg stun module
+_module_group_kstun=$_mod_list_stun
+
+# pkg dnssec module
+_module_group_kdnssec=$_mod_list_dnssec
+
+# Alpine Specific
+_module_group_kdbg="$_mod_list_devel benchmark debugger"
+# END Makefile.groups #############################################################
subpackages="$pkgname-doc"
-_modules="$module_group_kstandard"
+_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 dbg \
extra; do
subpackages="$subpackages $pkgname-$_i"
- eval "_modules=\"\$_modules \$module_group_k$_i\""
+ eval "_modules=\"\$_modules \$_module_group_k$_i\""
done
source="http://www.kamailio.org/pub/kamailio/$pkgver/src/kamailio-${pkgver}_src.tar.gz
fix-sql-module-loading-order.patch
kamailio.cfg
kamailio.initd
- kamailio.groups
"
_builddir="$srcdir"/$pkgname-$pkgver
@@ -130,7 +434,7 @@ _db_driver() {
}
db() {
- _generic_pkg "modules using a database backend" "$module_group_db"
+ _generic_pkg "modules using a database backend" "$_module_group_db"
}
postgres() {
@@ -156,12 +460,12 @@ dbtext() {
cpl() {
_generic_pkg "CPL (Call Processing Language) interpreter" \
- "$module_group_kcpl"
+ "$_module_group_kcpl"
}
xml() {
- _generic_pkg "XML related modules: $module_group_kxml" \
- "$module_group_kxml" || return 1
+ _generic_pkg "XML related modules: $_module_group_kxml" \
+ "$_module_group_kxml" || return 1
mkdir -p "$subpkgdir"/usr/share/kamailio
mv "$pkgdir"/usr/share/kamailio/xhttp_pi \
"$subpkgdir"/usr/share/kamailio || return 1
@@ -172,12 +476,12 @@ xml() {
unixodbc() {
_generic_pkg "Database drivers for unixodbc" \
- "$module_group_kunixodbc"
+ "$_module_group_kunixodbc"
}
snmpstats() {
_generic_pkg "SNMP statistics support" \
- "$module_group_ksnmpstats" || return 1
+ "$_module_group_ksnmpstats" || return 1
mkdir -p "$subpkgdir"/usr/share/snmp
mv "$_builddir"/modules/snmpstats/mibs \
"$subpkgdir"/usr/share/snmp/ || return 1
@@ -185,72 +489,69 @@ snmpstats() {
xmpp() {
_generic_pkg "XMPP (Jabber) gateway" \
- "$module_group_kxmpp"
+ "$_module_group_kxmpp"
}
carrierroute() {
_generic_pkg "carrier grade routing functions" \
- "$module_group_kcarrierroute"
+ "$_module_group_kcarrierroute"
}
ldap() {
_generic_pkg "LDAP search functions" \
- "$module_group_kldap"
+ "$_module_group_kldap"
}
utils() {
_generic_pkg "miscelaneous utility functions" \
- "$module_group_kutils"
+ "$_module_group_kutils"
}
tls() {
_generic_pkg "TLS support" \
- "$module_group_ktls"
+ "$_module_group_ktls"
}
presence() {
_generic_pkg "SIP Notify (Presence) support" \
- "$module_group_kpresence"
+ "$_module_group_kpresence"
}
lua() {
_generic_pkg "Lua script support" \
- "$module_group_klua"
+ "$_module_group_klua"
}
ims() {
_generic_pkg "IP Multimedia Subsystem (IMS) support" \
- "$module_group_kims"
+ "$_module_group_kims"
}
outbound() {
_generic_pkg "RFC 5626 section 5 Outbound suppport" \
- "$module_group_koutbound"
+ "$_module_group_koutbound"
}
dbg() {
_generic_pkg "debugging modules" \
- "$module_group_kdbg"
+ "$_module_group_kdbg"
}
extra() {
_generic_pkg "extra modules" \
- "$mod_list_extra"
+ "$_mod_list_extra"
}
md5sums="ab57fcb1eb1195fa45f5c0935810e42a kamailio-4.0.1_src.tar.gz
53cca39c47399eb2df20a1044d1e29eb fix-sql-module-loading-order.patch
a3c959ec568c43a905710e7d25cd8c25 kamailio.cfg
-9c190575e28772a784c4172216d85333 kamailio.initd
-56a85be6c8e1b2c30d72a9b4acbdb5da kamailio.groups"
+9c190575e28772a784c4172216d85333 kamailio.initd"
sha256sums="dd8652f47a572c0b0e1e45bdd0f6f838a14e50f2dbbeed77726ec0c7076e1769 kamailio-4.0.1_src.tar.gz
d2b5518e31e9bfaf4b3f4b38f9c69f5c201255eae1a46e860afd471d123d274b fix-sql-module-loading-order.patch
8024266849033a917147827c3579a382f10f3796989bebc6de3d7c80c965fb72 kamailio.cfg
-82612cc107e51de6968568a266de25b98e57257926defab7261fd81cbd624e00 kamailio.initd
-b24c75cdf01e05de50a8e61d53aa20d76e35b2256562ce0ab61db7faba4ed30c kamailio.groups"
+82612cc107e51de6968568a266de25b98e57257926defab7261fd81cbd624e00 kamailio.initd"
sha512sums="cb46c335ad6afba78ef72fbb4e323dcb4a9c7867aceaaac9f000f6d6199026f6d797735107ef554c79cd79188fa291398e389bcb9bc8acdef75da50874da36e1 kamailio-4.0.1_src.tar.gz
8aeb1d6eb0d83c20b0ad31e74ca68cfa868a215a12b7029167c8913aeb84afa06e1bbc8b43dd3f84ce864a9ca6f04177d73401f99d37d9087c06a8d8431d18fd fix-sql-module-loading-order.patch
0b666bfa10fd0af97b62749f8691cb3f76d9b40d1abe0a33e810e367bd733d2e8189c89f7f23010ec591116aada6e1a8a403b17449fe775038917617f281ad4d kamailio.cfg
-babec2a230daea3c579dc581f9a945c70bd1736cdacaaa7a183d902c8d9fbd4f7958cce03424fb65cdf7a1f6aa077ad8aec7e53525e270f88f856caa374505e7 kamailio.initd
-35daf568d5f715795becc3ff38a021fae1f2fc43f1a859453a4820c9f8d18f35bc17b0e83a9672103b4cd0987a48f590a52f86c4e4b0f9508a769e822790e094 kamailio.groups"
+babec2a230daea3c579dc581f9a945c70bd1736cdacaaa7a183d902c8d9fbd4f7958cce03424fb65cdf7a1f6aa077ad8aec7e53525e270f88f856caa374505e7 kamailio.initd"