2011-12-03 03:25:25 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Bind < Formula
|
|
|
|
homepage 'http://www.isc.org/software/bind/'
|
2013-06-04 23:58:06 +00:00
|
|
|
url 'http://ftp.isc.org/isc/bind9/9.9.3-P1/bind-9.9.3-P1.tar.gz'
|
|
|
|
sha1 '9e1a9e5e45685befce6b93d4fcfd63e50eaeb2cf'
|
|
|
|
version '9.9.3-P1'
|
2011-12-03 03:25:25 +00:00
|
|
|
|
2012-09-05 04:04:01 +00:00
|
|
|
depends_on "openssl" if MacOS.version == :leopard
|
2011-12-03 03:25:25 +00:00
|
|
|
|
|
|
|
def install
|
2012-06-12 23:06:43 +00:00
|
|
|
ENV.libxml2
|
|
|
|
# libxml2 appends one inc dir to CPPFLAGS but bind ignores CPPFLAGS
|
|
|
|
ENV.append 'CFLAGS', ENV['CPPFLAGS']
|
|
|
|
|
|
|
|
ENV['STD_CDEFINES'] = '-DDIG_SIGCHASE=1'
|
|
|
|
|
|
|
|
args = [
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--enable-threads",
|
|
|
|
"--enable-ipv6",
|
|
|
|
]
|
|
|
|
|
|
|
|
# For Xcode-only systems we help a bit to find openssl.
|
|
|
|
# If CLT.installed?, it evaluates to "/usr", which works.
|
2013-06-09 20:20:18 +00:00
|
|
|
args << "--with-openssl=#{MacOS.sdk_path}/usr" unless MacOS.version == :leopard
|
2012-06-12 23:06:43 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
|
|
|
|
# From the bind9 README: "Do not use a parallel 'make'."
|
|
|
|
ENV.deparallelize
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
2011-12-03 03:25:25 +00:00
|
|
|
end
|
|
|
|
end
|