From 0f95344487764f645618805588a3251b27daa5c6 Mon Sep 17 00:00:00 2001 From: Pawel Niewiadomski <11110000b@gmail.com> Date: Sun, 4 Jan 2015 00:11:25 +0100 Subject: [PATCH] atlassian-bamboo 5.7.2 (new formula) Closes Homebrew/homebrew#35525. Signed-off-by: Mike McQuaid --- Formula/atlassian-bamboo.rb | 61 +++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Formula/atlassian-bamboo.rb diff --git a/Formula/atlassian-bamboo.rb b/Formula/atlassian-bamboo.rb new file mode 100644 index 0000000000..ac76f6746b --- /dev/null +++ b/Formula/atlassian-bamboo.rb @@ -0,0 +1,61 @@ +class AtlassianBamboo < Formula + homepage "https://www.atlassian.com/software/bamboo" + url "http://www.atlassian.com/software/bamboo/downloads/binary/atlassian-bamboo-5.7.2.tar.gz" + sha256 "b378500ea61803333fc27b0a42cfbdfbce5dccc75cead0b464dbc4e5e0bddb17" + + depends_on :java => "1.7" + + def install + data = var/"bamboo-home" + inreplace "atlassian-bamboo/WEB-INF/classes/bamboo-init.properties", + '#bamboo.home=C:/bamboo/bamboo-home', "bamboo.home=#{data}" + + libexec.install Dir["*"] + + bin.install_symlink libexec/"bin/start-bamboo.sh" + bin.install_symlink libexec/"bin/stop-bamboo.sh" + end + + def post_install + # Make sure runtime directories exist + (var/"bamboo-home").mkpath + end + + plist_options :manual => "#{HOMEBREW_PREFIX}/opt/atlassian-bamboo/libexec/bin/start-bamboo.sh" + + def plist; <<-EOS.undent + + + + + Label + #{plist_name} + + WorkingDirectory + #{libexec} + + ProgramArguments + + bin/start-bamboo.sh + -fg + + + KeepAlive + + + + EOS + end + + def caveats; <<-EOS.undent + Once started Bamboo will listen on http://localhost:8085/ + + If you have Java 7 installed along with other versions, try: + JAVA_HOME=$(/usr/libexec/java_home -v 1.7) brew install atlassian-bamboo + EOS + end + + test do + system "#{libexec}/bin/version.sh" + end +end