fb8d0555c5
OpenLDAP requires BDB 4.x. Added instructions for installing to the caveats.
22 lines
725 B
Ruby
22 lines
725 B
Ruby
require 'formula'
|
|
|
|
class Openldap <Formula
|
|
url 'ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.23.tgz'
|
|
homepage 'http://www.openldap.org/software/'
|
|
md5 '90150b8c0d0192e10b30157e68844ddf'
|
|
|
|
depends_on 'berkeley-db'
|
|
|
|
def install
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
system "make install"
|
|
end
|
|
|
|
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:
|
|
$ brew install http://github.com/adamv/homebrew/raw/versions/Library/Formula/berkeley-db4.rb --without-java
|
|
$ brew install --ignore-dependencies openldap
|
|
EOS
|
|
end
|
|
end
|