2013-10-03 19:00:03 +00:00
|
|
|
class Lynis < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Security and system auditing tool to harden systems"
|
2015-04-20 13:16:20 +00:00
|
|
|
homepage "https://cisofy.com/lynis/"
|
2015-07-27 10:03:37 +00:00
|
|
|
url "https://cisofy.com/files/lynis-2.1.1.tar.gz"
|
|
|
|
sha256 "d17b3cbbd305c52b9cd0d5141f41954882f398db44f26c10cb45fdaaa46a99d2"
|
2013-10-03 19:00:03 +00:00
|
|
|
|
2015-04-20 15:34:33 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-07-27 10:37:07 +00:00
|
|
|
sha256 "93bbd36e428e726b5471e6263b81238718dd768fc746f3218f71c11775c1e9d6" => :yosemite
|
|
|
|
sha256 "79a494362cd5726d34da7dfe36b7028e294ded054c10c18ff6dd81b1a1bbf86d" => :mavericks
|
|
|
|
sha256 "c45fd90de1946c059a807ec0cdb59c704186335a836b14f1075b80a7ef26203d" => :mountain_lion
|
2015-04-20 15:34:33 +00:00
|
|
|
end
|
|
|
|
|
2013-10-03 19:00:03 +00:00
|
|
|
def install
|
2014-10-15 20:45:15 +00:00
|
|
|
inreplace "lynis" do |s|
|
|
|
|
s.gsub! 'tINCLUDE_TARGETS="/usr/local/include/lynis /usr/local/lynis/include /usr/share/lynis/include ./include"',
|
2015-07-27 10:03:37 +00:00
|
|
|
%(tINCLUDE_TARGETS="#{include}")
|
2014-06-11 04:00:03 +00:00
|
|
|
s.gsub! 'tPLUGIN_TARGETS="/usr/local/lynis/plugins /usr/local/share/lynis/plugins /usr/share/lynis/plugins /etc/lynis/plugins ./plugins"',
|
2015-07-27 10:03:37 +00:00
|
|
|
%(tPLUGIN_TARGETS="#{prefix}/plugins")
|
2014-06-11 04:00:03 +00:00
|
|
|
s.gsub! 'tDB_TARGETS="/usr/local/share/lynis/db /usr/local/lynis/db /usr/share/lynis/db ./db"',
|
2015-07-27 10:03:37 +00:00
|
|
|
%(tDB_TARGETS="#{prefix}/db")
|
2015-04-20 15:17:19 +00:00
|
|
|
s.gsub! 'tPROFILE_TARGETS="/usr/local/etc/lynis/default.prf /etc/lynis/default.prf /usr/local/lynis/default.prf ./default.prf"',
|
2015-07-27 10:03:37 +00:00
|
|
|
%(tPROFILE_TARGETS="#{prefix}/default.prf")
|
2013-10-03 19:00:03 +00:00
|
|
|
end
|
|
|
|
|
2014-10-15 17:27:23 +00:00
|
|
|
prefix.install "db", "include", "plugins", "default.prf"
|
2013-10-03 19:00:03 +00:00
|
|
|
bin.install "lynis"
|
|
|
|
man8.install "lynis.8"
|
|
|
|
end
|
|
|
|
end
|