class Conserver < Formula homepage "http://conserver.com" url "http://conserver.com/conserver-8.2.0.tar.gz" sha256 "a05beb7b66c0228ece62786c3cfe4b0048c5d508e072fb3631c2bf460cab904f" bottle do sha256 "124e2eab8cea657ee17fea2ed6c9bd5592f172fa401b72f63f37299989a36b22" => :yosemite sha256 "faa174dbcf430a5410654ce87e2cc69bd0ee4382f253dff38ff5ee4f992c259d" => :mavericks sha256 "81aee0e591a8c878a55cf173c0d9b70e3539bb7cebbd81466ffabd270ee07ce2" => :mountain_lion end def install system "./configure", "--prefix=#{prefix}" system "make" system "make", "install" end test do console = fork do system bin/"console", "-n", "-p", "8000", "test" end sleep 1 Process.kill("TERM",console) end end