ports/174460: [maintainer update] Update mail/sgwi to use options NG

Lukasz Wasikowski lukasz at wasikowski.net
Sat Dec 15 19:30:00 UTC 2012


>Number:         174460
>Category:       ports
>Synopsis:       [maintainer update] Update mail/sgwi to use options NG
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 15 19:30:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Lukasz Wasikowski
>Release:        9.1-PRERELEASE
>Organization:
>Environment:
FreeBSD bijou.wasikowski.net 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #26 r243988: Fri Dec  7 23:35:32 CET 2012     root at bijou.wasikowski.net:/usr/obj/usr/src/sys/bijou  i386
>Description:
Update sgwi 1.1.5 to use options NG.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN mail/sgwi.bak/Makefile mail/sgwi/Makefile
--- mail/sgwi.bak/Makefile	2012-11-17 06:59:14.000000000 +0100
+++ mail/sgwi/Makefile	2012-12-15 20:17:01.650780747 +0100
@@ -21,21 +21,24 @@
 SUB_FILES+=	pkg-message pkg-install
 SUB_LIST=	WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
 
-OPTIONS=	MYSQL "MySQL back-end (use mysql PHP extension)" on
-OPTIONS+=	PGSQL "PostgreSQL back-end (use pgsql PHP extension)" off
+OPTIONS_SINGLE=	BACKEND
+OPTIONS_SINGLE_BACKEND=	MYSQL PGSQL
 
-.if !defined(WITHOUT_MYSQL)
+MYSQL_DESC=	MySQL back-end (use mysql PHP extension)
+PGSQL_DESC= 	PostgreSQL back-end (use pgsql PHP extension)
+
+OPTIONS_DEFAULT=MYSQL
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MMYSQL}
 USE_PHP+=	mysql
 .endif
 
-.if defined(WITH_PGSQL)
+.if ${PORT_OPTIONS:MPGSQL}
 USE_PHP+=	pgsql
 .endif
 
-.if defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL)
-IGNORE=	needs at least one database back-end
-.endif
-
 WANT_PHP_WEB=	yes
 
 post-patch:


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


More information about the freebsd-ports-bugs mailing list