git: b9bff6513119 - main - sysutils/ganglia-webfrontend: Flavorize to prevent build with PHP 8

From: Jason W. Bacon <jwb_at_FreeBSD.org>
Date: Sat, 29 Jan 2022 23:01:38 UTC
The branch main has been updated by jwb:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b9bff65131195addfcf1741f36a6348eebc02e14

commit b9bff65131195addfcf1741f36a6348eebc02e14
Author:     Jason W. Bacon <jwb@FreeBSD.org>
AuthorDate: 2022-01-29 22:59:59 +0000
Commit:     Jason W. Bacon <jwb@FreeBSD.org>
CommitDate: 2022-01-29 23:01:37 +0000

    sysutils/ganglia-webfrontend: Flavorize to prevent build with PHP 8
    
    Also add deprecation warning to pkg-message:
    
    WARNING: Development of Ganglia has ceased.  It is incompatible with
    Python 3 and PHP 8 and there are mutliple unpatched vulnerabilities.
    Anyone still using Ganglia should start looking for alternatives.
---
 sysutils/ganglia-webfrontend/Makefile             | 8 +++++---
 sysutils/ganglia-webfrontend/files/pkg-message.in | 5 +++++
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/sysutils/ganglia-webfrontend/Makefile b/sysutils/ganglia-webfrontend/Makefile
index 54b09d658329..5e1c9a175232 100644
--- a/sysutils/ganglia-webfrontend/Makefile
+++ b/sysutils/ganglia-webfrontend/Makefile
@@ -1,17 +1,19 @@
 PORTNAME=	ganglia
 PORTVERSION=	3.7.2
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	sysutils net parallel www
-PKGNAMESUFFIX=	-webfrontend
+PKGNAMESUFFIX=	-webfrontend${PHP_PKGNAMESUFFIX}
 
 MAINTAINER=	jwb@FreeBSD.org
 COMMENT=	Ganglia cluster monitor, web frontend
 
 LICENSE=	BSD3CLAUSE
 
+IGNORE_WITH_PHP=	80 81
+
 RUN_DEPENDS=	${LOCALBASE}/sbin/gmond:sysutils/ganglia-monitor-core
 
-USES=		cpe php:web
+USES=		cpe php:flavors,web
 CPE_VENDOR=	${PORTNAME}
 CPE_PRODUCT=	${PORTNAME}-web
 USE_GITHUB=	yes
diff --git a/sysutils/ganglia-webfrontend/files/pkg-message.in b/sysutils/ganglia-webfrontend/files/pkg-message.in
index 0132fd030991..5cdad64d4976 100644
--- a/sysutils/ganglia-webfrontend/files/pkg-message.in
+++ b/sysutils/ganglia-webfrontend/files/pkg-message.in
@@ -38,6 +38,11 @@ The default configuration is stored in
 %%WWWDIR%%/conf_default.php.
 If you want to customize the configuration make customizations to
 %%WWWDIR%%/conf.php .
+
+WARNING: Development of Ganglia has ceased.  It is incompatible with
+Python 3 and PHP 8 and there are mutliple unpatched vulnerabilities.
+Anyone still using Ganglia should start looking for alternatives.
+
 EOM
 }
 ]