Subject: [alpine-devel] APKBUILD: Added unixodbc support for Kamailio

From: Francesco <[email-masked]>
Date: Tue, 3 Nov 2009 17:20:48 +0100

Take a look, ncopa!
Thanks.

:: Francesco Colista ::
From 1e3898048240a1e6cb3089b48c440c775d5b22dd Mon Sep 17 00:00:00 2001
From: Francesco Colista <[email-masked]>
Date: Tue, 3 Nov 2009 13:39:23 +0000
Subject: [PATCH] Added support for Kamailio

---
 main/kamailio/APKBUILD |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/main/kamailio/APKBUILD b/main/kamailio/APKBUILD
index 292d194..3105e14 100644
--- a/main/kamailio/APKBUILD
+++ b/main/kamailio/APKBUILD
@@ -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 unixodbc-dev"
 install=
 subpackages="$pkgname-doc $pkgname-mysql $pkgname-postgres $pkgname-pcre
-	$pkgname-presence $pkgname-mediaproxy"
+	$pkgname-presence $pkgname-mediaproxy $pkgname-unixodbc"
 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 db_unixodbc" \
 		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 db_unixodbc" \
 		basedir="$pkgdir" install || return 1
 
 	# move default config to -doc package and use our own default config
@@ -108,6 +108,12 @@ mediaproxy() {
 	_mv_mod mediaproxy
 }
 
+unixodbc() {
+	pkgdesc="UnixODBC support for kamailio"
+	depends="kamailio unixodbc"
+	_mv_mod db_unixodbc
+}
+
 md5sums="6c6f4ed6fbcb4d008b8ac3de5b99ce99  kamailio-1.5.2-notls_src.tar.gz
 eb665248ee39cf755a247286affc5cbb  kamailio.cfg
 81100c479890a2a8c2628db22fdd1a0c  kamailio.initd
-- 
1.6.4.4

---

From: Natanael Copa <[email-masked]>
Date: Wed, 04 Nov 2009 15:31:43 +0100

> :: Francesco Colista ::

Cool!

Stupid me who did this after I bumped the version.

I applied the patch fixed the conflict and commited with you as author.
I also removed unixodbc from depends as its autodetected (abuild warns
about it)

http://git.alpinelinux.org/cgit/aports/commit/?id=2ede4a9d440f140244c821407ae3844053a2d6ce

Thanks!

-nc

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---