blob: 90b34434f2a9d937d9a87a96ea2a65c2d39de786 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
require 'formula'
class Tomcat <Formula
url 'http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.6/bin/apache-tomcat-7.0.6.tar.gz'
homepage 'http://tomcat.apache.org/'
md5 '1c54578e2e695212ab3ed75170930df4'
skip_clean :all
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
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.
You may want to `brew unlink tomcat` and add:
#{bin}
to your PATH instead.
EOS
end
end
|