git: acb972451d8d - main - security/gnome-keyring: add conditional openssh-portable dependency

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

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

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

    security/gnome-keyring: add conditional openssh-portable dependency
    
    Add build and run dependency on openssh-portable when base ssh is
    absent.
    
    PR:             254087
---
 security/gnome-keyring/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/security/gnome-keyring/Makefile b/security/gnome-keyring/Makefile
index 890d4ded0384..8c28e9db89c7 100644
--- a/security/gnome-keyring/Makefile
+++ b/security/gnome-keyring/Makefile
@@ -32,4 +32,9 @@ GLIB_SCHEMAS=	org.gnome.crypto.cache.gschema.xml
 
 SUB_FILES=	pkg-message
 
+.if !exists(/usr/bin/ssh)
+BUILD_DEPENDS+=	${LOCALBASE}/bin/ssh:security/openssh-portable
+RUN_DEPENDS+=	${LOCALBASE}/bin/ssh:security/openssh-portable
+.endif
+
 .include <bsd.port.mk>