git: 7c7071826a28 - main - databases/adminer: Introduce flavors and adopt the port

From: Älven <alven_at_FreeBSD.org>
Date: Mon, 04 Aug 2025 13:01:38 UTC
The branch main has been updated by alven:

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

commit 7c7071826a28c5174eb98e9530c9431946a3d478
Author:     Paavo-Einari Kaipila <pave@freebsd.org>
AuthorDate: 2025-08-03 20:29:19 +0000
Commit:     Älven <alven@FreeBSD.org>
CommitDate: 2025-08-04 13:01:17 +0000

    databases/adminer: Introduce flavors and adopt the port
    
    Signed-off-by: Paavo-Einari Kaipila <pave@freebsd.org>
    
    PR:             288648
    Approved by:    yuri@ (Mentor)
---
 UPDATING                   | 10 +++++++++-
 databases/adminer/Makefile | 10 ++++++----
 2 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/UPDATING b/UPDATING
index 501e786bd5a3..349081b7137d 100644
--- a/UPDATING
+++ b/UPDATING
@@ -5,6 +5,15 @@ they are unavoidable.
 You should get into the habit of checking this file for changes each time
 you update your ports collection, before attempting any port upgrades.
 
+
+20250804:
+  AFFECTS: users of databases/adminer
+  AUTHOR: pkaipila@gmail.com
+
+  Flavors have been added to the adminer port. Due to the change in PKGNAME,
+  pkg will not notice the update. Replace the package with a flavored one
+  such as php84-adminer.
+
 20250728:
   AFFECTS: users of www/privatebin
   AUTHOR: dvl@FreeBSD.org
@@ -14,7 +23,6 @@ you update your ports collection, before attempting any port upgrades.
 
   See details at https://github.com/PrivateBin/PrivateBin/releases/tag/2.0.0
 
-
 20250720:
   AFFECTS: users of www/phpmyfaq
   AUTHOR: flo@FreeBSD.org
diff --git a/databases/adminer/Makefile b/databases/adminer/Makefile
index d96c35ee7b08..ff0b2882185c 100644
--- a/databases/adminer/Makefile
+++ b/databases/adminer/Makefile
@@ -2,28 +2,30 @@ PORTNAME=	adminer
 DISTVERSION=	5.3.0
 CATEGORIES=	databases www
 MASTER_SITES=	https://github.com/vrana/adminer/releases/download/v${DISTVERSION}/
+PKGNAMEPREFIX=	${PHP_PKGNAMEPREFIX}
 EXTRACT_SUFX=	.php
 EXTRACT_ONLY=
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	pkaipila@gmail.com
 COMMENT=	Full-featured database management tool written in PHP
 WWW=		https://www.adminer.org
 
 LICENSE=	APACHE20
 
-USES=		cpe php
+USES=		cpe php:flavors
 USE_PHP=	session
 
 NO_ARCH=	yes
 NO_BUILD=	yes
-
 SUB_FILES=	pkg-message
 SUB_LIST=	PHPVER="${PHP_VER}"
+
 PLIST_SUB=	WWWGRP="${WWWGRP}" \
 		WWWOWN="${WWWOWN}"
 
 do-install:
 	${MKDIR} ${STAGEDIR}${WWWDIR}
-	${INSTALL_DATA} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${STAGEDIR}${WWWDIR}/index.php
+	${INSTALL_DATA} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
+		${STAGEDIR}${WWWDIR}/index.php
 
 .include <bsd.port.mk>