GnuPG - add support for patented IDEA cipher
Based on a patch from larseggert.
This commit is contained in:
parent
4b2335ce66
commit
7aed629f54
1 changed files with 33 additions and 6 deletions
|
@ -1,21 +1,48 @@
|
||||||
require 'formula'
|
require 'formula'
|
||||||
|
|
||||||
|
class GnupgIdea <Formula
|
||||||
|
head 'http://www.gnupg.dk/contrib-dk/idea.c.gz', :using => NoUnzipCurlDownloadStrategy
|
||||||
|
md5 '9dc3bc086824a8c7a331f35e09a3e57f'
|
||||||
|
end
|
||||||
|
|
||||||
class Gnupg <Formula
|
class Gnupg <Formula
|
||||||
@url='ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.10.tar.bz2'
|
url 'ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.10.tar.bz2'
|
||||||
@homepage='http://www.gnupg.org/'
|
homepage 'http://www.gnupg.org/'
|
||||||
@sha1='fd1b6a5f3b2dd836b598a1123ac257b8f105615d'
|
sha1 'fd1b6a5f3b2dd836b598a1123ac257b8f105615d'
|
||||||
|
|
||||||
|
def options
|
||||||
|
[["--idea", "Build with (patented) IDEA cipher"]]
|
||||||
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--disable-asm"
|
if ARGV.include? '--idea'
|
||||||
|
opoo "You are building with support for the patented IDEA cipher."
|
||||||
|
d=Pathname.getwd
|
||||||
|
GnupgIdea.new.brew { (d+'cipher').install Dir['*'] }
|
||||||
|
system 'gunzip', 'cipher/idea.c.gz'
|
||||||
|
end
|
||||||
|
|
||||||
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
||||||
|
"--prefix=#{prefix}",
|
||||||
|
"--disable-asm"
|
||||||
system "make"
|
system "make"
|
||||||
system "make check"
|
system "make check"
|
||||||
|
|
||||||
# amazingly even the GNU folks can bugger up their Makefiles, so we need
|
# we need to create these directories because the install target has the
|
||||||
# to create these directories because the install target has the
|
|
||||||
# dependency order wrong
|
# dependency order wrong
|
||||||
bin.mkpath
|
bin.mkpath
|
||||||
(libexec+'gnupg').mkpath
|
(libexec+'gnupg').mkpath
|
||||||
system "make install"
|
system "make install"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def caveats
|
||||||
|
if ARGV.include? '--idea'
|
||||||
|
<<-EOS.undent
|
||||||
|
Please read http://www.gnupg.org/faq/why-not-idea.en.html before doing so.
|
||||||
|
You will then need to add the following line to your ~/.gnupg/gpg.conf or
|
||||||
|
~/.gnupg/options file:
|
||||||
|
load-extension idea
|
||||||
|
EOS
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue