From 80d6af426b3e5a5ee7aa2181d2033bb452f777c7 Mon Sep 17 00:00:00 2001 From: wkruse Date: Thu, 13 Jun 2013 15:07:17 +0200 Subject: glassfish 4.0 Closes #20469. Signed-off-by: Adam Vandenberg --- Library/Formula/glassfish.rb | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/glassfish.rb b/Library/Formula/glassfish.rb index 53c55ccaf..004248450 100644 --- a/Library/Formula/glassfish.rb +++ b/Library/Formula/glassfish.rb @@ -1,22 +1,29 @@ require 'formula' class Glassfish < Formula - homepage 'http://glassfish.java.net/' - url 'http://download.java.net/glassfish/3.1.2.2/release/glassfish-3.1.2.2.zip' - sha1 '627e67d7e7f06583beb284c56f76456913461722' + homepage 'https://glassfish.java.net' + url 'http://download.java.net/glassfish/4.0/release/glassfish-4.0.zip' + sha1 'daca9808d80df35b26cd9545a84e8324ed34fe7e' # To keep empty folders around skip_clean 'libexec' def install rm_rf Dir['bin/*.bat'] - libexec.install Dir["*"] libexec.install Dir[".org.opensolaris,pkg"] - bin.write_exec_script Dir["#{libexec}/bin/*"] + end + + def caveats; <<-EOS.undent + The home of GlassFish Application Server 4 is: + #{opt_prefix}/libexec + + You may want to add the following to your .bash_profile: + export GLASSFISH_HOME=#{opt_prefix}/libexec + export PATH=${PATH}:${GLASSFISH_HOME}/bin - inreplace "#{libexec}/bin/asadmin" do |s| - s.change_make_var! 'AS_INSTALL', "#{libexec}/glassfish" - end + Note: The support scripts used by GlassFish Application Server 4 + are *NOT* linked to bin. + EOS end end -- cgit v1.2.3