svn commit: r456372 - head/www/Stikked
Dan Langille
dvl at FreeBSD.org
Thu Dec 14 20:49:25 UTC 2017
Author: dvl
Date: Thu Dec 14 20:49:24 2017
New Revision: 456372
URL: https://svnweb.freebsd.org/changeset/ports/456372
Log:
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.
Modified:
head/www/Stikked/Makefile
head/www/Stikked/pkg-plist
Modified: head/www/Stikked/Makefile
==============================================================================
--- head/www/Stikked/Makefile Thu Dec 14 20:44:30 2017 (r456371)
+++ head/www/Stikked/Makefile Thu Dec 14 20:49:24 2017 (r456372)
@@ -3,6 +3,7 @@
PORTNAME= Stikked
DISTVERSION= 0.12.0
+PORTREVISION= 1
CATEGORIES= www
MAINTAINER= dvl at FreeBSD.org
@@ -13,17 +14,34 @@ USES= php:web
USE_GITHUB= yes
GH_ACCOUNT= claudehohl
-WANT_PGSQL= client
-WANT_SQLITE= client
-WANT_MYSQL= client
+USE_PHP= ctype filter gd pgsql session
-USE_PHP= gd pdo session ctype filter pgsql
-PGSQL_USE= PHP=pdo_pgsql
-
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}
Modified: head/www/Stikked/pkg-plist
==============================================================================
--- head/www/Stikked/pkg-plist Thu Dec 14 20:44:30 2017 (r456371)
+++ head/www/Stikked/pkg-plist Thu Dec 14 20:49:24 2017 (r456372)
@@ -1,5 +1,4 @@
-%%ETCDIR%%/stikked.php.sample
-
+ at sample %%ETCDIR%%/stikked.php.sample
%%WWWDIR%%/.htaccess
%%WWWDIR%%/application/.htaccess
%%WWWDIR%%/application/cache/.htaccess
More information about the svn-ports-head
mailing list