2010-06-20 16:31:21 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Tomcat <Formula
|
2010-09-03 21:07:54 +00:00
|
|
|
url 'http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.26/bin/apache-tomcat-6.0.26.tar.gz'
|
2010-06-20 16:31:21 +00:00
|
|
|
homepage 'http://tomcat.apache.org/'
|
|
|
|
md5 'f9eafa9bfd620324d1270ae8f09a8c89'
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
skip_clean :all
|
2010-06-20 16:31:21 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
rm_rf Dir['bin/*.{cmd,bat]}']
|
|
|
|
libexec.install Dir['*']
|
|
|
|
(libexec+'logs').mkpath
|
|
|
|
bin.mkpath
|
|
|
|
Dir["#{libexec}/bin/*.sh"].each { |f| ln_s f, bin }
|
|
|
|
end
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Note: Some of the support scripts used by Tomcat have very generic names.
|
|
|
|
These are likely to conflict with support scripts used by other Java-based
|
|
|
|
server software.
|
2010-06-20 16:31:21 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
You may want to `brew unlink tomcat` and add:
|
|
|
|
#{bin}
|
|
|
|
to your PATH instead.
|
2010-06-20 16:31:21 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|