git: 6faf7d810c79 - main - www/unit: Deprecate and set expiration date to 2025-12-31

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sat, 11 Oct 2025 04:46:01 UTC
The branch main has been updated by diizzy:

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

commit 6faf7d810c7906c6eaaf27cadd2bbaa6bbe47294
Author:     Paavo-Einari Kaipila <pkaipila@gmail.com>
AuthorDate: 2025-10-10 00:33:16 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-10-11 04:45:20 +0000

    www/unit: Deprecate and set expiration date to 2025-12-31
    
    * Upstream repo archived on Oct 8 2025
    * Import patch to fix build with PHP 8.5
    
    References:
    https://github.com/nginx/unit
    https://github.com/nginx/unit/commit/ad736f9f4fddd844aed1eb6ee8a9dc88df5533fb
    
    PR:             264442
    Reported by:    pkg-fallout
---
 www/unit/Makefile | 10 ++++++++++
 www/unit/distinfo |  4 +++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/www/unit/Makefile b/www/unit/Makefile
index 123f9d84d11f..b512e3bb89e9 100644
--- a/www/unit/Makefile
+++ b/www/unit/Makefile
@@ -1,9 +1,12 @@
 PORTNAME=	unit
 PORTVERSION=	${UNIT_VERSION}
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES?=	https://unit.nginx.org/download/
 DISTFILES?=	${PORTNAME}-${PORTVERSION}.tar.gz
 
+PATCH_SITES=	https://github.com/nginx/unit/commit/
+
 MAINTAINER=	ports@FreeBSD.org
 COMMENT?=	Dynamic web application server
 WWW=		https://unit.nginx.org
@@ -11,6 +14,9 @@ WWW=		https://unit.nginx.org
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+DEPRECATED=	Upstream repo archived on Oct 8 2025
+EXPIRATION_DATE=2025-12-31
+
 USES+=		compiler:c11 cpe gmake ssl
 
 CPE_VENDOR=	nginx
@@ -108,6 +114,10 @@ CONFIGURE_ARGS+=--control=unix:${UNIT_SOCK}
 CFLAGS+=	-Wno-compound-token-split-by-macro
 .endif
 
+.if (defined(UNIT_MODNAME) && ${UNIT_MODNAME:Mphp}) || make(makesum)
+PATCHFILES=	ad736f9f4fddd844aed1eb6ee8a9dc88df5533fb.patch:-p1
+.endif
+
 .if !defined(UNIT_MODNAME)
 post-patch-OTEL-on:
 	${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
diff --git a/www/unit/distinfo b/www/unit/distinfo
index 62c97096598d..8c22b0ebba20 100644
--- a/www/unit/distinfo
+++ b/www/unit/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1757870545
+TIMESTAMP = 1760062694
 SHA256 (unit-1.35.0.tar.gz) = 20bb921b8128ff046c3d7a52b93ab2d94ae46c3b5a85d479b6b5ee9928e89c87
 SIZE (unit-1.35.0.tar.gz) = 1066376
+SHA256 (ad736f9f4fddd844aed1eb6ee8a9dc88df5533fb.patch) = ddfc67f0952043d93192a12b39b0b490b32fe40fcfe4520595ca5fed2a6c58e8
+SIZE (ad736f9f4fddd844aed1eb6ee8a9dc88df5533fb.patch) = 980