2010-11-10 03:29:50 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Unbound < Formula
|
2010-11-10 03:29:50 +00:00
|
|
|
homepage 'http://www.unbound.net'
|
2014-04-04 17:56:14 +00:00
|
|
|
url 'http://unbound.net/downloads/unbound-1.4.22.tar.gz'
|
|
|
|
sha1 'a56e31e2f3a2fefa3caaad9200dd943d174ca81e'
|
2010-11-10 03:29:50 +00:00
|
|
|
|
2014-03-25 15:36:17 +00:00
|
|
|
bottle do
|
2014-04-04 22:58:25 +00:00
|
|
|
sha1 "24b82835213927e67a4ad83c91e188b2b494c6d3" => :mavericks
|
|
|
|
sha1 "84a921d4ad1ff56cd32c4062d1fb427443367527" => :mountain_lion
|
|
|
|
sha1 "e426817cd99c1997803b6425269f4b0f2ffccbe8" => :lion
|
2014-03-25 15:36:17 +00:00
|
|
|
end
|
|
|
|
|
2010-11-10 03:29:50 +00:00
|
|
|
def install
|
2014-04-04 17:56:14 +00:00
|
|
|
# gost requires OpenSSL >= 1.0.0
|
2012-06-19 03:16:52 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-gost"
|
2010-11-10 03:29:50 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2014-04-04 17:56:14 +00:00
|
|
|
|
|
|
|
plist_options :startup => true
|
|
|
|
|
|
|
|
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>Label</key>
|
|
|
|
<string>#{plist_name}</string>
|
|
|
|
<key>KeepAlive</key>
|
|
|
|
<true/>
|
|
|
|
<key>RunAtLoad</key>
|
|
|
|
<true/>
|
|
|
|
<key>ProgramArguments</key>
|
|
|
|
<array>
|
|
|
|
<string>#{opt_sbin}/unbound</string>
|
|
|
|
<string>-d</string>
|
|
|
|
<string>-c</string>
|
|
|
|
<string>#{etc}/unbound/unbound.conf</string>
|
|
|
|
</array>
|
|
|
|
<key>UserName</key>
|
|
|
|
<string>root</string>
|
|
|
|
<key>StandardErrorPath</key>
|
|
|
|
<string>/dev/null</string>
|
|
|
|
<key>StandardOutPath</key>
|
|
|
|
<string>/dev/null</string>
|
|
|
|
</dict>
|
|
|
|
</plist>
|
|
|
|
EOS
|
|
|
|
end
|
2010-11-10 03:29:50 +00:00
|
|
|
end
|