Date: Sun, 10 Nov 2013 09:35:02 GMT From: Spil <spil.oss@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/183839: [www/owncloud] Add database backend selection Message-ID: <201311100935.rAA9Z2aA052779@oldred.freebsd.org> Resent-Message-ID: <201311100940.rAA9e0ZX099322@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 183839 >Category: ports >Synopsis: [www/owncloud] Add database backend selection >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Nov 10 09:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Spil >Release: FreeBSD 9.2 amd64 >Organization: n.a. >Environment: FreeBSD build.example.org 9.2-RELEASE FreeBSD 9.2-RELEASE #3: Sat Sep 28 21:15:16 CEST 2013 root@build.example.org:/usr/obj/usr/src/sys/BEASTIE92 amd64 >Description: Owncloud pulls in all available database backends by default Added options to make database backend selectable >How-To-Repeat: cd /usr/ports/www/owncloud make make install >Fix: --- Makefile.orig 2013-11-09 17:22:23.000000000 +0100 +++ Makefile 2013-11-10 10:34:02.615317290 +0100 @@ -15,13 +15,32 @@ 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 WWWDOCROOT?= www +OPTIONS_MULTI= DB +OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE +OPTIONS_DEFAULT= MYSQL + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MMYSQL} +USE_MYSQL= client +USE_PHP+= mysql pdo_mysql +.endif + +.if ${PORT_OPTIONS:MPGSQL} +USE_PHP+= pdo_pgsql +.endif + +.if ${PORT_OPTIONS:MSQLITE} +USE_PHP+= sqlite pdo_sqlite +.endif + WRKSRC= ${WRKDIR}/${PORTNAME} NO_BUILD= yes SUB_FILES= pkg-message >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311100935.rAA9Z2aA052779>