kestrel: updated URLs
Closes Homebrew/homebrew#39657. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
5c14130908
commit
27b687ed20
1 changed files with 12 additions and 14 deletions
|
@ -1,12 +1,10 @@
|
|||
require 'formula'
|
||||
|
||||
class Kestrel < Formula
|
||||
homepage 'http://robey.github.io/kestrel/'
|
||||
url 'http://robey.github.com/kestrel/download/kestrel-2.4.1.zip'
|
||||
sha1 'd6e6dabf1848fea306419c19ada0b89b6d1ad571'
|
||||
homepage "https://twitter.github.io/kestrel/"
|
||||
url "https://twitter.github.io/kestrel/download/kestrel-2.4.1.zip"
|
||||
sha256 "5d72a301737cc6cc3908483ce73d4bdb6e96521f3f8c96f93b732d740aaea80c"
|
||||
|
||||
def install
|
||||
inreplace 'scripts/kestrel.sh' do |s|
|
||||
inreplace "scripts/kestrel.sh" do |s|
|
||||
s.change_make_var! "APP_HOME", libexec
|
||||
|
||||
# Fix var paths.
|
||||
|
@ -19,20 +17,20 @@ class Kestrel < Formula
|
|||
s.gsub! "ulimit -", "# ulimit -"
|
||||
end
|
||||
|
||||
inreplace 'config/production.scala' do |s|
|
||||
inreplace "config/production.scala" do |s|
|
||||
# Fix var paths.
|
||||
s.gsub! "/var/", "/#{var}/"
|
||||
end
|
||||
|
||||
libexec.install Dir['*']
|
||||
(libexec + 'scripts/kestrel.sh').chmod 0755
|
||||
(libexec + 'scripts/devel.sh').chmod 0755
|
||||
libexec.install Dir["*"]
|
||||
(libexec/"scripts/kestrel.sh").chmod 0755
|
||||
(libexec/"scripts/devel.sh").chmod 0755
|
||||
|
||||
(var + 'log/kestrel').mkpath
|
||||
(var + 'run/kestrel').mkpath
|
||||
(var + 'spool/kestrel').mkpath
|
||||
(var/"log/kestrel").mkpath
|
||||
(var/"run/kestrel").mkpath
|
||||
(var/"spool/kestrel").mkpath
|
||||
|
||||
(bin + 'kestrel').write <<-EOS.undent
|
||||
(bin/"kestrel").write <<-EOS.undent
|
||||
#!/bin/bash
|
||||
exec "#{libexec}/scripts/kestrel.sh" "$@"
|
||||
EOS
|
||||
|
|
Loading…
Reference in a new issue