diff options
| author | Jack Nagel | 2014-05-10 12:28:46 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-10 12:29:23 -0500 |
| commit | 907d10ac5b251119cf1fb307557a1866c2b23756 (patch) | |
| tree | 2a057676635c0d5fc86e9aeca53622a619c022a5 /Library | |
| parent | 9e5f34c1e586c6d3298d581250d2f4e5ceafad86 (diff) | |
| download | homebrew-907d10ac5b251119cf1fb307557a1866c2b23756.tar.bz2 | |
ganglia: fix var directory
Fixes #28435.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/ganglia.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/ganglia.rb b/Library/Formula/ganglia.rb index 1af8f9848..9ab00dafb 100644 --- a/Library/Formula/ganglia.rb +++ b/Library/Formula/ganglia.rb @@ -20,6 +20,7 @@ class Ganglia < Formula end def install + inreplace "configure", %{varstatedir="/var/lib"}, %{varstatedir="#{var}/lib"} system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", @@ -34,6 +35,10 @@ class Ganglia < Formula system "#{bin}/gmond -t > #{etc}/gmond.conf" unless File.exist? "#{etc}/gmond.conf" end + def post_install + (var/"lib/ganglia/rrds").mkpath + end + def caveats; <<-EOS.undent If you didn't have a default config file, one was created here: #{etc}/gmond.conf |
