Date: Sat, 16 Mar 2013 06:47:22 +0000 (UTC) From: Jason Helfman <jgh@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r314336 - head/mail/postfixadmin Message-ID: <201303160647.r2G6lMSD046115@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <rob@debank.tv> -# +# Created by: Rob Evers <rob@debank.tv> # $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 <bsd.port.pre.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303160647.r2G6lMSD046115>