git: 9e782590117c - main - filesystems/gvfs: add conditional openssh-portable dependency

From: Torsten Zuehlsdorff <tz_at_FreeBSD.org>
Date: Wed, 25 Mar 2026 14:43:25 UTC
The branch main has been updated by tz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9e782590117cc0d57825c31d744404ae0da26de1

commit 9e782590117cc0d57825c31d744404ae0da26de1
Author:     Torsten Zuehlsdorff <tz@FreeBSD.org>
AuthorDate: 2026-03-23 20:10:28 +0000
Commit:     Torsten Zuehlsdorff <tz@FreeBSD.org>
CommitDate: 2026-03-25 14:42:59 +0000

    filesystems/gvfs: add conditional openssh-portable dependency
    
    Same pattern as security/gnome-keyring: add openssh-portable
    dependency when base ssh is absent.
    
    PR:             254089
---
 filesystems/gvfs/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/filesystems/gvfs/Makefile b/filesystems/gvfs/Makefile
index 62dc9669d779..c3be1e721d7a 100644
--- a/filesystems/gvfs/Makefile
+++ b/filesystems/gvfs/Makefile
@@ -80,6 +80,11 @@ MTP_MESON_TRUE=		mtp
 NFS_LIB_DEPENDS=	libnfs.so:net/libnfs
 NFS_MESON_TRUE=		nfs
 
+.if !exists(/usr/bin/ssh)
+BUILD_DEPENDS+=		${LOCALBASE}/bin/ssh:security/openssh-portable
+RUN_DEPENDS+=		${LOCALBASE}/bin/ssh:security/openssh-portable
+.endif
+
 ONEDRIVE_IMPLIES=	GOA
 ONEDRIVE_LIB_DEPENDS=	libmsgraph-1.so:net/msgraph
 ONEDRIVE_MESON_TRUE=	onedrive