Skip to content

Commit

Permalink
openldap: don't clean run folder
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv committed Mar 16, 2012
1 parent e1a73d7 commit 3081df6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions duplicates/openldap.rb
@@ -1,20 +1,21 @@
require 'formula' require 'formula'


class Openldap < Formula class Openldap < Formula
url 'ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.24.tgz'
homepage 'http://www.openldap.org/software/' homepage 'http://www.openldap.org/software/'
url 'ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.24.tgz'
md5 '116fe1e23a7b67686d5e62274367e6c0' md5 '116fe1e23a7b67686d5e62274367e6c0'


depends_on 'berkeley-db' if ARGV.include? "--with-berkeley-db" depends_on 'berkeley-db' if ARGV.include? "--with-berkeley-db"


skip_clean 'var/run'

def options def options
[ [["--with-berkeley-db", "compile openldap with berkeley-db support"]]
["--with-berkeley-db", "compile openldap with berkeley-db support"],
]
end end


def install def install
args = ["--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"] args = ["--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"]


args << "--enable-bdb=no" unless ARGV.include? "--with-berkeley-db" args << "--enable-bdb=no" unless ARGV.include? "--with-berkeley-db"
args << "--enable-hdb=no" unless ARGV.include? "--with-berkeley-db" args << "--enable-hdb=no" unless ARGV.include? "--with-berkeley-db"
Expand Down

0 comments on commit 3081df6

Please sign in to comment.