require 'formula' class Beanstalk < Formula homepage 'http://kr.github.io/beanstalkd/' url 'https://github.com/kr/beanstalkd/archive/v1.9.tar.gz' sha1 'a3cdb93d9c7465491c58c8e7a99d63d779067845' 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