diff --git a/security/sshguard/Makefile b/security/sshguard/Makefile index c3d163ba6cab..e5e4bc0e6693 100644 --- a/security/sshguard/Makefile +++ b/security/sshguard/Makefile @@ -1,29 +1,32 @@ PORTNAME= sshguard PORTVERSION= 2.4.3 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= security MASTER_SITES= SF/sshguard/sshguard/${PORTVERSION} MAINTAINER= kevinz5000@gmail.com COMMENT= Protect hosts from brute-force attacks against SSH and other services WWW= https://www.sshguard.net/ LICENSE= BSD2CLAUSE +USES= autoreconf + USE_RC_SUBR= sshguard GNU_CONFIGURE= yes SUB_FILES= pkg-message post-patch: @${REINPLACE_CMD} -e 's|%PREFIX%|${PREFIX}|' \ ${WRKSRC}/doc/sshguard.8.rst @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \ ${WRKSRC}/examples/sshguard.conf.sample post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/etc ${INSTALL_DATA} ${WRKSRC}/examples/sshguard.conf.sample \ ${STAGEDIR}${PREFIX}/etc .include 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])])