<commit_before>class Nrpe < Formula
  desc "Nagios remote plugin executor"
  homepage "https://www.nagios.org/"
  url "https://downloads.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz"
  sha256 "66383b7d367de25ba031d37762d83e2b55de010c573009c6f58270b137131072"
  revision 1

  bottle do
    cellar :any
    revision 1
    sha256 "66602b7dff3b178bc40e463dcd32c9f62d3373fe85c8bf1f4e0f4f0a2f242b8a" => :yosemite
    sha256 "9da1efed0c4792e156388dfafcb679b23a35b358552d76095838deae14de6a86" => :mavericks
    sha256 "f8db970188a4e10c4cb1610dd32cdb1b45093279ce03bc9ce6f4d19a40b813ec" => :mountain_lion
  end

  depends_on "nagios-plugins"
  depends_on "openssl"

  def install
    user  = `id -un`.chomp
    group = `id -gn`.chomp

    (var/"run").mkpath
    inreplace "sample-config/nrpe.cfg.in", "/var/run/nrpe.pid", var/"run/nrpe.pid"

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--libexecdir=#{sbin}",
                          "--sysconfdir=#{etc}",
                          "--with-nrpe-user=#{user}",
                          "--with-nrpe-group=#{group}",
                          "--with-nagios-user=#{user}",
                          "--with-nagios-group=#{group}",
                          "--with-ssl=#{Formula["openssl"].opt_prefix}",
                          # Set both or it still looks for /usr/lib
                          "--with-ssl-lib=#{Formula["openssl"].opt_lib}",
                          "--enable-ssl",
                          "--enable-command-args"
    system "make", "all"
    system "make", "install"
    system "make", "install-daemon-config"<commit_msg>nrpe: fix nrpe.cfg paths to nagios-plugins<commit_after>class Nrpe < Formula
  desc "Nagios remote plugin executor"
  homepage "https://www.nagios.org/"
  url "https://downloads.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz"
  sha256 "66383b7d367de25ba031d37762d83e2b55de010c573009c6f58270b137131072"
  revision 1

  bottle do
    cellar :any
    revision 1
    sha256 "66602b7dff3b178bc40e463dcd32c9f62d3373fe85c8bf1f4e0f4f0a2f242b8a" => :yosemite
    sha256 "9da1efed0c4792e156388dfafcb679b23a35b358552d76095838deae14de6a86" => :mavericks
    sha256 "f8db970188a4e10c4cb1610dd32cdb1b45093279ce03bc9ce6f4d19a40b813ec" => :mountain_lion
  end

  depends_on "nagios-plugins"
  depends_on "openssl"

  def install
    user  = `id -un`.chomp
    group = `id -gn`.chomp

    (var/"run").mkpath
    inreplace "sample-config/nrpe.cfg.in", "/var/run/nrpe.pid", var/"run/nrpe.pid"

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--libexecdir=#{HOMEBREW_PREFIX}/sbin",
                          "--sysconfdir=#{etc}",
                          "--with-nrpe-user=#{user}",
                          "--with-nrpe-group=#{group}",
                          "--with-nagios-user=#{user}",
                          "--with-nagios-group=#{group}",
                          "--with-ssl=#{Formula["openssl"].opt_prefix}",
                          # Set both or it still looks for /usr/lib
                          "--with-ssl-lib=#{Formula["openssl"].opt_lib}",
                          "--enable-ssl",
                          "--enable-command-args"

    inreplace "src/Makefile" do |s|
      s.gsub! "$(LIBEXECDIR)", "$(SBINDIR)"
    end

    system "make", "all"
    system "make", "install"
    system "make", "install-daemon-config"
{'fraction_non_alphanumeric': 0.14095669402773847, 'fraction_numerical': 0.10359467874327767, 'mean_word_length': 2.0386930352536545, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, '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': '5288551', 'n_tokens_mistral': 1457, 'n_tokens_neox': 1265, 'n_words': 172}