git: 2576d11e2b97 - main - security/lime: Update version 5.2.94=>5.4.2

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 27 Mar 2025 09:18:03 UTC
The branch main has been updated by bofh:

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

commit 2576d11e2b97a60696affe94534b11821be4f72e
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-03-26 21:19:06 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-03-27 09:17:05 +0000

    security/lime: Update version 5.2.94=>5.4.2
    
    Changelog: https://gitlab.linphone.org/BC/public/lime/-/tags/5.4.2
    
    Sponsored by:   Cybermancer Infosec
---
 security/lime/Makefile                   | 14 ++++++++------
 security/lime/distinfo                   |  6 +++---
 security/lime/files/patch-CMakeLists.txt | 10 ++++++++++
 security/lime/pkg-plist                  | 17 ++++++-----------
 4 files changed, 27 insertions(+), 20 deletions(-)

diff --git a/security/lime/Makefile b/security/lime/Makefile
index f1a0b333fcc7..d94686d00af0 100644
--- a/security/lime/Makefile
+++ b/security/lime/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	lime
-PORTVERSION=	5.2.94
+DISTVERSION=	5.4.2
 CATEGORIES=	security
 
 MAINTAINER=	bofh@FreeBSD.org
@@ -9,9 +9,11 @@ WWW=		https://www.linphone.org/technical-corner/lime
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-LIB_DEPENDS=	libbctoolbox.so:net/bctoolbox \
-	libbellesip.so:net/belle-sip \
-	libsoci_sqlite3.so:databases/soci
+BUILD_DEPENDS=	${LOCALBASE}/lib/libbctoolbox.a:net/bctoolbox \
+		${LOCALBASE}/lib/libbcunit.a:devel/bcunit \
+		${LOCALBASE}/lib/libbelle-sip.a:net/belle-sip \
+		${LOCALBASE}/lib/libbelr.a:textproc/belr
+LIB_DEPENDS=	libsoci_sqlite3.so:databases/soci
 
 USES=	cmake
 USE_GITLAB=	yes
@@ -19,7 +21,7 @@ GL_SITE=	https://gitlab.linphone.org/BC
 GL_ACCOUNT=	public
 
 CMAKE_ARGS=	-DCMAKE_PREFIX_PATH=${LOCALBASE} \
-		-DENABLE_STATIC=NO \
-		-DENABLE_STRICT=NO
+		-DENABLE_STRICT=NO \
+		-DENABLE_UNIT_TESTS=NO
 
 .include <bsd.port.mk>
diff --git a/security/lime/distinfo b/security/lime/distinfo
index 14d459b6288e..c58fa25b259f 100644
--- a/security/lime/distinfo
+++ b/security/lime/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1690555686
-SHA256 (lime-5.2.94.tar.bz2) = 8a5692fd25703debfc3db6454e829a0f2fedc06420f86bbf3dd8ef3b2cfcb82b
-SIZE (lime-5.2.94.tar.bz2) = 479875
+TIMESTAMP = 1743023454
+SHA256 (lime-5.4.2.tar.bz2) = 46f03be330a37186ed330dfbfe64fb4887a683bfb889f33aa1bfd3c54780a8a6
+SIZE (lime-5.4.2.tar.bz2) = 677782
diff --git a/security/lime/files/patch-CMakeLists.txt b/security/lime/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..c3e7d9804578
--- /dev/null
+++ b/security/lime/files/patch-CMakeLists.txt
@@ -0,0 +1,10 @@
+--- CMakeLists.txt.orig	2025-03-26 21:14:00 UTC
++++ CMakeLists.txt
+@@ -54,6 +54,7 @@ endif()
+ if(ENABLE_PQCRYPTO)
+ 	find_package(PostQuantumCryptoEngine 5.3.0 REQUIRED)
+ endif()
++find_package(OpenSSL REQUIRED)
+ find_package(BCToolbox 5.3.0 REQUIRED OPTIONAL_COMPONENTS tester)
+ find_package(Soci REQUIRED COMPONENTS sqlite3)
+ 
diff --git a/security/lime/pkg-plist b/security/lime/pkg-plist
index 04eed13c394e..65ba2d8efec0 100644
--- a/security/lime/pkg-plist
+++ b/security/lime/pkg-plist
@@ -1,12 +1,7 @@
-bin/lime_tester
 include/lime/lime.hpp
-lib/liblime.so
-lib/liblime.so.0
-%%DATADIR%%/cmake/limeConfig.cmake
-%%DATADIR%%/cmake/limeTargets-%%CMAKE_BUILD_TYPE%%.cmake
-%%DATADIR%%/cmake/limeTargets.cmake
-%%DATADIR%%_tester/data/cacert.pem
-%%DATADIR%%_tester/data/pattern_getSelfIk.C25519.sqlite3
-%%DATADIR%%_tester/data/pattern_getSelfIk.C448.sqlite3
-%%DATADIR%%_tester/data/sip5.linphone.org.selfsigned-cert.pem
-%%DATADIR%%_tester/data/x3dh-cert.pem
+lib/liblime.a
+share/Lime/cmake/FindSoci.cmake
+share/Lime/cmake/LimeConfig.cmake
+share/Lime/cmake/LimeConfigVersion.cmake
+share/Lime/cmake/LimeTargets-%%CMAKE_BUILD_TYPE%%.cmake
+share/Lime/cmake/LimeTargets.cmake