git: 280f13347a6a - main - net-mgmt/librenms: Add option for sudo@sssd

From: Dan Langille <dvl_at_FreeBSD.org>
Date: Thu, 31 Jul 2025 17:52:55 UTC
The branch main has been updated by dvl:

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

commit 280f13347a6a9368ea59ba222239fb2a22d4f48e
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2025-07-31 17:49:55 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2025-07-31 17:52:27 +0000

    net-mgmt/librenms: Add option for sudo@sssd
    
    Let the user choose between sudo and sudo@sssd
    
    sudo remains the default.
    
    I now hear cries for doas support.
    Soon, neither will be required.
---
 net-mgmt/librenms/Makefile | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/net-mgmt/librenms/Makefile b/net-mgmt/librenms/Makefile
index 6ba90cb011f0..2bf35fae5744 100644
--- a/net-mgmt/librenms/Makefile
+++ b/net-mgmt/librenms/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	librenms
 PORTVERSION=	25.7.0
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	LOCAL/dvl:vendor
@@ -18,8 +19,7 @@ RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \
 		bash:shells/bash \
 		dot:graphics/graphviz \
 		rrdtool:databases/rrdtool \
-		snmpget:net-mgmt/net-snmp \
-		sudo:security/sudo
+		snmpget:net-mgmt/net-snmp
 
 USES=		cpe php python shebangfix
 USE_GITHUB=	yes
@@ -94,12 +94,20 @@ DBDIR=		/var/db/${PORTNAME}
 
 OPTIONS_DEFINE=		DOCS EXAMPLES FPING IPMITOOL LIBVIRT MYSQLD NAGPLUGINS \
 			NMAP WMIC X11
-OPTIONS_DEFAULT=	FPING IPMITOOL LIBVIRT NAGPLUGINS NMAP PYPOLLER WMIC
+OPTIONS_DEFAULT=	FPING IPMITOOL LIBVIRT NAGPLUGINS NMAP PYPOLLER SUDO \
+			WMIC
+OPTIONS_RADIO=		SUDO
+OPTIONS_RADIO_SUDO=	SUDO SUDO_SSSD
+
+SUDO_RUN_DEPENDS=	sudo:security/sudo
+SUDO_SSSD_RUN_DEPENDS=	sudo:security/sudo@sssd
 
 FPING_DESC=	Enable fping support ping monitoring
 IPMITOOL_DESC=	Enable support for monitoring hardware IPMI
 MYSQLD_DESC=	Use local MySQL server
 WMIC_DESC=	Enable support for WMI polling
+SUDO_DESC=	use security/sudo
+SUDO_SSSD_DESC=	use security/sudo@sssd
 
 FPING_RUN_DEPENDS=	fping:net/fping
 IPMITOOL_RUN_DEPENDS=	ipmitool:sysutils/ipmitool