1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

Provide options for SQLite, MySQL, and PostgreSQL.

Make the sample configuration file a true @sample.

Points to mat@ for shaming me into this. Thank you.
This commit is contained in:
Dan Langille 2017-12-14 20:49:24 +00:00
parent 08b4bc3456
commit 54c093ebb8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=456372
2 changed files with 25 additions and 8 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= Stikked
DISTVERSION= 0.12.0
PORTREVISION= 1
CATEGORIES= www
MAINTAINER= dvl@FreeBSD.org
@ -13,18 +14,35 @@ USES= php:web
USE_GITHUB= yes
GH_ACCOUNT= claudehohl
WANT_PGSQL= client
WANT_SQLITE= client
WANT_MYSQL= client
USE_PHP= gd pdo session ctype filter pgsql
PGSQL_USE= PHP=pdo_pgsql
USE_PHP= ctype filter gd pgsql session
NO_BUILD= yes
NO_ARCH= yes
SUB_FILES= pkg-message
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE
OPTIONS_DEFAULT= PGSQL
MYSQL_DESC= Include the PHP shared extension for MySQL
PGSQL_DESC= Include the PHP shared extension for PostgreSQL
SQLITE_DESC= Include the PHP shared extension for SQLite3
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
USE_PHP+= mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+= pgsql
.endif
.if ${PORT_OPTIONS:MSQLITE}
USE_PHP+= sqlite3
.endif
do-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
${MKDIR} ${STAGEDIR}${WWWDIR}

View File

@ -1,5 +1,4 @@
%%ETCDIR%%/stikked.php.sample
@sample %%ETCDIR%%/stikked.php.sample
%%WWWDIR%%/.htaccess
%%WWWDIR%%/application/.htaccess
%%WWWDIR%%/application/cache/.htaccess