From owner-svn-ports-head@FreeBSD.ORG Wed Nov 13 06:32:04 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 969ABA0E; Wed, 13 Nov 2013 06:32:04 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 86BA12797; Wed, 13 Nov 2013 06:32:04 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAD6W4Up098397; Wed, 13 Nov 2013 06:32:04 GMT (envelope-from kevlo@svn.freebsd.org) Received: (from kevlo@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAD6W4JR098396; Wed, 13 Nov 2013 06:32:04 GMT (envelope-from kevlo@svn.freebsd.org) Message-Id: <201311130632.rAD6W4JR098396@svn.freebsd.org> From: Kevin Lo Date: Wed, 13 Nov 2013 06:32:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r333654 - head/www/owncloud X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Nov 2013 06:32:04 -0000 Author: kevlo Date: Wed Nov 13 06:32:04 2013 New Revision: 333654 URL: http://svnweb.freebsd.org/changeset/ports/333654 Log: Add database backend selection. PR: ports/183839 Submitted by: Spil Modified: head/www/owncloud/Makefile Modified: head/www/owncloud/Makefile ============================================================================== --- head/www/owncloud/Makefile Wed Nov 13 06:31:00 2013 (r333653) +++ head/www/owncloud/Makefile Wed Nov 13 06:32:04 2013 (r333654) @@ -2,6 +2,7 @@ PORTNAME= owncloud PORTVERSION= 5.0.13 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://download.owncloud.org/community/ @@ -15,8 +16,8 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} USE_BZIP2= yes USE_PHP= ctype curl dom fileinfo filter gd hash iconv json ldap \ - mbstring mysql openssl pdo pdo_mysql pdo_pgsql pdo_sqlite \ - session simplexml sqlite3 xml xmlreader xsl wddx zip zlib + mbstring openssl pdo session simplexml xml xmlreader \ + xsl wddx zip zlib WANT_PHP_WEB= yes DEFAULT_PHP_VER=5 @@ -26,6 +27,25 @@ WRKSRC= ${WRKDIR}/${PORTNAME} NO_BUILD= yes SUB_FILES= pkg-message +OPTIONS_MULTI= DB +OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE +OPTIONS_DEFAULT= SQLITE +.include + +.if ${PORT_OPTIONS:MMYSQL} +USE_MYSQL= client +USE_PHP+= mysql pdo_mysql +.endif + +.if ${PORT_OPTIONS:MPGSQL} +USE_PGSQL= yes +USE_PHP+= pgsql pdo_pgsql +.endif + +.if ${PORT_OPTIONS:MSQLITE} +USE_PHP+= sqlite3 pdo_sqlite +.endif + do-install: @${MKDIR} -m 0755 ${STAGEDIR}${WWWDIR} @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}