aboutsummaryrefslogtreecommitdiffstats
path: root/main/kamailio
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-11-01 15:09:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-11-01 15:09:50 +0000
commit2b370b25812870d4b1b6b13387499e88c44af1eb (patch)
tree38ee9248cd12d2da1d19eb74c7b1cec39053cdfd /main/kamailio
parentb50b5bb3f7699e3b16a6d596995a6c5d74b226a9 (diff)
downloadaports-2b370b25812870d4b1b6b13387499e88c44af1eb.tar.bz2
aports-2b370b25812870d4b1b6b13387499e88c44af1eb.tar.xz
main/kamailio: add ldap subpackage
Diffstat (limited to 'main/kamailio')
-rw-r--r--main/kamailio/APKBUILD25
1 files changed, 21 insertions, 4 deletions
diff --git a/main/kamailio/APKBUILD b/main/kamailio/APKBUILD
index ec40384ee3..e6cae2ebd4 100644
--- a/main/kamailio/APKBUILD
+++ b/main/kamailio/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=kamailio
pkgver=3.2.0
-pkgrel=1
+pkgrel=2
pkgdesc="Open Source SIP Proxy"
url="http://www.kamailio.org/"
pkgusers="kamailio"
@@ -12,10 +12,12 @@ license="GPL"
depends=
arch=all
makedepends="bison flex expat-dev postgresql-dev pcre-dev mysql-dev
- libxml2-dev curl-dev unixodbc-dev confuse-dev ncurses-dev sqlite-dev lua-dev"
+ libxml2-dev curl-dev unixodbc-dev confuse-dev ncurses-dev sqlite-dev
+ lua-dev openldap-dev"
install="$pkgname.pre-install $pkgname.pre-upgrade"
subpackages="$pkgname-doc $pkgname-postgres $pkgname-presence $pkgname-pcre
- $pkgname-mediaproxy $pkgname-unixodbc $pkgname-mysql $pkgname-sqlite $pkgname-lua"
+ $pkgname-mediaproxy $pkgname-unixodbc $pkgname-mysql $pkgname-sqlite
+ $pkgname-lua $pkgname-ldap"
source="http://www.kamailio.org/pub/kamailio/$pkgver/src/kamailio-${pkgver}_src.tar.gz
fix-sql-module-loading-order.patch
kamailio.cfg
@@ -34,8 +36,9 @@ _mediaproxy="mediaproxy"
_odbc="db_unixodbc"
_sqlite="db_sqlite"
_lua="app_lua"
+_ldap="ldap"
# Makefile does not handle newline
-_modules="$_default $_postgres $_mediaproxy $_odbc $_presence $_mysql $_pcre $_lua $_sqlite"
+_modules="$_default $_postgres $_mediaproxy $_odbc $_presence $_mysql $_pcre $_lua $_sqlite $_ldap"
prepare() {
@@ -114,6 +117,13 @@ _mv_mod_k() {
done
}
+_mv_mod_s() {
+ local moddir=usr/lib/kamailio/modules_s i=
+ mkdir -p "$subpkgdir"/$moddir
+ for i in $@; do
+ mv "$pkgdir"/$moddir/$i.so "$subpkgdir"/$moddir/ || return 1
+ done
+}
lua() {
pkgdesc="Lua script support for kamailio"
@@ -182,6 +192,13 @@ unixodbc() {
_mv_mod_k $_odbc
}
+ldap() {
+ pkgdesc="LDAP support for kamailio"
+ depends="kamailio"
+ _mv_mod_k ldap
+ _mv_mod_s ldap
+}
+
md5sums="d2b452e5ec4927b2ec8decdda5966bd9 kamailio-3.2.0_src.tar.gz
53cca39c47399eb2df20a1044d1e29eb fix-sql-module-loading-order.patch
a3c959ec568c43a905710e7d25cd8c25 kamailio.cfg