aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorPaul J. Davis2009-09-06 23:26:56 -0400
committerMax Howell2009-09-29 23:32:58 +0100
commit1544200b9937cabd029859a7a3adefb2100cc6c8 (patch)
tree83a1f8d7cc586619b50262bc3c227f66e7b4c53d /Library
parentc44122a6337d88d622af3a2829de89f2de80a4fa (diff)
downloadhomebrew-1544200b9937cabd029859a7a3adefb2100cc6c8.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/couchdb.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/couchdb.rb b/Library/Formula/couchdb.rb
index 27c2add5c..3914afed0 100644
--- a/Library/Formula/couchdb.rb
+++ b/Library/Formula/couchdb.rb
@@ -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