aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ykpers.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/ykpers.rb b/Library/Formula/ykpers.rb
index 5e0b67156..04c813d21 100644
--- a/Library/Formula/ykpers.rb
+++ b/Library/Formula/ykpers.rb
@@ -7,6 +7,14 @@ class Ykpers < Formula
depends_on 'libyubikey'
+ # Pre-Lion fix, per MacPorts. See:
+ # https://trac.macports.org/ticket/34910
+ def patches
+ {:p0 =>
+ "https://trac.macports.org/export/96037/trunk/dports/security/ykpers/files/patch-pre-Lion-strnlen.diff"
+ } unless MacOS.lion?
+ end
+
def install
libyubikey_prefix = Formula.factory('libyubikey').prefix
system "./configure", "--prefix=#{prefix}",