From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 11 16:50:08 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 048E91065672 for ; Fri, 11 Feb 2011 16:50:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B96028FC21 for ; Fri, 11 Feb 2011 16:50:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1BGo7ur080435 for ; Fri, 11 Feb 2011 16:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1BGo7DL080434; Fri, 11 Feb 2011 16:50:07 GMT (envelope-from gnats) Resent-Date: Fri, 11 Feb 2011 16:50:07 GMT Resent-Message-Id: <201102111650.p1BGo7DL080434@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Panagiotis Christias Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18359106564A for ; Fri, 11 Feb 2011 16:45:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id EE7BF8FC16 for ; Fri, 11 Feb 2011 16:45:20 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p1BGjKYb031186 for ; Fri, 11 Feb 2011 16:45:20 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p1BGjK6s031185; Fri, 11 Feb 2011 16:45:20 GMT (envelope-from nobody) Message-Id: <201102111645.p1BGjK6s031185@red.freebsd.org> Date: Fri, 11 Feb 2011 16:45:20 GMT From: Panagiotis Christias To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/154689: [patch] net/asterisk: add mysql support option X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2011 16:50:08 -0000 >Number: 154689 >Category: ports >Synopsis: [patch] net/asterisk: add mysql support option >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Feb 11 16:50:07 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Panagiotis Christias >Release: 7.3-RELEASE-p3 amd64 >Organization: NTUA NOC >Environment: FreeBSD builder7-amd64.noc.ntua.gr 7.3-RELEASE-p3 FreeBSD 7.3-RELEASE-p3 #0: Wed Sep 22 15:55:56 EEST 2010 root@agamemnon.noc.ntua.gr:/usr/obj/usr/src/sys/NTUA amd64 >Description: This is a patch for adding a MySQL support option to net/asterisk port. >How-To-Repeat: >Fix: See attached patch file. Also available at http://noc.ntua.gr/~christia/patch-asterisk18-mysql.txt Patch attached with submission follows: diff -r -u -N asterisk.orig/Makefile asterisk/Makefile --- asterisk.orig/Makefile 2011-01-27 12:20:47.000000000 +0200 +++ asterisk/Makefile 2011-02-11 18:34:37.000000000 +0200 @@ -47,6 +47,7 @@ IODBC "Enable iODBC support" off \ UODBC "Enable unixODBC support" on \ POSTGRES "Enable PostgreSQL support" on \ + MYSQL "Enable MySQL support" off \ RADIUS "Enable RADIUS accounting support" on \ SNMP "Enable SNMP support" on \ H323 "Enable H.323 support" on \ @@ -153,6 +154,14 @@ CONFIGURE_ARGS+= --with-postgres .endif +.if !defined(WITH_MYSQL) +PLIST_SUB+= WITH_MYSQL="@comment " +.else +PLIST_SUB+= WITH_MYSQL="" +USE_MYSQL= yes +EXTRA_PATCHES+= ${PATCHDIR}/menuselect-tree.diff +.endif + .if !defined(WITH_OGGVORBIS) PLIST_SUB+= WITH_OGGVORBIS="@comment " CONFIGURE_ARGS+= --without-ogg diff -r -u -N asterisk.orig/files/menuselect-tree.diff asterisk/files/menuselect-tree.diff --- asterisk.orig/files/menuselect-tree.diff 1970-01-01 02:00:00.000000000 +0200 +++ asterisk/files/menuselect-tree.diff 2011-02-11 17:34:39.000000000 +0200 @@ -0,0 +1,25 @@ +--- menuselect-tree.orig 2011-02-11 17:33:25.000000000 +0200 ++++ menuselect-tree 2011-02-11 17:33:52.000000000 +0200 +@@ -4,14 +4,12 @@ + + + mysqlclient +- no + + + no + + + mysqlclient +- no + + + bluetooth +@@ -25,7 +23,6 @@ + + + mysqlclient +- no + + + diff -r -u -N asterisk.orig/pkg-plist asterisk/pkg-plist --- asterisk.orig/pkg-plist 2010-12-29 14:47:09.000000000 +0200 +++ asterisk/pkg-plist 2011-02-11 17:56:48.000000000 +0200 @@ -426,6 +426,7 @@ lib/asterisk/modules/app_celgenuserevent.so lib/asterisk/modules/app_confbridge.so lib/asterisk/modules/app_minivm.so +%%WITH_MYSQL%%lib/asterisk/modules/app_mysql.so lib/asterisk/modules/app_originate.so lib/asterisk/modules/app_playtones.so lib/asterisk/modules/app_readexten.so @@ -533,6 +534,7 @@ lib/asterisk/modules/cdr_csv.so lib/asterisk/modules/cdr_custom.so lib/asterisk/modules/cdr_manager.so +%%WITH_MYSQL%%lib/asterisk/modules/cdr_mysql.so %%WITH_POSTGRES%%lib/asterisk/modules/cdr_pgsql.so %%WITH_RADIUS%%lib/asterisk/modules/cdr_radius.so %%WITH_SQLITE%%lib/asterisk/modules/cdr_sqlite.so @@ -613,6 +615,7 @@ lib/asterisk/modules/res_calendar.so %%WITH_EXCHANGE%%lib/asterisk/modules/res_calendar_ews.so lib/asterisk/modules/res_clioriginate.so +%%WITH_MYSQL%%lib/asterisk/modules/res_config_mysql.so %%WITH_POSTGRES%%lib/asterisk/modules/res_config_pgsql.so lib/asterisk/modules/res_convert.so lib/asterisk/modules/res_crypto.so >Release-Note: >Audit-Trail: >Unformatted: