homebrew-core/Formula/chkrootkit.rb

19 lines
630 B
Ruby
Raw Normal View History

class Chkrootkit < Formula
homepage "http://www.chkrootkit.org/"
url "https://mirrors.kernel.org/debian/pool/main/c/chkrootkit/chkrootkit_0.50.orig.tar.gz"
sha256 "9548fc922b0cb8ddf055faff4a4887f140a31c45f2f5e3aa64aad91ecfa56cc7"
def install
system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}",
"STATIC=", "sense", "all"
bin.install Dir[buildpath/"*"].select { |f| File.executable? f }
doc.install %w[README README.chklastlog README.chkwtmp]
end
2013-03-24 05:07:42 +00:00
test do
2014-05-04 19:12:41 +00:00
assert_equal "chkrootkit version #{version}",
shell_output("#{bin}/chkrootkit -V 2>&1", 1).strip
end
end