tomcat@6: delete
parent
397b4c982f
commit
e84721ec63
|
@ -1,46 +0,0 @@
|
|||
class TomcatAT6 < Formula
|
||||
desc "Implementation of Java Servlet and JavaServer Pages"
|
||||
homepage "https://tomcat.apache.org/"
|
||||
url "https://www.apache.org/dyn/closer.cgi?path=tomcat/tomcat-6/v6.0.53/bin/apache-tomcat-6.0.53.tar.gz"
|
||||
mirror "https://archive.apache.org/dist/tomcat/tomcat-6/v6.0.53/bin/apache-tomcat-6.0.53.tar.gz"
|
||||
sha256 "35249a4b40f41fb5f602f5602142d59faaa96dc1567df807d108d4d2b942e2f0"
|
||||
|
||||
bottle :unneeded
|
||||
|
||||
keg_only :versioned_formula
|
||||
|
||||
depends_on :java
|
||||
|
||||
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
|
||||
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 add #{bin} to your PATH instead.
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
ENV["CATALINA_BASE"] = testpath
|
||||
cp_r Dir["#{libexec}/*"], testpath
|
||||
rm Dir["#{libexec}/logs/*"]
|
||||
|
||||
pid = fork do
|
||||
exec bin/"catalina.sh", "start"
|
||||
end
|
||||
sleep 3
|
||||
begin
|
||||
system bin/"catalina.sh", "stop"
|
||||
ensure
|
||||
Process.wait pid
|
||||
end
|
||||
assert_predicate testpath/"logs/catalina.out", :exist?
|
||||
end
|
||||
end
|
|
@ -185,7 +185,6 @@
|
|||
"thrift@0.90": "thrift@0.9",
|
||||
"thrift090": "thrift@0.90",
|
||||
"todolist": "ultralist",
|
||||
"tomcat6": "tomcat@6",
|
||||
"tomcat7": "tomcat@7",
|
||||
"transfig": "fig2dev",
|
||||
"unison240": "unison@2.40",
|
||||
|
|
Loading…
Reference in New Issue