mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 18:33:54 +00:00
34 lines
997 B
Ruby
34 lines
997 B
Ruby
require File.expand_path("../Abstract/abstract-osquery-formula", __FILE__)
|
|
|
|
class Rocksdb < AbstractOsqueryFormula
|
|
desc "Persistent key-value store for fast storage environments"
|
|
homepage "http://rocksdb.org"
|
|
url "https://github.com/facebook/rocksdb/archive/v4.9.tar.gz"
|
|
sha256 "7c96c7e7facc11c15f57c608a3b256af79283accb5988d7b2f4f810e29c68c0b"
|
|
|
|
bottle do
|
|
root_url "https://osquery-packages.s3.amazonaws.com/bottles"
|
|
cellar :any_skip_relocation
|
|
sha256 "a9111aa79915afe327106bfd824185e5f85230b46c2972b8b2d8500131ab8c6c" => :el_capitan
|
|
sha256 "1ca1a32b3709b6c4a0890a929d0a3aa327ddc364ecc1d2dc076a85114272c9db" => :x86_64_linux
|
|
end
|
|
|
|
needs :cxx11
|
|
depends_on "snappy"
|
|
depends_on "lz4"
|
|
|
|
fails_with :gcc
|
|
|
|
def install
|
|
ENV.cxx11
|
|
|
|
ENV["PORTABLE"] = "1"
|
|
ENV["LIBNAME"] = "librocksdb_lite"
|
|
ENV.append_to_cflags "-DROCKSDB_LITE=1"
|
|
|
|
system "make", "clean"
|
|
system "make", "static_lib"
|
|
system "make", "install", "INSTALL_PATH=#{prefix}"
|
|
end
|
|
end
|