MongoDB 2.0.0-rc0

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Chris Griego 2011-08-28 13:50:34 -05:00 committed by Adam Vandenberg
parent 25d7abec46
commit fedf64928a

View file

@ -4,6 +4,20 @@ require 'hardware'
class Mongodb < Formula
homepage 'http://www.mongodb.org/'
if ARGV.build_head?
packages = {
:x86_64 => {
:url => 'http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.0.0-rc0.tgz',
:md5 => 'df364c1d1e4baba3a527d51b00f4cc60',
:version => '2.0.0-rc0-x86_64'
},
:i386 => {
:url => 'http://fastdl.mongodb.org/osx/mongodb-osx-i386-2.0.0-rc0.tgz',
:md5 => '34bab47002a4f5b19171f25a2bdf4129',
:version => '2.0.0-rc0-i386'
}
}
else
packages = {
:x86_64 => {
:url => 'http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-1.8.3.tgz',
@ -16,6 +30,7 @@ class Mongodb < Formula
:version => '1.8.3-i386'
}
}
end
package = (Hardware.is_64_bit? and not ARGV.include? '--32bit') ? packages[:x86_64] : packages[:i386]
@ -89,12 +104,21 @@ class Mongodb < Formula
bind_ip = 127.0.0.1
EOS
if !ARGV.include? '--nojournal'
if ARGV.build_head?
if ARGV.include? '--nojournal'
conf += <<-EOS.undent
# Enable Write Ahead Logging (not enabled by default in production deployments)
nojournal = true
EOS
end
else
unless ARGV.include? '--nojournal'
conf += <<-EOS.undent
# Enable Write Ahead Logging (not enabled by default in production deployments)
journal = true
EOS
end
end
if ARGV.include? '--rest'
conf += <<-EOS.undent