diff options
| author | Mike McQuaid | 2014-08-25 09:49:26 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-08-26 08:55:34 +0100 |
| commit | 6d27dc1d663c4c2f27f781d0ea81313bc64f1d67 (patch) | |
| tree | 377beb6036c7b12d09c891c22e4c32175ec3b8d1 /Library | |
| parent | 7dac5b661d9d7dc3296d572e4570f422372c2403 (diff) | |
| download | homebrew-6d27dc1d663c4c2f27f781d0ea81313bc64f1d67.tar.bz2 | |
bind: general cleanup.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/bind.rb | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/Library/Formula/bind.rb b/Library/Formula/bind.rb index 0e827a4ba..81b43c8de 100644 --- a/Library/Formula/bind.rb +++ b/Library/Formula/bind.rb @@ -1,10 +1,10 @@ -require 'formula' +require "formula" class Bind < Formula - homepage 'http://www.isc.org/software/bind/' - url 'http://ftp.isc.org/isc/bind9/9.10.0-P2/bind-9.10.0-P2.tar.gz' - sha1 'c57b5825e36933119e9fd6f43e3f52262e7ff4ed' - version '9.10.0-P2' + homepage "http://www.isc.org/software/bind/" + url "http://ftp.isc.org/isc/bind9/9.10.0-P2/bind-9.10.0-P2.tar.gz" + sha1 "c57b5825e36933119e9fd6f43e3f52262e7ff4ed" + version "9.10.0-P2" revision 1 bottle do @@ -21,17 +21,17 @@ class Bind < Formula def install ENV.libxml2 # libxml2 appends one inc dir to CPPFLAGS but bind ignores CPPFLAGS - ENV.append 'CFLAGS', ENV.cppflags + ENV.append "CFLAGS", ENV.cppflags system "./configure", "--prefix=#{prefix}", "--enable-threads", "--enable-ipv6", - "--with-ssl-dir=#{Formula['openssl'].opt_prefix}" + "--with-ssl-dir=#{Formula["openssl"].opt_prefix}" - # From the bind9 README: "Do not use a parallel 'make'." + # From the bind9 README: "Do not use a parallel "make"." ENV.deparallelize system "make" - system "make install" + system "make", "install" (buildpath+"named.conf").write named_conf system "#{sbin}/rndc-confgen", "-a", "-c", "#{buildpath}/rndc.key" @@ -39,14 +39,15 @@ class Bind < Formula end def post_install - # Create initial configuration/zone/ca files. (Mirrors Apple system install from 10.8) - unless (var + 'named').exist? - (var + 'named').mkpath - (var + 'named/localhost.zone').write localhost_zone - (var + 'named/named.local').write named_local + (var+"log/named").mkpath + + # Create initial configuration/zone/ca files. + # (Mirrors Apple system install from 10.8) + unless (var+"named").exist? + (var+"named").mkpath + (var+"named/localhost.zone").write localhost_zone + (var+"named/named.local").write named_local end - # Create initial log directory. - (var + 'log/named').mkpath end def named_conf; <<-EOS.undent |
