aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2011-10-02 13:26:42 -0500
committerJack Nagel2011-10-02 13:30:34 -0500
commit9a12bfc1a69c97e59b633da3b21812c44e6e6302 (patch)
treeae62ba350945e99e185be49a15291ee5ed59ae68 /Library
parenteb366a8fd6f25b7a86686ab1ffaf742bb7121189 (diff)
downloadhomebrew-9a12bfc1a69c97e59b633da3b21812c44e6e6302.tar.bz2
New formula: chkrootkit 0.49
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/chkrootkit.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/chkrootkit.rb b/Library/Formula/chkrootkit.rb
new file mode 100644
index 000000000..8738a5676
--- /dev/null
+++ b/Library/Formula/chkrootkit.rb
@@ -0,0 +1,28 @@
+require 'formula'
+
+class Chkrootkit < Formula
+ url 'ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz'
+ homepage 'http://www.chkrootkit.org/'
+ md5 '304d840d52840689e0ab0af56d6d3a18'
+ version '0.49'
+
+ def install
+ chmod 0755, 'Makefile' # Makefile is read-only
+
+ inreplace 'Makefile' do |s|
+ s.remove_make_var! 'STATIC'
+ end
+
+ system "make CC=#{ENV.cc} sense"
+
+ sbin.install ['check_wtmpx', 'chkdirs', 'chklastlog', 'chkproc',
+ 'chkrootkit', 'chkutmp', 'chkwtmp', 'ifpromisc',
+ 'strings-static']
+ doc.install ['README', 'README.chklastlog', 'README.chkwtmp']
+ end
+
+ def test
+ # pipe stdout to cat since chkrootkit -V exits with status 1
+ system "#{sbin}/chkrootkit -V | cat"
+ end
+end