git: bbd88a9f9631 - main - net/libarms: update the port to version 6.50

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Mon, 22 Sep 2025 08:09:29 UTC
The branch main has been updated by danfe:

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

commit bbd88a9f9631c5da3afaad7d555bf667a88282c5
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2025-09-22 08:08:22 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2025-09-22 08:08:22 +0000

    net/libarms: update the port to version 6.50
    
    - Fix botched (incomplete) `nobase_dist_doc_DATA'
    - Strip installed library per stage Q/A report
    - Try to provide a little better port description
---
 net/libarms/Makefile                  |  3 ++-
 net/libarms/distinfo                  |  6 +++---
 net/libarms/files/patch-Makefile.in   | 28 ++++++++++++++++++++++++++++
 net/libarms/files/patch-libarms_ssl.c | 22 +++++++++++-----------
 net/libarms/pkg-descr                 |  3 ++-
 5 files changed, 46 insertions(+), 16 deletions(-)

diff --git a/net/libarms/Makefile b/net/libarms/Makefile
index 0d6171591cd4..51b409c10494 100644
--- a/net/libarms/Makefile
+++ b/net/libarms/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	libarms
-PORTVERSION=	6.33
+PORTVERSION=	6.50
 CATEGORIES=	net devel
 MASTER_SITES=	https://dev.smf.jp/dl/
 
@@ -15,6 +15,7 @@ LIB_DEPENDS=	libexpat.so:textproc/expat2
 USES=		gmake libtool localbase ssl
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
+INSTALL_TARGET=	install-strip
 
 post-patch:
 # NetBSD's SIMPLEQ_* macros are called STAILQ_* on FreeBSD
diff --git a/net/libarms/distinfo b/net/libarms/distinfo
index 568dcdce86fe..89e673e2377e 100644
--- a/net/libarms/distinfo
+++ b/net/libarms/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1702963884
-SHA256 (libarms-6.33.tar.gz) = 642ecf8f58dec5feeb668adee8781d2b5496421f59dfd6ea33049d0f110bca1e
-SIZE (libarms-6.33.tar.gz) = 1030353
+TIMESTAMP = 1733368374
+SHA256 (libarms-6.50.tar.gz) = b13068e6d1898ead2eb9ddbaf017f6236c5c3fb309668e926650b5ea185bfc9f
+SIZE (libarms-6.50.tar.gz) = 1007635
diff --git a/net/libarms/files/patch-Makefile.in b/net/libarms/files/patch-Makefile.in
new file mode 100644
index 000000000000..292e9d460a3b
--- /dev/null
+++ b/net/libarms/files/patch-Makefile.in
@@ -0,0 +1,28 @@
+--- Makefile.in.orig	2024-12-04 00:27:42 UTC
++++ Makefile.in
+@@ -397,24 +397,7 @@ debian/rules \
+ libarms.spec
+ 
+ nobase_dist_doc_DATA = \
+-doc/api \
+-doc/armsd \
+-doc/appendix \
+-doc/arch \
+-doc/impl \
+-doc/index.html \
+-doc/contents.html \
+-doc/download.html \
+-doc/intro \
+-doc/genindex.html \
+-doc/search.html \
+-doc/version \
+-doc/.buildinfo \
+-doc/objects.inv \
+-doc/searchindex.js \
+-doc/_sources \
+-doc/_images \
+-doc/_static
++$(shell find doc -type f -print)
+ 
+ all: config.h
+ 	$(MAKE) $(AM_MAKEFLAGS) all-am
diff --git a/net/libarms/files/patch-libarms_ssl.c b/net/libarms/files/patch-libarms_ssl.c
index 70201446a643..72385c6a5464 100644
--- a/net/libarms/files/patch-libarms_ssl.c
+++ b/net/libarms/files/patch-libarms_ssl.c
@@ -1,12 +1,12 @@
---- libarms/ssl.c.orig	2019-03-29 01:15:24 UTC
+--- libarms/ssl.c.orig	2024-12-04 00:27:42 UTC
 +++ libarms/ssl.c
-@@ -338,7 +338,8 @@ arms_ssl_dhparam(SSL_CTX *ctx)
- 	}
- 
- /* for compatibility with before OpenSSL-1.1.0 and LibreSSL-2.7.0 */
--#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER < 0x20700000L
-+#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || \
-+	(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L)
- 	dh->p = p;
- 	dh->g = g;
- #else
+@@ -794,6 +794,9 @@ arms_ssl_cleanup(void)
+ {
+ 	CRYPTO_cleanup_all_ex_data();
+ 	ERR_free_strings();
++/* <= 1.0.1f = old API, 1.0.1g+ = new API */
++#if OPENSSL_VERSION_NUMBER <= 0x1000106fL
+ 	ERR_remove_state(0);
++#endif
+ 	EVP_cleanup();
+ }
diff --git a/net/libarms/pkg-descr b/net/libarms/pkg-descr
index 92fb6d85c0b6..60606d2e4a11 100644
--- a/net/libarms/pkg-descr
+++ b/net/libarms/pkg-descr
@@ -1 +1,2 @@
-SMFv2/ARMS library.
+libarms is a client library for SMFv2 system supplied by Internet
+Initiative Japan Inc.