diff options
| author | Andreas Otto | 2011-02-10 20:11:09 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2011-02-12 16:46:42 +0000 |
| commit | d092d71645593e1f2a0e1d5f892be7b368b07d98 (patch) | |
| tree | dbcb21d552c8e4a06d58c080c009b6cb6c8b34dc /Library/Formula | |
| parent | aee551b7eee89ac9515670e9969ed61d5eb0b526 (diff) | |
| download | homebrew-d092d71645593e1f2a0e1d5f892be7b368b07d98.tar.bz2 | |
Add option for 8192 bit GPG keys.
Although it is technicaly possible to work with 8192 bit GPG keys the
creators of Gnupgp ship the sources with a hard coded limit of 4096
bit. If you want a larger GPG key than 4096 bit you're supposed to
change the given limit yourself by changing one line of code in the file
g10/keygen.c. That's it. After that you can create 8192 bit GPG keys.
Closes #4201.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gnupg.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/gnupg.rb b/Library/Formula/gnupg.rb index 579708881..f9a1f2714 100644 --- a/Library/Formula/gnupg.rb +++ b/Library/Formula/gnupg.rb @@ -17,7 +17,10 @@ class Gnupg <Formula end def options - [["--idea", "Build with (patented) IDEA cipher"]] + [ + ["--idea", "Build with (patented) IDEA cipher"], + ["--8192", "Build with support for private keys up to 8192 bits"], + ] end def install @@ -28,6 +31,8 @@ class Gnupg <Formula system 'gunzip', 'cipher/idea.c.gz' end + inreplace 'g10/keygen.c', 'max=4096', 'max=8192' if ARGV.include? '--8192' + system "/usr/bin/autoconf" system "./configure", "--disable-dependency-tracking", |
