Tweak the var/(lib|log) directories.

It appears as though Homebrew is aggressively removing empty
directories. I just created empty files to keep these alive so that
CouchDB would't choke on startup. I'm tired, otherwise I'd see if I
could use skip_clean? to skip removing the empty dirs.

Thanks to Kamal for fixing the initial log directory mixup.

Signed-Off-By: Adam Vandenberg <flangy@gmail.com>

Update Couchdb formula now that skip_clean? can test empty folders.
master
Paul J. Davis 2009-09-06 23:26:56 -04:00 committed by Max Howell
parent d9ff0da134
commit b7a6a4420d
1 changed files with 8 additions and 0 deletions

View File

@ -8,10 +8,18 @@ class Couchdb <Formula
depends_on 'spidermonkey'
depends_on 'icu4c'
depends_on 'erlang'
def skip_clean? path
path == prefix+"var/lib/couchdb" or
path == prefix+"var/log/couchdb"
end
def install
system "./configure", "--prefix=#{prefix}"
system "make"
system "make install"
(prefix+"var/lib/couchdb").mkdir
(prefix+"var/log/couchdb").mkdir
end
end