Created
January 7, 2012 22:57
-
-
Save pgk/1576376 to your computer and use it in GitHub Desktop.
Glassfish 3.0.1 Homebrew Formula
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
run with brew install glassfish301