bind.rb 804 Bytes
Newer Older
ntchambers's avatar
ntchambers committed
1 2 3
require 'package'

class Bind < Package
4 5
  description 'BIND is open source software that enables you to publish your Domain Name System (DNS) information on the Internet, and to resolve DNS queries for your users.'
  homepage 'https://www.isc.org/downloads/bind/'
6 7 8
  version '9.10.5-p3'
  source_url 'https://www.isc.org/downloads/file/9-10-5-p3/?version=tar-gz'
  source_sha256 '8d7e96b5b0bbac7b900d4c4bbb82e0956b4e509433c5fa392bb72a929b96606a'
ntchambers's avatar
ntchambers committed
9

Nicholas Chambers's avatar
Nicholas Chambers committed
10 11 12 13
  depends_on "buildessential"
  depends_on "openssl"
  depends_on "libcap"
  depends_on "readline"
14
  depends_on "diffutils"
Nicholas Chambers's avatar
Nicholas Chambers committed
15

ntchambers's avatar
ntchambers committed
16
  def self.build
Nicholas Chambers's avatar
Nicholas Chambers committed
17
    system "BUILD_CC=gcc ./configure --with-randomdev=no --with-ecdsa=yes --with-gost=yes --prefix=/usr/local"
ntchambers's avatar
ntchambers committed
18 19 20 21
    system "make"
  end

  def self.install
22
    system "make DESTDIR=#{CREW_DEST_DIR} install"
ntchambers's avatar
ntchambers committed
23 24
  end
end