git: 4002d5875a8b - main - security/keepassxc276: switch to botan3.

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Wed, 01 Oct 2025 10:54:02 UTC
The branch main has been updated by mandree:

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

commit 4002d5875a8b4cbe223567090b1e553f0bdde8aa
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2025-10-01 10:30:19 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2025-10-01 10:53:58 +0000

    security/keepassxc276: switch to botan3.
    
    so we move the port off of the deprecated botan2.
    Undeprecate.
    
    This requires one #include added. See...
    
    PR:             288581
    Approved by:    portmgr@ (just-fix-it blanket)
---
 security/keepassxc276/Makefile                         |  6 ++----
 security/keepassxc276/files/patch-src_keys_FileKey.cpp | 11 +++++++++++
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/security/keepassxc276/Makefile b/security/keepassxc276/Makefile
index e5965d9be9de..b3966eb2c5c3 100644
--- a/security/keepassxc276/Makefile
+++ b/security/keepassxc276/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	keepassxc
 DISTVERSION=	2.7.6
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	https://github.com/keepassxreboot/keepassxc/releases/download/${DISTVERSION}/
 PKGNAMESUFFIX=	276
@@ -18,13 +19,10 @@ LICENSE_NAME_NOKIA-LGPL-EXCEPTION=	Nokia Qt LGPL Exception version 1.1
 LICENSE_FILE_NOKIA-LGPL-EXCEPTION=	${WRKSRC}/LICENSE.NOKIA-LGPL-EXCEPTION
 LICENSE_PERMS_NOKIA-LGPL-EXCEPTION=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
-DEPRECATED=	Depends on expired security/botan2
-EXPIRATION_DATE=2025-06-21
-
 BUILD_DEPENDS=	asciidoctor:textproc/rubygem-asciidoctor
 LIB_DEPENDS=	libargon2.so:security/libargon2 \
 		libqrencode.so:graphics/libqrencode \
-		libbotan-2.so:security/botan2
+		libbotan-3.so:security/botan3
 
 USES=		cmake compiler:c++17-lang desktop-file-utils pkgconfig qt:5 \
 		readline shared-mime-info tar:xz xorg
diff --git a/security/keepassxc276/files/patch-src_keys_FileKey.cpp b/security/keepassxc276/files/patch-src_keys_FileKey.cpp
new file mode 100644
index 000000000000..3ea8d551efd4
--- /dev/null
+++ b/security/keepassxc276/files/patch-src_keys_FileKey.cpp
@@ -0,0 +1,11 @@
+--- src/keys/FileKey.cpp.orig	2023-08-15 22:40:34 UTC
++++ src/keys/FileKey.cpp
+@@ -22,6 +22,8 @@
+ #include "crypto/CryptoHash.h"
+ #include "crypto/Random.h"
+ 
++#include <botan/mem_ops.h>
++
+ #include <QDataStream>
+ #include <QFile>
+ #include <QXmlStreamReader>