2010-03-25 21:54:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Openldap <Formula
|
2010-07-22 00:00:47 +00:00
|
|
|
url 'ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.23.tgz'
|
2010-03-25 21:54:26 +00:00
|
|
|
homepage 'http://www.openldap.org/software/'
|
2010-07-22 00:00:47 +00:00
|
|
|
md5 '90150b8c0d0192e10b30157e68844ddf'
|
2010-03-25 21:54:26 +00:00
|
|
|
|
2010-07-24 04:34:02 +00:00
|
|
|
depends_on 'berkeley-db'
|
2010-03-25 21:54:26 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-10-31 19:37:59 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
OpenLDAP depends on berkeley-db 4.x, but Homebrew provides version 5.x,
|
|
|
|
which doesn't work. To work around this, do:
|
2010-11-10 18:16:28 +00:00
|
|
|
$ brew install https://github.com/adamv/homebrew/raw/versions/Library/Formula/berkeley-db4.rb --without-java
|
2010-10-31 19:37:59 +00:00
|
|
|
$ brew install --ignore-dependencies openldap
|
|
|
|
EOS
|
|
|
|
end
|
2010-03-25 21:54:26 +00:00
|
|
|
end
|