diff options
author | Luiz Angelo Daros de Luca <luizluca@gmail.com> | 2018-03-27 02:42:06 -0300 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-07-30 10:43:38 +0200 |
commit | f1bef0596fd2a983386c778a94486782bd272e27 (patch) | |
tree | 03a5399c778fd43efe0459c4e20d77feccf5cdf0 /package/network/services/openvpn-easy-rsa/patches | |
parent | c762817c9211f439c5da6ea30b6ed828c9861c4f (diff) | |
download | upstream-f1bef0596fd2a983386c778a94486782bd272e27.tar.gz upstream-f1bef0596fd2a983386c778a94486782bd272e27.tar.bz2 upstream-f1bef0596fd2a983386c778a94486782bd272e27.zip |
openvpn-easy-rsa: update to 3.0.4
Upstream renamed openssl-1.0.cnf to openssl-easyrsa.cnf.
However, pkg kept using openssl-1.0.cnf.
Upstream easyrsa searchs for vars, openssl-*, x509-types in the
same directory as easyrsa script. This was patched to revert
back to static /etc/easy-rsa/ directory (as does OpenSUSE).
EASYRSA_PKI still depends on $PWD.
Move easyrsa from /usr/sbin to /usr/bin as root is not needed.
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Diffstat (limited to 'package/network/services/openvpn-easy-rsa/patches')
-rw-r--r-- | package/network/services/openvpn-easy-rsa/patches/101-static_EASYRSA.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/package/network/services/openvpn-easy-rsa/patches/101-static_EASYRSA.patch b/package/network/services/openvpn-easy-rsa/patches/101-static_EASYRSA.patch new file mode 100644 index 0000000000..b81366c60b --- /dev/null +++ b/package/network/services/openvpn-easy-rsa/patches/101-static_EASYRSA.patch @@ -0,0 +1,22 @@ +Index: EasyRSA-3.0.4/easyrsa +=================================================================== +--- EasyRSA-3.0.4.orig/easyrsa ++++ EasyRSA-3.0.4/easyrsa +@@ -1033,7 +1033,7 @@ vars_setup() { + vars= + + # set up program path +- prog_vars="${0%/*}/vars" ++ prog_vars="/etc/easy-rsa/vars" + # set up PKI path + pki_vars="${EASYRSA_PKI:-$PWD/pki}/vars" + +@@ -1060,7 +1060,7 @@ Note: using Easy-RSA configuration from: + fi + + # Set defaults, preferring existing env-vars if present +- set_var EASYRSA "${0%/*}" ++ set_var EASYRSA "/etc/easy-rsa" + set_var EASYRSA_OPENSSL openssl + set_var EASYRSA_PKI "$PWD/pki" + set_var EASYRSA_DN cn_only |