2013-10-03 19:00:03 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Lynis < Formula
|
|
|
|
homepage 'http://www.rootkit.nl/projects/lynis.html'
|
2014-06-12 17:03:15 +00:00
|
|
|
url 'http://cisofy.com/files/lynis-1.5.6.tar.gz'
|
|
|
|
sha1 '95aff8b208e8a1e97ef6d07d011e800cfa989f25'
|
2013-10-03 19:00:03 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
inreplace 'lynis' do |s|
|
2014-06-11 04:00:03 +00:00
|
|
|
s.gsub!'tINCLUDE_TARGETS="/usr/local/include/lynis /usr/local/lynis/include /usr/share/lynis/include ./include"',
|
|
|
|
%{tINCLUDE_TARGETS="#{include}"}
|
|
|
|
s.gsub! 'tPLUGIN_TARGETS="/usr/local/lynis/plugins /usr/local/share/lynis/plugins /usr/share/lynis/plugins /etc/lynis/plugins ./plugins"',
|
|
|
|
%{tPLUGIN_TARGETS="#{prefix}/plugins"}
|
|
|
|
s.gsub! 'tDB_TARGETS="/usr/local/share/lynis/db /usr/local/lynis/db /usr/share/lynis/db ./db"',
|
|
|
|
%{tDB_TARGETS="#{prefix}/db"}
|
|
|
|
s.gsub! 'tPROFILE_TARGETS="/usr/local/etc/lynis/default.prf /etc/lynis/default.prf ./default.prf"',
|
|
|
|
%{tPROFILE_TARGETS="#{prefix}/default.prf"}
|
2013-10-03 19:00:03 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
prefix.install "db", "dev", "include", "plugins", "default.prf"
|
|
|
|
bin.install "lynis"
|
|
|
|
man8.install "lynis.8"
|
|
|
|
end
|
|
|
|
end
|