From owner-svn-ports-all@FreeBSD.ORG Sat Mar 16 06:47:22 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E40019F6; Sat, 16 Mar 2013 06:47:22 +0000 (UTC) (envelope-from jgh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id B26A1378; Sat, 16 Mar 2013 06:47:22 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2G6lMTv046116; Sat, 16 Mar 2013 06:47:22 GMT (envelope-from jgh@svn.freebsd.org) Received: (from jgh@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2G6lMSD046115; Sat, 16 Mar 2013 06:47:22 GMT (envelope-from jgh@svn.freebsd.org) Message-Id: <201303160647.r2G6lMSD046115@svn.freebsd.org> From: Jason Helfman Date: Sat, 16 Mar 2013 06:47:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r314336 - head/mail/postfixadmin X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Mar 2013 06:47:23 -0000 Author: jgh Date: Sat Mar 16 06:47:21 2013 New Revision: 314336 URL: http://svnweb.freebsd.org/changeset/ports/314336 Log: - adopt optionsNG -trim historical header Approved by: portmgr (miwi) Modified: head/mail/postfixadmin/Makefile Modified: head/mail/postfixadmin/Makefile ============================================================================== --- head/mail/postfixadmin/Makefile Sat Mar 16 04:59:32 2013 (r314335) +++ head/mail/postfixadmin/Makefile Sat Mar 16 06:47:21 2013 (r314336) @@ -1,9 +1,5 @@ -# New ports collection makefile for: postfixadmin -# Date created: 23 October 2003 -# Whom: Rob Evers -# +# Created by: Rob Evers # $FreeBSD$ -# PORTNAME= postfixadmin PORTVERSION= 2.3.6 @@ -22,30 +18,30 @@ NO_BUILD= yes SUB_FILES+= pkg-message -OPTIONS= MYSQL "MySQL back-end (use mysql PHP extension)" on -OPTIONS+= MYSQLI "MySQL 4.1+ back-end (use mysqli PHP extension)" off -OPTIONS+= PGSQL "PostgreSQL back-end (use pgsql PHP extension)" off +OPTIONS_SINGLE= DB +OPTIONS_SINGLE_DB= MYSQL MYSQLI PGSQL +MYSQL_DESC= MySQL back-end (use mysql PHP extension) +MYSQLI_DESC= MySQL 4.1+ back-end (use mysqli PHP extension) +PGSQL_DESC= PostgreSQL back-end (use pgsql PHP extension) + +OPTIONS_DEFAULT= MYSQL .include USE_PHP= pcre session mbstring spl xmlrpc -.if !defined(WITHOUT_MYSQL) +.if ${PORT_OPTIONS:MMYSQL} USE_PHP+= mysql .endif -.if defined(WITH_MYSQLI) +.if ${PORT_OPTIONS:MMYSQLI} USE_PHP+= mysqli .endif -.if defined(WITH_PGSQL) +.if ${PORT_OPTIONS:MPGSQL} USE_PHP+= pgsql .endif -.if defined(WITHOUT_MYSQL) && !defined(WITH_MYSQLI) && !defined(WITH_PGSQL) -IGNORE= needs at least one database back-end -.endif - post-patch: @${FIND} ${WRKSRC} -name '*.orig' -delete @@ -80,7 +76,7 @@ do-install: (cd ${WRKSRC}/ADDITIONS/ && \ ${COPYTREE_SHARE} \* ${PREFIX}/www/postfixadmin/ADDITIONS/ "! -name squirrelmail-plugin") -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} (cd ${WRKSRC}/DOCUMENTS && ${COPYTREE_SHARE} \* ${DOCSDIR}) .endif