aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/logcheck.rb
blob: 9fe63dabca79f44b04be73b40e98572bad6abdf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class Logcheck < Formula
  homepage 'http://logcheck.alioth.debian.org/'
  url 'http://ftp.de.debian.org/debian/pool/main/l/logcheck/logcheck_1.3.16.tar.xz'
  sha1 '27892a6abf3822d285efbb26f935d80762134679'

  def install
    system "make", "install",
                   "--always-make",
                   "DESTDIR=#{prefix}",
                   "SBINDIR=sbin",
                   "BINDIR=bin"
  end

  test do
    system "#{sbin}/logtail", "-f", "#{HOMEBREW_REPOSITORY}/README.md"
  end
end