homebrew-core/Formula/beanstalk.rb

47 lines
1.5 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Beanstalk < Formula
desc "Generic work queue originally designed to reduce web latency"
homepage "https://kr.github.io/beanstalkd/"
2014-08-21 07:24:21 +00:00
url "https://github.com/kr/beanstalkd/archive/v1.10.tar.gz"
sha256 "923b1e195e168c2a91adcc75371231c26dcf23868ed3e0403cd4b1d662a52d59"
2014-08-21 08:13:25 +00:00
bottle do
2015-11-19 15:45:31 +00:00
sha256 "e33e39c6319ae92305b2dd810fd70bba6a61db2ab1a8e845d1bfb68b33756005" => :mavericks
sha256 "ae3fe9c2c70291f524fc22fbf8df34e84283da8a885262f48262f87fe19178c2" => :mountain_lion
sha256 "71eaae9e6f8d3db525780b84121511020887eebdb3dfb1d12e418c5a3e8b9e34" => :lion
2014-08-21 08:13:25 +00:00
end
def install
2012-03-15 00:57:44 +00:00
system "make", "install", "PREFIX=#{prefix}"
end
plist_options :manual => "beanstalkd"
def plist; <<-EOS.undent
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
2014-03-06 05:28:31 +00:00
<string>#{opt_bin}/beanstalkd</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>WorkingDirectory</key>
<string>#{var}</string>
<key>StandardErrorPath</key>
<string>#{var}/log/beanstalkd.log</string>
<key>StandardOutPath</key>
<string>#{var}/log/beanstalkd.log</string>
</dict>
</plist>
EOS
end
end