diff options
| author | Doug Jones | 2011-09-12 12:31:38 -0400 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-09-12 12:31:24 -0700 |
| commit | 72cb07377a46f2ed613fbc3ae3363c8c5ee3bd1c (patch) | |
| tree | 7e48c7aab241851463ce75f43a8dc08c97968846 /Library/Formula | |
| parent | de34c147bbc839937ce4a99a058d21009fabbc35 (diff) | |
| download | homebrew-72cb07377a46f2ed613fbc3ae3363c8c5ee3bd1c.tar.bz2 | |
mongodb: Update to 2.0.0
Remove install from head since 2.0.0 is now head. Remove references to
journaling being disabled by default (it is now enabled by default).
Closes #7590.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mongodb.rb | 58 |
1 files changed, 17 insertions, 41 deletions
diff --git a/Library/Formula/mongodb.rb b/Library/Formula/mongodb.rb index 2a64ac4ba..656658e01 100644 --- a/Library/Formula/mongodb.rb +++ b/Library/Formula/mongodb.rb @@ -4,33 +4,18 @@ 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-rc2.tgz', - :md5 => '9e9185524c695055bd9d86bdb98b5b9b', - :version => '2.0.0-rc2-x86_64' - }, - :i386 => { - :url => 'http://fastdl.mongodb.org/osx/mongodb-osx-i386-2.0.0-rc2.tgz', - :md5 => '9afdabf654d3965c6c0bfd3e032b830e', - :version => '2.0.0-rc2-i386' - } + packages = { + :x86_64 => { + :url => 'http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.0.0.tgz', + :md5 => '01776ae81c9bf12708f8a4f8a2d8c28e', + :version => '2.0.0-x86_64' + }, + :i386 => { + :url => 'http://fastdl.mongodb.org/osx/mongodb-osx-i386-2.0.0.tgz', + :md5 => '0a93663d1ceaed9fc99979ef17fbe32d', + :version => '2.0.0-i386' } - else - packages = { - :x86_64 => { - :url => 'http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-1.8.3.tgz', - :md5 => '8bdb3e110d6391d66379c5425c1c4e6e', - :version => '1.8.3-x86_64' - }, - :i386 => { - :url => 'http://fastdl.mongodb.org/osx/mongodb-osx-i386-1.8.3.tgz', - :md5 => '5629e49d6d24a99850fb094efb98685c', - :version => '1.8.3-i386' - } - } - end + } package = (Hardware.is_64_bit? and not ARGV.include? '--32bit') ? packages[:x86_64] : packages[:i386] @@ -88,7 +73,7 @@ class Mongodb < Formula s += "" s += <<-EOS.undent MongoDB 1.8+ includes a feature for Write Ahead Logging (Journaling), which has been enabled by default. - This is not the default in production (Journaling is disabled); to disable journaling, use --nojournal. + To disable journaling, use --nojournal. EOS end @@ -105,20 +90,11 @@ class Mongodb < Formula bind_ip = 127.0.0.1 EOS - 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 + if ARGV.include? '--nojournal' + conf += <<-EOS.undent + # Disable Write Ahead Logging + nojournal = true + EOS end if ARGV.include? '--rest' |
