git: e5a5d9c72752 - main - security/libpki: Fix build on armv7 and arm64

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Sat, 15 Oct 2022 16:21:15 UTC
The branch main has been updated by eduardo:

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

commit e5a5d9c7275237e116c0a5bf7a7c8436c0db061b
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2022-10-15 16:17:47 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-10-15 16:21:01 +0000

    security/libpki: Fix build on armv7 and arm64
    
    - add case for armv7 to configure script
    - adapt aarch64 case to arm64
      https://github.com/openca/libpki/issues/57
    - while we are at it, hook up test suite
    - bump PORTREVISION
    
    PR:             266955
    MFH:            2022Q4
---
 security/libpki/Makefile                 |  5 ++---
 security/libpki/files/patch-configure.ac | 13 +++++++++++++
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/security/libpki/Makefile b/security/libpki/Makefile
index 61dada047acb..1b6ec397730e 100644
--- a/security/libpki/Makefile
+++ b/security/libpki/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	libpki
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.9.2
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	security
 
 PATCH_SITES=	https://github.com/openca/libpki/commit/
@@ -14,8 +14,6 @@ WWW=		https://www.openca.org/projects/libpki
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-NOT_FOR_ARCHS=	arm64
-
 USES=		autoreconf gnome libtool ssl
 USE_GITHUB=	yes
 GH_ACCOUNT=	openca
@@ -27,6 +25,7 @@ CONFIGURE_ARGS=	--disable-dependency-tracking \
 		--disable-iphone
 
 INSTALL_TARGET=	install-strip
+TEST_TARGET=	check
 
 OPTIONS_DEFINE=	DNS LDAP MYSQL PGSQL
 
diff --git a/security/libpki/files/patch-configure.ac b/security/libpki/files/patch-configure.ac
new file mode 100644
index 000000000000..ae82272a6772
--- /dev/null
+++ b/security/libpki/files/patch-configure.ac
@@ -0,0 +1,13 @@
+--- configure.ac.orig	2022-10-10 19:42:21 UTC
++++ configure.ac
+@@ -40,6 +40,9 @@
+     mybits="64"
+     mybits_install="64"
+         ;;
++  *arm)
++    mybits="32"
++    ;;
+-  *aarch64)
++  *aarch64|*arm64)
+     mybits="64"
+     mybits_install="64"