openvpn: only depend on tuntap on pre-yosemite
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> Closes Homebrew/homebrew#47161. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
dad7264ab2
commit
ba95808cd7
1 changed files with 15 additions and 7 deletions
|
@ -11,7 +11,7 @@ class Openvpn < Formula
|
|||
end
|
||||
|
||||
depends_on "lzo"
|
||||
depends_on :tuntap
|
||||
depends_on :tuntap if MacOS.version < :yosemite
|
||||
depends_on "openssl"
|
||||
|
||||
def install
|
||||
|
@ -41,13 +41,21 @@ class Openvpn < Formula
|
|||
rm "#{share}/doc/openvpn/README.polarssl"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
If you have installed the Tuntap dependency as a source package you will
|
||||
need to follow the instructions found in `brew info tuntap`. If you have
|
||||
installed the binary Tuntap package, no further action is necessary.
|
||||
def caveats
|
||||
s = ""
|
||||
|
||||
For OpenVPN to work as a server, you will need to create configuration file
|
||||
in #{etc}/openvpn, samples can be found in #{share}/doc/openvpn
|
||||
if MacOS.version < :yosemite
|
||||
s += <<-EOS.undent
|
||||
If you have installed the Tuntap dependency as a source package you will
|
||||
need to follow the instructions found in `brew info tuntap`. If you have
|
||||
installed the binary Tuntap package, no further action is necessary.
|
||||
|
||||
EOS
|
||||
end
|
||||
|
||||
s += <<-EOS.undent
|
||||
For OpenVPN to work as a server, you will need to create configuration file
|
||||
in #{etc}/openvpn, samples can be found in #{share}/doc/openvpn
|
||||
EOS
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue