git: 1fc19dfd3c5a - main - security/easy-rsa: download & install easyrsa-tools.lib

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Wed, 02 Oct 2024 20:31:56 UTC
The branch main has been updated by mandree:

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

commit 1fc19dfd3c5a0ffdf57514946c34ad57586d2e9a
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2024-10-02 20:23:04 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2024-10-02 20:30:37 +0000

    security/easy-rsa: download & install easyrsa-tools.lib
    
    to support, for instance, easyrsa show-expire
    
    Reported by:    avg@ (Andriy Gapon, by e-mail)
    
    For upstream bug report,
    see also:       https://github.com/OpenVPN/easy-rsa/issues/1144
---
 security/easy-rsa/Makefile  | 9 ++++++---
 security/easy-rsa/distinfo  | 4 +++-
 security/easy-rsa/pkg-plist | 1 +
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/security/easy-rsa/Makefile b/security/easy-rsa/Makefile
index 33aedcf09fd4..e9599b1438cd 100644
--- a/security/easy-rsa/Makefile
+++ b/security/easy-rsa/Makefile
@@ -1,11 +1,13 @@
 PORTNAME=	easy-rsa
 DISTVERSION=	3.2.1
-PORTREVISION=	0
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	security net-mgmt
 MASTER_SITES=	https://github.com/OpenVPN/easy-rsa/releases/download/v${DISTVERSION}/ \
-		LOCAL/mandree/
-DISTNAME=	EasyRSA-${DISTVERSION}
+		LOCAL/mandree/ \
+		https://github.com/OpenVPN/easy-rsa/raw/refs/tags/v${DISTVERSION}/dev/:lib
+DISTFILES=	${EXTRACT_ONLY} easyrsa-tools.lib:lib
+EXTRACT_ONLY=	EasyRSA-${DISTVERSION}${EXTRACT_SUFX}
 
 MAINTAINER=	mandree@FreeBSD.org
 COMMENT=	Small RSA key management package based on openssl
@@ -35,6 +37,7 @@ do-install:
 		${MKDIR} ${STAGEDIR}${PREFIX}/bin
 		${MKDIR} ${STAGEDIR}${DATADIR}/x509-types/
 		${INSTALL_SCRIPT} ${WRKSRC}/easyrsa ${STAGEDIR}${PREFIX}/bin/
+		${INSTALL_SCRIPT} ${DISTDIR}/easyrsa-tools.lib ${STAGEDIR}${PREFIX}/bin/
 		${LN} -fh ${STAGEDIR}${PREFIX}/bin/easyrsa ${STAGEDIR}${PREFIX}/bin/easy-rsa
 		${INSTALL_DATA} ${WRKSRC}/vars.example ${STAGEDIR}${DATADIR}/
 		${INSTALL_DATA} ${WRKSRC}/openssl-easyrsa.cnf ${STAGEDIR}${DATADIR}/openssl-easyrsa.cnf.example
diff --git a/security/easy-rsa/distinfo b/security/easy-rsa/distinfo
index ecde3c007010..498e541e5377 100644
--- a/security/easy-rsa/distinfo
+++ b/security/easy-rsa/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1726777433
+TIMESTAMP = 1727863160
 SHA256 (EasyRSA-3.2.1.tgz) = ec0fdca46c07afef341e0e0eeb2bf0cfe74a11322b77163e5d764d28cb4eec89
 SIZE (EasyRSA-3.2.1.tgz) = 79917
+SHA256 (easyrsa-tools.lib) = eea232959d41f49330e032bf94a49b4b6b0574d75e199dd219096f1739077b3e
+SIZE (easyrsa-tools.lib) = 24329
diff --git a/security/easy-rsa/pkg-plist b/security/easy-rsa/pkg-plist
index ac7f3222a0b9..bf0c628cb0c2 100644
--- a/security/easy-rsa/pkg-plist
+++ b/security/easy-rsa/pkg-plist
@@ -1,4 +1,5 @@
 bin/easyrsa
+bin/easyrsa-tools.lib
 bin/easy-rsa
 @sample %%DATADIR%%/openssl-easyrsa.cnf.example %%DATADIR%%/openssl-easyrsa.cnf
 %%DATADIR%%/vars.example