<commit_before>class Bind < Formula
  desc "Implementation of the DNS protocols"
  homepage "https://www.isc.org/downloads/bind/"
  url "https://ftp.isc.org/isc/bind9/9.12.2-P2/bind-9.12.2-P2.tar.gz"
  version "9.12.2-P2"
  sha256 "87027826e98bab90ead31f45ce7653cb3116ebe64ab8202a08b6b64531df693e"
  head "https://gitlab.isc.org/isc-projects/bind9.git"

  bottle do
    sha256 "9474bdece754a9f00a805baada5314905ca998520ded0a73a3dc757e3d2e2120" => :mojave
    sha256 "65cb6636f217a5b102f1ef6be2d51f2ac3b83905bf3c762f46219f73fdb962fd" => :high_sierra
    sha256 "e0b6ca1c556cbba3af31d0402d888610637eddf9def93bac2d5c13e27c2193b0" => :sierra
    sha256 "f1647b9ece6cc0ca08891774487415c28a13ed4d9637f1e60924b885ce7da4b2" => :el_capitan
  end

  depends_on "openssl"
  depends_on "json-c" => :optional

  def install
    # Fix "configure: error: xml2-config returns badness"
    if MacOS.version == :sierra || MacOS.version == :el_capitan
      ENV["SDKROOT"] = MacOS.sdk_path
    end

    # enable DNSSEC signature chasing in dig
    ENV["STD_CDEFINES"] = "-DDIG_SIGCHASE=1"

    json = build.with?("json-c") ? "yes" : "no"
    system "./configure", "--prefix=#{prefix}",
                          "--enable-threads",
                          "--enable-ipv6",
                          "--with-openssl=#{Formula["openssl"].opt_prefix}",
                          "--with-libjson=#{json}"

    # From the bind9 README: "Do not use a parallel "make"."
    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<commit_msg>bind: update 9.12.2-P2 bottle for Linuxbrew.<commit_after>class Bind < Formula
  desc "Implementation of the DNS protocols"
  homepage "https://www.isc.org/downloads/bind/"
  url "https://ftp.isc.org/isc/bind9/9.12.2-P2/bind-9.12.2-P2.tar.gz"
  version "9.12.2-P2"
  sha256 "87027826e98bab90ead31f45ce7653cb3116ebe64ab8202a08b6b64531df693e"
  head "https://gitlab.isc.org/isc-projects/bind9.git"

  bottle do
    sha256 "9474bdece754a9f00a805baada5314905ca998520ded0a73a3dc757e3d2e2120" => :mojave
    sha256 "65cb6636f217a5b102f1ef6be2d51f2ac3b83905bf3c762f46219f73fdb962fd" => :high_sierra
    sha256 "e0b6ca1c556cbba3af31d0402d888610637eddf9def93bac2d5c13e27c2193b0" => :sierra
    sha256 "f1647b9ece6cc0ca08891774487415c28a13ed4d9637f1e60924b885ce7da4b2" => :el_capitan
    sha256 "449b6e1c5c781d32fe51c663595f14040bdc33afe0daeb5b15a9be7288c13ab6" => :x86_64_linux
  end

  depends_on "openssl"
  depends_on "json-c" => :optional

  def install
    # Fix "configure: error: xml2-config returns badness"
    if MacOS.version == :sierra || MacOS.version == :el_capitan
      ENV["SDKROOT"] = MacOS.sdk_path
    end

    # enable DNSSEC signature chasing in dig
    ENV["STD_CDEFINES"] = "-DDIG_SIGCHASE=1"

    json = build.with?("json-c") ? "yes" : "no"
    system "./configure", "--prefix=#{prefix}",
                          "--enable-threads",
                          "--enable-ipv6",
                          "--with-openssl=#{Formula["openssl"].opt_prefix}",
                          "--with-libjson=#{json}"

    # From the bind9 README: "Do not use a parallel "make"."
    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
{'fraction_non_alphanumeric': 0.1345496009122007, 'fraction_numerical': 0.14709236031927023, 'mean_word_length': 3.24818401937046, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4068333', 'n_tokens_mistral': 1676, 'n_tokens_neox': 1405, 'n_words': 209}