mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
Add database backend selection.
PR: ports/183839 Submitted by: Spil <spil.oss at gmail dot com>
This commit is contained in:
parent
f2b2c6aa1d
commit
ae3bc51616
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333654
@ -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 <bsd.port.options.mk>
|
||||
|
||||
.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}
|
||||
|
Loading…
Reference in New Issue
Block a user