aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bind.rb
diff options
context:
space:
mode:
authorMike McQuaid2014-08-25 09:49:13 +0100
committerMike McQuaid2014-08-26 08:55:34 +0100
commit7dac5b661d9d7dc3296d572e4570f422372c2403 (patch)
tree0e69f247bb613cc31e9ae5bc8eb93ee874b521d0 /Library/Formula/bind.rb
parent6cf528545e74c4b9c5f9a93b0e5a8d711a95f612 (diff)
downloadhomebrew-7dac5b661d9d7dc3296d572e4570f422372c2403.tar.bz2
bind: use etc.install for configuration.
Closes #31772.
Diffstat (limited to 'Library/Formula/bind.rb')
-rw-r--r--Library/Formula/bind.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/Library/Formula/bind.rb b/Library/Formula/bind.rb
index a3a442fbf..0e827a4ba 100644
--- a/Library/Formula/bind.rb
+++ b/Library/Formula/bind.rb
@@ -32,6 +32,10 @@ class Bind < Formula
ENV.deparallelize
system "make"
system "make install"
+
+ (buildpath+"named.conf").write named_conf
+ system "#{sbin}/rndc-confgen", "-a", "-c", "#{buildpath}/rndc.key"
+ etc.install "named.conf", "rndc.key"
end
def post_install
@@ -41,13 +45,8 @@ class Bind < Formula
(var + 'named/localhost.zone').write localhost_zone
(var + 'named/named.local').write named_local
end
- (etc + 'named.conf').write(named_conf)
-
# Create initial log directory.
(var + 'log/named').mkpath
-
- # Generate rndc key automatically.
- system "#{sbin}/rndc-confgen -a -c \"#{etc}/rndc.key\"" unless (etc + 'rndc.key').exist?
end
def named_conf; <<-EOS.undent