require 'formula' class Unbound < Formula homepage 'http://www.unbound.net' url 'http://unbound.net/downloads/unbound-1.4.22.tar.gz' sha1 'a56e31e2f3a2fefa3caaad9200dd943d174ca81e' bottle do sha1 "24b82835213927e67a4ad83c91e188b2b494c6d3" => :mavericks sha1 "84a921d4ad1ff56cd32c4062d1fb427443367527" => :mountain_lion sha1 "e426817cd99c1997803b6425269f4b0f2ffccbe8" => :lion end def install # gost requires OpenSSL >= 1.0.0 system "./configure", "--prefix=#{prefix}", "--disable-gost" system "make install" end plist_options :startup => true def plist; <<-EOS.undent Label #{plist_name} KeepAlive RunAtLoad ProgramArguments #{opt_sbin}/unbound -d -c #{etc}/unbound/unbound.conf UserName root StandardErrorPath /dev/null StandardOutPath /dev/null EOS end end