osquery-1/tools/provision/formula/libaudit.rb

28 lines
864 B
Ruby

require File.expand_path("../Abstract/abstract-osquery-formula", __FILE__)
class Libaudit < AbstractOsqueryFormula
desc "Linux auditing framework"
homepage "https://github.com/Distrotech/libaudit"
license "LGPL-2.1+"
url "https://github.com/Distrotech/libaudit/archive/audit-2.4.2.tar.gz"
sha256 "63020c88b0f37a93438894e67e63ccede23d658277ecc6afb9d40e4043147d3f"
revision 200
bottle do
root_url "https://osquery-packages.s3.amazonaws.com/bottles"
cellar :any_skip_relocation
sha256 "e125c3f570de727bebf14177f29d0e2cd0d89ecd85c78ed4bec3f5a135da29ad" => :x86_64_linux
end
def install
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}",
"--disable-shared",
"--enable-static"
cd "lib" do
system "make"
system "make", "install"
end
end
end