From 79f7d50c8b7997611fbd00effd3feb2ad43c1877 Mon Sep 17 00:00:00 2001 From: Rob Gabaree Date: Fri, 4 Apr 2014 13:56:14 -0400 Subject: 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 --- Library/Formula/unbound.rb | 39 ++++++++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) (limited to 'Library') 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 + + + + + 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 -- cgit v1.2.3