aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErkki Eilonen2012-03-10 19:43:57 +0100
committerAdam Vandenberg2012-03-12 21:42:09 -0700
commit91c1d38ebff2cf98d6cc531f7d29864ff22f0c16 (patch)
tree79ae7a69038c660d121b32cb66ef4f911d313e98
parent38651b48b0597e4e8ae7b6aa4794d5f1540d4204 (diff)
downloadhomebrew-91c1d38ebff2cf98d6cc531f7d29864ff22f0c16.tar.bz2
riemann 0.1.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/riemann.rb38
1 files changed, 38 insertions, 0 deletions
diff --git a/Library/Formula/riemann.rb b/Library/Formula/riemann.rb
new file mode 100644
index 000000000..5bf7f875d
--- /dev/null
+++ b/Library/Formula/riemann.rb
@@ -0,0 +1,38 @@
+require 'formula'
+
+class Riemann < Formula
+ homepage 'http://aphyr.github.com/riemann/'
+ url 'http://aphyr.com/riemann/riemann-0.1.0.tar.bz2'
+ md5 '5b4d8f2d6a443ae2258b8c569e26ebc6'
+
+ def shim_script
+ <<-EOS.undent
+ #!/bin/bash
+ if [ -z "$1" ]
+ then
+ config="#{etc}/riemann.config"
+ else
+ config=$@
+ fi
+ exec "#{libexec}/bin/riemann" "$config"
+ EOS
+ end
+
+ def install
+ prefix.install %w{ README.markdown etc/riemann.config.guide }
+ etc.install Dir.glob('etc/*')
+
+ # Install jars in libexec to avoid conflicts
+ libexec.install Dir['*']
+
+ (bin+'riemann').write shim_script
+ end
+
+ def caveats; <<-EOS.undent
+ You may also wish to install these Ruby gems:
+ riemann-client
+ riemann-tools
+ riemann-dash
+ EOS
+ end
+end