Skip to content

Instantly share code, notes, and snippets.

@pgk
Created January 7, 2012 22:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgk/1576376 to your computer and use it in GitHub Desktop.
Save pgk/1576376 to your computer and use it in GitHub Desktop.
Glassfish 3.0.1 Homebrew Formula
require 'formula'
class Glassfish301 < Formula
url 'http://download.java.net/glassfish/3.0.1/release/glassfish-3.0.1.zip'
homepage 'http://glassfish.org/'
md5 'a24f6ca15bb6b38d4cb2998d607abcde'
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
@pgk
Copy link
Author

pgk commented Jan 7, 2012

run with brew install glassfish301

@christopinka
Copy link

Can you commit this to homebrew versions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment