security/openvpn: fix missing include for PATH_MAX

While here, add a warning banner about libressl support status,
and clean up a leftover INSTALL_DATA workaround no longer needed.

Patch suggested and
Reported by:	Franco Fichtner <franco@opnsense.org>
PR:		256744
This commit is contained in:
Matthias Andree 2021-06-22 21:25:44 +02:00
parent da3162c7c9
commit 159c6c7314
2 changed files with 17 additions and 3 deletions

View File

@ -15,7 +15,6 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYRIGHT.GPL
USES= cpe libtool localbase:ldflags pkgconfig shebangfix tar:xz
IGNORE_SSL= libressl libressl-devel
USE_RC_SUBR= openvpn
SHEBANG_FILES= sample/sample-scripts/verify-cn \
@ -112,6 +111,13 @@ pre-configure:
@${ECHO} " EXAMPLE: make LOG_OPENVPN=LOG_LOCAL6"
@${ECHO} ""
.endif
.if !empty(SSL_DEFAULT:Mlibressl*)
@${ECHO} "### --------------------------------------------------------- ###"
@${ECHO} "### NOTE that libressl is not primarily supported by OpenVPN ###"
@${ECHO} "### Do not report bugs without fixes/patches unless the issue ###"
@${ECHO} "### can be reproduced with a released OpenSSL version. ###"
@${ECHO} "### --------------------------------------------------------- ###"
.endif
post-configure:
${REINPLACE_CMD} '/^CFLAGS =/s/$$/ -fPIC/' \
@ -133,8 +139,6 @@ post-install:
@${REINPLACE_CMD} 's|resolvconf -p -a|resolvconf -a|' ${STAGEDIR}${PREFIX}/libexec/openvpn-client.up
${INSTALL_SCRIPT} ${WRKDIR}/openvpn-client ${STAGEDIR}${PREFIX}/sbin/openvpn-client
${MKDIR} ${STAGEDIR}${PREFIX}/include
@: # workaround for 2.5.0 only XXX FIXME remove after 2.5.0
${INSTALL_MAN} ${WRKSRC}/doc/openvpn.8 ${STAGEDIR}${MANPREFIX}/man/man8
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/

View File

@ -0,0 +1,10 @@
--- src/plugins/auth-pam/auth-pam.c.orig 2021-06-21 04:44:39 UTC
+++ src/plugins/auth-pam/auth-pam.c
@@ -39,6 +39,7 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+#include <limits.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>