Skip to content

Commit

Permalink
ganglia 3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv committed Nov 10, 2013
1 parent 44628f7 commit b03661f
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions Formula/ganglia.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

class Ganglia < Formula
homepage 'http://ganglia.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/ganglia/ganglia%20monitoring%20core/3.1.7/ganglia-3.1.7.tar.gz'
sha1 'e234d64814af1c9f55f1cd039a5840039d175f85'
url 'http://downloads.sourceforge.net/project/ganglia/ganglia%20monitoring%20core/3.6.0/ganglia-3.6.0.tar.gz'
sha1 'b06529ac49deb1f1c65c6215b8d2d13c3f3fa23f'

depends_on 'pkg-config' => :build # to find APR
depends_on 'confuse'
depends_on 'pcre'
depends_on 'rrdtool'
Expand All @@ -25,33 +26,20 @@ def install
"--prefix=#{prefix}",
"--sbindir=#{bin}",
"--sysconfdir=#{etc}",
"--with-gexec",
"--with-gmetad",
"--with-libpcre=#{HOMEBREW_PREFIX}"
system "make install"

cd "web" do
system "make", "conf.php"
system "make", "version.php"
inreplace "conf.php", "/usr/bin/rrdtool", "#{HOMEBREW_PREFIX}/bin/rrdtool"
end

# Generate the default config file
system "#{bin}/gmond -t > #{etc}/gmond.conf" unless File.exists? "#{etc}/gmond.conf"

# Install the web files
(share+"ganglia").install "web"

# Install man pages
man1.install Dir['mans/*']
end

def caveats; <<-EOS.undent
If you didn't have a default config file, one was created here:
#{etc}/gmond.conf
You might want to copy these someplace served by a PHP-capable web server:
#{share}/ganglia/web/* to someplace
EOS
end
end

0 comments on commit b03661f

Please sign in to comment.