homebrew-core/Formula/lynis.rb
Chris Kau f3f63bf6d0 lynis 1.4.8
Closes Homebrew/homebrew#27941.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-03-28 14:36:10 -05:00

20 lines
1 KiB
Ruby

require 'formula'
class Lynis < Formula
homepage 'http://www.rootkit.nl/projects/lynis.html'
url 'http://cisofy.com/files/lynis-1.4.8.tar.gz'
sha1 '58c1c1916072fbeadc945f32f6b2a6ec7c900fb8'
def install
inreplace 'lynis' do |s|
s.gsub! 'tINCLUDE_TARGETS="/usr/local/include/lynis /usr/local/lynis/include /usr/share/lynis/include ./include"', 'tINCLUDE_TARGETS="' + (prefix/'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') + '"'
end
prefix.install "db", "dev", "include", "plugins", "default.prf"
bin.install "lynis"
man8.install "lynis.8"
end
end