git: f59a0c57b04c - 2023Q4 - security/sshguard: Fix build on FreeBSD 12

From: Renato Botelho <garga_at_FreeBSD.org>
Date: Mon, 13 Nov 2023 11:36:44 UTC
The branch 2023Q4 has been updated by garga:

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

commit f59a0c57b04c285a3f4c658fcd17b5fde290cff8
Author:     Kevin Zheng <kevinz5000@gmail.com>
AuthorDate: 2023-11-09 19:07:44 +0000
Commit:     Renato Botelho <garga@FreeBSD.org>
CommitDate: 2023-11-13 11:36:36 +0000

    security/sshguard: Fix build on FreeBSD 12
    
    PR:             274985
    Reported by:    Yani Karydis <yani@pi-greece.eu>
    
    (cherry picked from commit 2eca5c84fab2c480693b45136f7b904a18db6a0a)
---
 security/sshguard/Makefile                 |  3 +++
 security/sshguard/files/patch-configure.ac | 11 +++++++++++
 2 files changed, 14 insertions(+)

diff --git a/security/sshguard/Makefile b/security/sshguard/Makefile
index c3d163ba6cab..e5e4bc0e6693 100644
--- a/security/sshguard/Makefile
+++ b/security/sshguard/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	sshguard
 PORTVERSION=	2.4.3
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	security
 MASTER_SITES=	SF/sshguard/sshguard/${PORTVERSION}
@@ -10,6 +11,8 @@ WWW=		https://www.sshguard.net/
 
 LICENSE=	BSD2CLAUSE
 
+USES=		autoreconf
+
 USE_RC_SUBR=	sshguard
 
 GNU_CONFIGURE=	yes
diff --git a/security/sshguard/files/patch-configure.ac b/security/sshguard/files/patch-configure.ac
new file mode 100644
index 000000000000..5ca3f46d889b
--- /dev/null
+++ b/security/sshguard/files/patch-configure.ac
@@ -0,0 +1,11 @@
+--- configure.ac.orig	2023-06-28 19:03:42 UTC
++++ configure.ac
+@@ -21,7 +21,7 @@ AM_PROG_LEX
+ AS_BOX([Headers, Types, and Compiler Checks])
+ AC_CHECK_HEADERS([getopt.h])
+ 
+-AC_CHECK_HEADERS([capsicum_helpers.h libcasper.h], capsicum_found=candidate)
++AC_CHECK_HEADERS([casper/cap_net.h], capsicum_found=candidate)
+ AS_IF([test "$capsicum_found" == "candidate"],
+       [AC_SEARCH_LIBS([cap_init], [casper], [capsicum_found=yes])]
+       [AC_SEARCH_LIBS([cap_getaddrinfo], [cap_net], [capsicum_found=yes])])