aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/openvpn.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/openvpn.rb b/Library/Formula/openvpn.rb
index 1d5de82a7..9b9a162e3 100644
--- a/Library/Formula/openvpn.rb
+++ b/Library/Formula/openvpn.rb
@@ -9,6 +9,15 @@ class Openvpn < Formula
depends_on 'lzo'
def install
+ # pam_appl header is installed in a different location on Leopard
+ # and older; reported upstream https://community.openvpn.net/openvpn/ticket/326
+ if MacOS.version < :snow_leopard
+ %w[auth-pam.c pamdl.c].each do |file|
+ inreplace "src/plugins/auth-pam/#{file}",
+ "security/pam_appl.h", "pam/pam_appl.h"
+ end
+ end
+
# Build and install binary
system "./configure", "--disable-debug",
"--disable-dependency-tracking",