forked from lotia/homebrew-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tomcat6.rb
32 lines (24 loc) · 823 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
31
32
require 'formula'
class Tomcat6 < Formula
homepage 'http://tomcat.apache.org/'
url 'http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.33/bin/apache-tomcat-6.0.33.tar.gz'
md5 '0e86af52d7d31503a98beb04a9d5d8dc'
skip_clean :all
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