From afed128c9c0ed80e01d506257069f4f33bd8a2ce Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Sun, 19 Mar 2017 11:33:07 +0100 Subject: [PATCH] jetty@8: import from homebrew/versions. --- Formula/jetty@8.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Formula/jetty@8.rb diff --git a/Formula/jetty@8.rb b/Formula/jetty@8.rb new file mode 100644 index 0000000000..fa8561ab8f --- /dev/null +++ b/Formula/jetty@8.rb @@ -0,0 +1,25 @@ +class JettyAT8 < Formula + desc "Java servlet engine and webserver" + homepage "https://www.eclipse.org/jetty/" + url "https://eclipse.org/downloads/download.php?file=/jetty/8.1.15.v20140411/dist/jetty-distribution-8.1.15.v20140411.tar.gz&r=1" + version "8.1.15" + sha256 "2015725c8d1525f6d57b24ab5b16c745945a7a278dbedd1fba62016be125fb84" + + def install + rm_rf Dir["bin/*.{cmd,bat]}"] + + libexec.install Dir["*"] + (libexec+"logs").mkpath + + bin.mkpath + Dir["#{libexec}/bin/*.sh"].each do |f| + scriptname = File.basename(f, ".sh") + (bin+scriptname).write <<-EOS.undent + #!/bin/bash + JETTY_HOME=#{libexec} + #{f} $@ + EOS + chmod 0755, bin+scriptname + end + end +end