Subject: [alpine-devel] [NEW APK] LDAP support for Kamailio

From: Francesco <[email-masked]>
Date: Tue, 13 Oct 2009 14:59:48 +0200

Please review, correct and commit.
Thanks.

:: Francesco Colista ::
From 82d10bd42f2d0cc402d64d9390e84e4643527305 Mon Sep 17 00:00:00 2001
From: Francesco Colista <[email-masked]>
Date: Tue, 13 Oct 2009 13:02:35 +0000
Subject: [PATCH] Added ldap support for Kamailio

---
 main/kamailio/APKBUILD |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/main/kamailio/APKBUILD b/main/kamailio/APKBUILD
index 573b364..61aa4f0 100644
--- a/main/kamailio/APKBUILD
+++ b/main/kamailio/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=kamailio
 pkgver=1.5.2
-pkgrel=6
+pkgrel=7
 pkgdesc="Open Source SIP Server"
 url="http://www.kamailio.org/"
 pkgusers="kamailio"
@@ -10,10 +10,10 @@ pkggroups="kamailio"
 license="GPL"
 depends=
 makedepends="bison flex expat-dev postgresql-dev mysql-dev pcre-dev
-	libxml2-dev curl-dev"
+	libxml2-dev curl-dev openldap-dev"
 install=
 subpackages="$pkgname-doc $pkgname-mysql $pkgname-postgres $pkgname-pcre
-	$pkgname-presence $pkgname-mediaproxy"
+	$pkgname-presence $pkgname-mediaproxy $pkgname-ldap"
 source="http://www.kamailio.org/pub/kamailio/$pkgver/src/$pkgname-$pkgver-notls_src.tar.gz
 	kamailio.cfg
 	kamailio.initd
@@ -41,7 +41,7 @@ build() {
 		MODS_PRESENCE=yes \
 		MODS_RADIUS= \
 		TLS= \
-		include_modules="db_postgres mediaproxy" \
+		include_modules="db_postgres mediaproxy ldap" \
 		all || return 1
 	make prefix=/usr \
 		cfg-dir=/etc/kamailio/ \
@@ -50,7 +50,7 @@ build() {
 		MODS_PRESENCE=yes \
 		MODS_RADIUS= \
 		TLS= \
-		include_modules="db_postgres mediaproxy" \
+		include_modules="db_postgres mediaproxy ldap" \
 		basedir="$pkgdir" install || return 1
 
 	# move default config to -doc package and use our own default config
@@ -103,11 +103,19 @@ presence() {
 }
 
 mediaproxy() {
-	pkgdesc="Mediaproxy suupport for kamailio"
-	depends="kamailio"
+	pkgdesc="Mediaproxy support for kamailio"
+	depends="kamailio libldap"
 	_mv_mod mediaproxy
 }
 
+ldap() {
+	pkgdesc="LDAP support for kamailio"
+	depends="kamailio"
+	_mv_mod ldap
+}
+
+
+
 md5sums="6c6f4ed6fbcb4d008b8ac3de5b99ce99  kamailio-1.5.2-notls_src.tar.gz
 eb665248ee39cf755a247286affc5cbb  kamailio.cfg
 81100c479890a2a8c2628db22fdd1a0c  kamailio.initd
-- 
1.6.2.5