Date: Sat, 15 Dec 2012 19:27:49 GMT From: Lukasz Wasikowski <lukasz@wasikowski.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/174460: [maintainer update] Update mail/sgwi to use options NG Message-ID: <201212151927.qBFJRn4S003026@red.freebsd.org> Resent-Message-ID: <201212151930.qBFJU07C096095@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212151927.qBFJRn4S003026>