2011-10-02 18:26:42 +00:00
|
|
|
class Chkrootkit < Formula
|
2015-03-10 15:01:47 +00:00
|
|
|
homepage "http://www.chkrootkit.org/"
|
|
|
|
url "https://mirrors.kernel.org/debian/pool/main/c/chkrootkit/chkrootkit_0.50.orig.tar.gz"
|
|
|
|
sha256 "9548fc922b0cb8ddf055faff4a4887f140a31c45f2f5e3aa64aad91ecfa56cc7"
|
2011-10-02 18:26:42 +00:00
|
|
|
|
|
|
|
def install
|
2015-03-10 15:01:47 +00:00
|
|
|
system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}",
|
|
|
|
"STATIC=", "sense", "all"
|
2011-10-02 18:26:42 +00:00
|
|
|
|
2015-03-10 15:01:47 +00:00
|
|
|
bin.install Dir[buildpath/"*"].select { |f| File.executable? f }
|
|
|
|
doc.install %w[README README.chklastlog README.chkwtmp]
|
2011-10-02 18:26:42 +00:00
|
|
|
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
|
2011-10-02 18:26:42 +00:00
|
|
|
end
|
|
|
|
end
|