git: 3b783d4ddded - main - net-mgmt/cacti: Flavorize PHP

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Fri, 17 Jan 2025 16:44:52 UTC
The branch main has been updated by vvd:

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

commit 3b783d4ddded795cdd3f5d9aa107f0ffbabbf803
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-01-17 16:42:39 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-01-17 16:42:39 +0000

    net-mgmt/cacti: Flavorize PHP
    
    Add PHP flavor to be able to use package with all PHP versions.
    
    PR:             284037
    Approved by:    Michael Muenz <m.muenz@gmail.com> (maintainer)
---
 net-mgmt/cacti/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net-mgmt/cacti/Makefile b/net-mgmt/cacti/Makefile
index ca4863ff9530..8733f5f0e02b 100644
--- a/net-mgmt/cacti/Makefile
+++ b/net-mgmt/cacti/Makefile
@@ -3,6 +3,7 @@ DISTVERSION=	1.2.28
 CATEGORIES=	net-mgmt www
 MASTER_SITES=	http://www.cacti.net/downloads/ \
 		ftp://ftpmirror.uk/freebsd-ports/cacti/
+PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}
 
 MAINTAINER=	m.muenz@gmail.com
 COMMENT=	Web-driven graphing interface for RRDTool
@@ -13,7 +14,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	rrdtool:databases/rrdtool
 
-USES=		cpe mysql php:web shebangfix
+USES=		cpe mysql php:flavors,web shebangfix
 
 USE_PHP=	ctype filter gd gettext gmp intl ldap mbstring pcntl pdo \
 		pdo_mysql posix session simplexml sockets snmp xml zlib