From 15a4bd2615676958cd2820df93bca4e69823f3c0 Mon Sep 17 00:00:00 2001 From: Daniel Mekonnen Date: Wed, 30 Apr 2014 11:32:21 -0400 Subject: bigdata 1.3.1 Closes #28858. Signed-off-by: Adam Vandenberg --- Library/Formula/bigdata.rb | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Library/Formula/bigdata.rb (limited to 'Library/Formula') diff --git a/Library/Formula/bigdata.rb b/Library/Formula/bigdata.rb new file mode 100644 index 000000000..055183653 --- /dev/null +++ b/Library/Formula/bigdata.rb @@ -0,0 +1,48 @@ +require "formula" + +class Bigdata < Formula + homepage "http://bigdata.com/" + url "http://bigdata.com/deploy/bigdata-1.3.1.tgz" + sha1 "bcfacd08b1e1c7429d3ca31b8632a20cdff1fb79" + + def install + prefix.install "doc", "var", "bin" + libexec.install Dir["lib/*.jar"] + + File.rename "#{bin}/bigdataNSS", "#{bin}/bigdata" + + # Set the installation path as the root for the bin scripts: + inreplace "#{bin}/bigdata" do |s| + s.sub! "<%= BD_HOME %>", prefix + s.sub! "<%= INSTALL_TYPE %>", "BREW" + end + + # Set the installation path as the root for bigdata.jnl file location (/data): + inreplace "#{prefix}/var/jetty/WEB-INF/RWStore.properties", "<%= BD_HOME %>", prefix + + # Set the installation path as the root for log files (/log): + inreplace "#{prefix}/var/jetty/WEB-INF/classes/log4j.properties", "<%= BD_HOME %>", prefix + end + + plist_options :startup => 'true', :manual => 'bigdata start' + + def plist; <<-EOS.undent + + + + + Label + #{plist_name} + Program + #{bin}/bigdata + RunAtLoad + + WorkingDirectory + #{prefix} + + + EOS + end + +end -- cgit v1.2.3