class Beanstalk < Formula desc "Generic work queue originally designed to reduce web latency" homepage "https://kr.github.io/beanstalkd/" url "https://github.com/kr/beanstalkd/archive/v1.10.tar.gz" sha256 "923b1e195e168c2a91adcc75371231c26dcf23868ed3e0403cd4b1d662a52d59" bottle do cellar :any_skip_relocation revision 1 sha256 "a1929c324475d482942447e24e4d6da0b9d47ecc7e028d5fa1e743892fe26cdf" => :el_capitan sha256 "91b369d07c61cba1344e5d8d6718a1805aa49aacd777c166a6657f86cbaa3282" => :yosemite sha256 "cc0f15232d47f0cb95acb6f2e252acb26cf978a564c3711c6d12995ad2598a7d" => :mavericks end def install system "make", "install", "PREFIX=#{prefix}" end plist_options :manual => "beanstalkd" def plist; <<-EOS.undent KeepAlive Label #{plist_name} ProgramArguments #{opt_bin}/beanstalkd RunAtLoad KeepAlive WorkingDirectory #{var} StandardErrorPath #{var}/log/beanstalkd.log StandardOutPath #{var}/log/beanstalkd.log EOS end end