Skip to content

Commit

Permalink
lynis 1.3.9 - a security and system auditing tool
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#23033.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
chriskau authored and adamv committed Feb 14, 2014
1 parent 6cbd5f7 commit 40e00b0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Formula/lynis.rb
@@ -0,0 +1,20 @@
require 'formula'

class Lynis < Formula
homepage 'http://www.rootkit.nl/projects/lynis.html'
url 'http://cisofy.com/files/lynis-1.3.9.tar.gz'
sha1 '83b28aa50f22271c56e74d7020015a949b68dedc'

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

0 comments on commit 40e00b0

Please sign in to comment.