From owner-svn-ports-head@freebsd.org Thu Dec 14 20:49:25 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C8A54E8F093; Thu, 14 Dec 2017 20:49:25 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 93E1E7914C; Thu, 14 Dec 2017 20:49:25 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBEKnOWL076740; Thu, 14 Dec 2017 20:49:24 GMT (envelope-from dvl@FreeBSD.org) Received: (from dvl@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBEKnO7N076738; Thu, 14 Dec 2017 20:49:24 GMT (envelope-from dvl@FreeBSD.org) Message-Id: <201712142049.vBEKnO7N076738@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dvl set sender to dvl@FreeBSD.org using -f From: Dan Langille Date: Thu, 14 Dec 2017 20:49:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r456372 - head/www/Stikked X-SVN-Group: ports-head X-SVN-Commit-Author: dvl X-SVN-Commit-Paths: head/www/Stikked X-SVN-Commit-Revision: 456372 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2017 20:49:25 -0000 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@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 + +.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 - +@sample %%ETCDIR%%/stikked.php.sample %%WWWDIR%%/.htaccess %%WWWDIR%%/application/.htaccess %%WWWDIR%%/application/cache/.htaccess