diff options
| author | Rob Gabaree | 2014-04-04 13:56:14 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2014-04-05 08:52:25 -0700 |
| commit | 79f7d50c8b7997611fbd00effd3feb2ad43c1877 (patch) | |
| tree | 4d6cd872208648367ccb477c181613a30d5c6c1c | |
| parent | c34079f97b24356ba09720437aca857c8f6ff937 (diff) | |
| download | homebrew-79f7d50c8b7997611fbd00effd3feb2ad43c1877.tar.bz2 | |
unbound 1.4.22
Changes:
* Upgrade from 1.4.21 => 1.4.22
* Add startup plist file
* Remove ldns dependency (No longer needed as of 1.4.22 [0])
[0] http://unbound.net/pipermail/unbound-users/2014-March/003224.html
| -rw-r--r-- | Library/Formula/unbound.rb | 39 |
1 files changed, 34 insertions, 5 deletions
diff --git a/Library/Formula/unbound.rb b/Library/Formula/unbound.rb index 9687f964e..28a162547 100644 --- a/Library/Formula/unbound.rb +++ b/Library/Formula/unbound.rb @@ -2,8 +2,8 @@ require 'formula' class Unbound < Formula homepage 'http://www.unbound.net' - url 'http://www.unbound.net/downloads/unbound-1.4.21.tar.gz' - sha1 '3ef4ea626e5284368d48ab618fe2207d43f2cee1' + url 'http://unbound.net/downloads/unbound-1.4.22.tar.gz' + sha1 'a56e31e2f3a2fefa3caaad9200dd943d174ca81e' bottle do sha1 "f012bd189beef2832b3af0b88679660eb092bd55" => :mavericks @@ -11,12 +11,41 @@ class Unbound < Formula sha1 "a3ed34772ca84a0d800e7edc0c676498f4fa541e" => :lion end - depends_on 'ldns' - def install - # gost requires OpenSSL >= 1.0.0, and support built into ldns + # gost requires OpenSSL >= 1.0.0 system "./configure", "--prefix=#{prefix}", "--disable-gost" system "make install" end + + 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 end |
