From d1f204218fec6c7241d681fb462dfc7e64063d5e Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Sat, 4 Jul 2020 09:29:32 +0000 Subject: [PATCH] Flavorize PR: 247543 Submitted by: Yasuhiro KIMURA (maintainer) --- mail/rainloop-community/Makefile | 2 +- mail/rainloop/Makefile | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/mail/rainloop-community/Makefile b/mail/rainloop-community/Makefile index cc8015e488a6..7d07d1b3bd1a 100644 --- a/mail/rainloop-community/Makefile +++ b/mail/rainloop-community/Makefile @@ -2,7 +2,7 @@ PORTNAME= rainloop DISTVERSIONPREFIX= community- -PKGNAMESUFFIX= -community +PKGNAMESUFFIX= -community${PHP_PKGNAMESUFFIX} COMMENT= Modern and interactive webmail - community edition diff --git a/mail/rainloop/Makefile b/mail/rainloop/Makefile index ca9389548edd..40cb3c37aa51 100644 --- a/mail/rainloop/Makefile +++ b/mail/rainloop/Makefile @@ -4,27 +4,29 @@ PORTNAME= rainloop PORTVERSION= 1.14.0 CATEGORIES= mail www MASTER_SITES= https://github.com/RainLoop/rainloop-webmail/releases/download/v${PORTVERSION}/ +PKGNAMESUFFIX?= ${PHP_PKGNAMESUFFIX} MAINTAINER= yasu@utahime.org COMMENT?= Modern and interactive webmail -.if !defined(PKGNAMESUFFIX) +.if "${PKGNAMESUFFIX"} == "${PHP_PKGNAMESUFFIX}" LICENSE= RainLoop LICENSE_NAME= RainLoop Software License LICENSE_TEXT= License can be found at: http://www.rainloop.net/licensing/ LICENSE_PERMS= auto-accept .endif -.if !defined(PKGNAMESUFFIX) -RESTRICTED= Redistribution in any form is prohibited -.endif -USES= php:web zip +USES= php:web,flavors zip NO_BUILD= yes NO_ARCH= yes NO_WRKSUBDIR= yes USE_PHP= curl iconv json xml dom openssl pcre spl zlib PLIST_SUB= VER="${PORTVERSION}" WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" +.if "${PKGNAMESUFFIX}" == "${PHP_PKGNAMESUFFIX}" +RESTRICTED= Redistribution in any form is prohibited +.endif + OPTIONS_RADIO= DB OPTIONS_RADIO_DB= MYSQL PGSQL SQLITE OPTIONS_DEFAULT= SQLITE