forked from lotia/homebrew-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tomcat6.rb
30 lines (23 loc) · 824 Bytes
/
tomcat6.rb
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
29
30
require 'formula'
class Tomcat6 < Formula
homepage 'http://tomcat.apache.org/'
url 'http://www.apache.org/dyn/closer.cgi?path=tomcat/tomcat-6/v6.0.37/bin/apache-tomcat-6.0.37.tar.gz'
sha1 '722e6e4f35983b28170002d6b89b4915db682db6'
keg_only "Some scripts that are installed conflict with other software."
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
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 can link Tomcat into PATH with:
brew link tomcat6
or add #{bin} to your PATH instead.
EOS
end
end