2011-04-22 08:56:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Glassfish < Formula
|
2011-07-31 19:33:33 +00:00
|
|
|
url 'http://download.java.net/glassfish/3.1.1/release/glassfish-3.1.1.zip'
|
2011-04-22 08:56:53 +00:00
|
|
|
homepage 'http://glassfish.org/'
|
2011-07-31 19:33:33 +00:00
|
|
|
md5 'bf92c2c99b3d53b83bbc8c7e2124a897'
|
2011-04-22 08:56:53 +00:00
|
|
|
|
|
|
|
skip_clean :all
|
|
|
|
|
|
|
|
def install
|
|
|
|
rm_rf Dir['bin/*.bat']
|
|
|
|
libexec.install Dir['*']
|
|
|
|
bin.mkpath
|
|
|
|
Dir["#{libexec}/bin/*"].each do |f|
|
|
|
|
ln_s f, bin
|
|
|
|
chmod 0755, (bin + File.basename(f))
|
|
|
|
end
|
|
|
|
inreplace "#{libexec}/bin/asadmin" do |s|
|
|
|
|
s.change_make_var! 'AS_INSTALL', "#{libexec}/glassfish"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|