Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #62. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
require 'formula' | ||
|
||
class Tomcat6 < Formula | ||
url 'http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.32/bin/apache-tomcat-6.0.32.tar.gz' | ||
homepage 'http://tomcat.apache.org/' | ||
md5 '928a960268adf610a7d6fe5c4fcd0b20' | ||
|
||
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 |