ports/183839: [www/owncloud] Add database backend selection
Spil
spil.oss at gmail.com
Sun Nov 10 09:40:01 UTC 2013
>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 at 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:
More information about the freebsd-ports-bugs
mailing list