git: 56bfd755aed6 - main - sysutils/lsof: Update to 4.99.5

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Sun, 07 Sep 2025 00:24:42 UTC
The branch main has been updated by yasu:

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

commit 56bfd755aed682e5083a58eda0087b373b939e50
Author:     Chad Jacob Milios <milios@ccsys.com>
AuthorDate: 2025-07-18 15:16:51 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2025-09-07 00:23:53 +0000

    sysutils/lsof: Update to 4.99.5
    
    * Add NOSOCKSECURITY and SECURITY options.
    * Pet portclippy.
    * Tidy up Makefile with portfmt.
    
    ChangeLog:      https://github.com/lsof-org/lsof/releases/tag/4.99.5
    PR:             288307
    Approved by:    maintainer timeout
---
 sysutils/lsof/Makefile | 22 ++++++++++++++--------
 sysutils/lsof/distinfo |  6 +++---
 2 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile
index e888fb6dade3..7648cdc29b99 100644
--- a/sysutils/lsof/Makefile
+++ b/sysutils/lsof/Makefile
@@ -1,8 +1,7 @@
 # note: If someone has a fix for a particular ARCH please feel free
 #       to commit it.  I (ler) don't have access to all the ARCH's
 PORTNAME=	lsof
-DISTVERSION=	4.99.4
-PORTREVISION=	2
+DISTVERSION=	4.99.5
 PORTEPOCH=	8
 CATEGORIES=	sysutils
 
@@ -15,27 +14,34 @@ LICENSE_NAME=	lsof
 LICENSE_FILE=	${FILESDIR}/LICENSE
 LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
+BUILD_DEPENDS=	${LOCALBASE}/bin/bash:shells/bash
+
 USES=		compiler cpe shebangfix
 CPE_VENDOR=	lsof_project
 USE_GITHUB=	yes
 GH_ACCOUNT=	lsof-org
 
-BUILD_DEPENDS=		${LOCALBASE}/bin/bash:shells/bash
-
 SHEBANG_FILES=	scripts/*.pl
 
 HAS_CONFIGURE=	yes
 
 CFLAGS_powerpcspe=	-DBOOKE
 
+OPTIONS_DEFINE=	NOSOCKSECURITY SECURITY
 OPTIONS_DEFINE_powerpc64=	AIM BOOKE
+OPTIONS_DEFAULT=
 OPTIONS_DEFAULT_powerpc64=	AIM
 
-AIM_DESC=	Set for AIM hardware
-BOOKE_DESC=	Set for BOOKE hardware
+AIM_DESC=		Set for AIM hardware
+BOOKE_DESC=		Set for BOOKE hardware
+NOSOCKSECURITY_DESC=	Non-root users can only list their own files except sockets (Implies SECURITY)
+SECURITY_DESC=		Non-root users can only list their own files
 
-AIM_CFLAGS=	-DAIM
-BOOKE_CFLAGS=	-DBOOKE
+AIM_CFLAGS=		-DAIM
+BOOKE_CFLAGS=		-DBOOKE
+NOSOCKSECURITY_IMPLIES=	SECURITY
+NOSOCKSECURITY_CFLAGS=	-DHASNOSOCKSECURITY
+SECURITY_CFLAGS=	-DHASSECURITY
 
 .include <bsd.port.pre.mk>
 
diff --git a/sysutils/lsof/distinfo b/sysutils/lsof/distinfo
index a91b2c4dc35a..b749c95fc7a5 100644
--- a/sysutils/lsof/distinfo
+++ b/sysutils/lsof/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1732211983
-SHA256 (lsof-org-lsof-4.99.4_GH0.tar.gz) = 90d02ae35cd14341bfb04ce80e0030767476b0fc414a0acb115d49e79b13d56c
-SIZE (lsof-org-lsof-4.99.4_GH0.tar.gz) = 1135014
+TIMESTAMP = 1752848850
+SHA256 (lsof-org-lsof-4.99.5_GH0.tar.gz) = 3c591556c665196e0aada5982ff43c75e248187bad78bb1368d8fb9c1c527e6e
+SIZE (lsof-org-lsof-4.99.5_GH0.tar.gz) = 1135415