net-vpn/openvpn-2.5.0-r1: Add patch to fix libressl (bug #651228)

Closes: https://bugs.gentoo.org/651228
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-3.0.10, Repoman-3.0.2
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
Patrick McLean 2020-11-25 18:10:37 -08:00 committed by Patrick McLean
parent 2801e63b9b
commit 754719bf31
No known key found for this signature in database
GPG Key ID: 99A61A24B667B25D
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff --git a/src/plugins/auth-pam/auth-pam.c b/src/plugins/auth-pam/auth-pam.c
index f537652e..29306310 100644
--- a/src/plugins/auth-pam/auth-pam.c
+++ b/src/plugins/auth-pam/auth-pam.c
@@ -47,6 +47,7 @@
#include <fcntl.h>
#include <signal.h>
#include <syslog.h>
+#include <limits.h>
#include "utils.h"
#include <openvpn-plugin.h>

View File

@ -46,9 +46,12 @@ RDEPEND="${CDEPEND}
selinux? ( sec-policy/selinux-openvpn )
"
CONFIG_CHECK="~TUN"
PATCHES=(
"${FILESDIR}/openvpn-2.5.0-auth-pam-missing-header.patch"
)
pkg_setup() {
local CONFIG_CHECK="~TUN"
linux-info_pkg_setup
}