diff options
| author | Mike McQuaid | 2014-08-25 09:49:13 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-08-26 08:55:34 +0100 |
| commit | 7dac5b661d9d7dc3296d572e4570f422372c2403 (patch) | |
| tree | 0e69f247bb613cc31e9ae5bc8eb93ee874b521d0 /Library/Formula/bind.rb | |
| parent | 6cf528545e74c4b9c5f9a93b0e5a8d711a95f612 (diff) | |
| download | homebrew-7dac5b661d9d7dc3296d572e4570f422372c2403.tar.bz2 | |
bind: use etc.install for configuration.
Closes #31772.
Diffstat (limited to 'Library/Formula/bind.rb')
| -rw-r--r-- | Library/Formula/bind.rb | 9 |
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 |
