ports/99394: mail/postfixadmin - add mysqli dependency; other updates/corrections

Darren Pilgrim darren.pilgrim at bitfreak.org
Fri Jun 23 23:30:29 UTC 2006


>Number:         99394
>Category:       ports
>Synopsis:       mail/postfixadmin - add mysqli dependency; other updates/corrections
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 23 23:30:27 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Darren Pilgrim
>Release:        7.0-CURRENT
>Organization:
>Environment:
Not applicable.
>Description:
Postfixadmin supports the mysqli extension as well as mysql and pgsql, so add an option to use it, but don't change the default, since mysqli doesn't support all available versions of MySQL server.  While I'm here, do a few other things:

- Correct the spelling of PostgreSQL in the PGSQL option description.
- Clarify the POSTFIX_LOCAL option description to better its optional nature.
- Make the requisite PORTREVISION bump.
>How-To-Repeat:
Not applicable.
>Fix:
Apply the following patch:

--- ports/mail/postfixadmin/Makefile.orig	Wed Jun 21 01:10:49 2006
+++ ports/mail/postfixadmin/Makefile		Fri Jun 23 16:15:22 2006
@@ -7,7 +7,7 @@
 
 PORTNAME=	postfixadmin
 PORTVERSION=	2.1.0
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	mail www
 MASTER_SITES=	http://high5.net/postfixadmin/ \
 		http://sce-tindy.tecnik93.com/FreeBSD/ports/${PORTNAME}/sources/
@@ -20,9 +20,10 @@
 
 SUB_FILES+=	pkg-message
 
-OPTIONS=	MYSQL "Use MySQL to store config data" on
-OPTIONS+=	PGSQL "Use PostgresQL to store config data" off
-OPTIONS+=	POSTFIX_LOCAL "RUN_DEPEND on postfix" off
+OPTIONS=	MYSQL "Use mysql (any MySQL version) to store config data" on
+OPTIONS+=	MYSQLI "Use mysqli (MySQL v4.1+ only) to store config data" off
+OPTIONS+=	PGSQL "Use PostgreSQL to store config data" off
+OPTIONS+=	POSTFIX_LOCAL "Add Postfix as a run dependency (OPTIONAL)" off
 
 .include <bsd.port.pre.mk>
 
@@ -34,11 +35,15 @@
 USE_PHP+=	mysql
 .endif
 
+.ifdef(WITH_MYSQLI)
+USE_PHP+=	mysqli
+.endif
+
 .ifdef(WITH_PGSQL)
 USE_PHP+=	pgsql
 .endif
 
-.ifdef(WITHOUT_MYSQL) && !defined(WITH_PGSQL)
+.ifdef(WITHOUT_MYSQL) && !defined(WITH_MYSQLI) && !defined(WITH_PGSQL)
 IGNORE=	needs at least one database backend
 .endif
 

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list