aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJulien Ponge2011-04-22 10:56:53 +0200
committerAdam Vandenberg2011-04-22 07:52:19 -0700
commit247fb931aa8631ff83fffc23b749e353cbe563f8 (patch)
treeeb1091bf50ef83253e6a22bcd8e44a945bf87e1e /Library
parentb94f92abe980c4b7b2e2e16885e0e7dad2bcd273 (diff)
downloadhomebrew-247fb931aa8631ff83fffc23b749e353cbe563f8.tar.bz2
Glassfish 3.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/glassfish.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/glassfish.rb b/Library/Formula/glassfish.rb
new file mode 100644
index 000000000..8e476cf93
--- /dev/null
+++ b/Library/Formula/glassfish.rb
@@ -0,0 +1,22 @@
+require 'formula'
+
+class Glassfish < Formula
+ url 'http://download.java.net/glassfish/3.1/release/glassfish-3.1.zip'
+ homepage 'http://glassfish.org/'
+ md5 'a4951c1a7268f92fd0bd6fada89f29d6'
+
+ 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