Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 2010 12:17:38 GMT
From:      Alexandr Kovalenko <never@nevermind.kiev.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/148633: [PATCH] www/kannel: Add support for MySQL, PostgreSQL, SQLite and fix MASTER_SITES
Message-ID:  <201007151217.o6FCHcu1041706@www.freebsd.org>
Resent-Message-ID: <201007151220.o6FCK1ZO044605@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         148633
>Category:       ports
>Synopsis:       [PATCH] www/kannel: Add support for MySQL, PostgreSQL, SQLite and fix MASTER_SITES
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 15 12:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Alexandr Kovalenko
>Release:        8.0
>Organization:
Summa Telecom Ukraine, LLC, http://sumtel.ua/
>Environment:
FreeBSD mile.xxx.ua 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #1: Tue Jun  1 17:25:26 EEST 2010     root@mile.xxx.ua:/usr/obj/usr/src/sys/mile  i386

>Description:
- Add support for MySQL, PostgreSQL and SQLite database backends via OPTIONS
- Fix MASTER_SITES
>How-To-Repeat:
N/A
>Fix:
Apply patch attached.

Patch attached with submission follows:

diff -ruN kannel.orig/Makefile kannel/Makefile
--- kannel.orig/Makefile	2009-07-27 10:13:44.000000000 +0300
+++ kannel/Makefile	2010-07-15 13:52:58.000000000 +0300
@@ -6,9 +6,9 @@
 
 PORTNAME=	kannel
 PORTVERSION=	1.4.3
+PORTREVISION=	1
 CATEGORIES=	www
-MASTER_SITES=	http://www.kannel.org/download/%SUBDIR%/ \
-		http://farrokhi.net/distfiles/
+MASTER_SITES=	http://www.kannel.org/download/
 MASTER_SITE_SUBDIR=	${PORTVERSION}
 DISTNAME=	gateway-${PORTVERSION}
 
@@ -30,11 +30,30 @@
 MAN1=		mtbatch.1 seewbmp.1 wmlsc.1 wmlsdasm.1
 MAN8=		kannel.8 run_kannel_box.8
 
+OPTIONS=	MYSQL	"Enable MySQL support"	off \
+		PGSQL	"Enable PostgreSQL support"	off \
+		SQLITE3	"Enable SQLite support"	off
+
 CPPFLAGS=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
 LDFLAGS=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
 
 .include <bsd.port.pre.mk>
 
+.if defined(WITH_MYSQL)
+USE_MYSQL=	yes
+CONFIGURE_ARGS+=--with-mysql
+.endif
+
+.if defined(WITH_PGSQL)
+USE_PGSQL=	yes
+CONFIGURE_ARGS+=--with-pgsql
+.endif
+
+.if defined(WITH_SQLITE3)
+USE_SQLITE=	3
+CONFIGURE_ARGS+=--with-sqlite3
+.endif
+
 .if ${ARCH} == "alpha"
 BROKEN=		Does not compile on alpha
 .endif


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007151217.o6FCHcu1041706>