2021-05-04 15:53:38 +08:00
|
|
|
require_relative "../require/macfuse"
|
|
|
|
|
|
|
|
|
|
class SecurefsMac < Formula
|
|
|
|
|
desc "Filesystem with transparent authenticated encryption"
|
|
|
|
|
homepage "https://github.com/netheril96/securefs"
|
2025-10-01 18:39:35 +00:00
|
|
|
url "https://github.com/netheril96/securefs/archive/refs/tags/v2.0.0.tar.gz"
|
|
|
|
|
sha256 "d7fac7adc70c09473173aeadee5b7041d7e63fbf392ef40bdd77888590bb12a2"
|
2021-05-04 15:53:38 +08:00
|
|
|
license "MIT"
|
2025-02-11 19:05:20 +08:00
|
|
|
head "https://github.com/netheril96/securefs.git", branch: "master"
|
|
|
|
|
|
|
|
|
|
livecheck do
|
|
|
|
|
url :stable
|
|
|
|
|
strategy :github_latest
|
|
|
|
|
end
|
2021-05-04 15:53:38 +08:00
|
|
|
|
|
|
|
|
bottle do
|
2025-02-11 11:33:39 +00:00
|
|
|
root_url "https://ghcr.io/v2/gromgit/fuse"
|
2025-06-11 05:11:47 +00:00
|
|
|
sha256 cellar: :any, arm64_sonoma: "40399d847dfb764c1ae953a74384e888d8570568a08296e4547a9abfc4c503f0"
|
|
|
|
|
sha256 cellar: :any, ventura: "68e50e832267f11d6f5ba2d9507aedf2b961e91b07afd5c3616ae4b90700a7ba"
|
2021-05-04 15:53:38 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
depends_on "cmake" => :build
|
2025-02-11 19:05:20 +08:00
|
|
|
depends_on "pkgconf" => :build
|
|
|
|
|
depends_on "tclap" => :build
|
|
|
|
|
depends_on "abseil"
|
|
|
|
|
depends_on "argon2"
|
|
|
|
|
depends_on "cryptopp"
|
|
|
|
|
depends_on "fruit"
|
|
|
|
|
depends_on "jsoncpp"
|
2021-05-04 15:53:38 +08:00
|
|
|
depends_on MacfuseRequirement
|
|
|
|
|
depends_on :macos
|
2025-02-11 19:05:20 +08:00
|
|
|
depends_on "protobuf"
|
|
|
|
|
depends_on "sqlite"
|
|
|
|
|
depends_on "uni-algo"
|
|
|
|
|
depends_on "utf8proc"
|
2021-05-04 15:53:38 +08:00
|
|
|
|
|
|
|
|
def install
|
2021-07-04 00:27:00 +08:00
|
|
|
setup_fuse
|
2025-02-11 19:05:20 +08:00
|
|
|
args = %w[
|
|
|
|
|
-DSECUREFS_ENABLE_INTEGRATION_TEST=OFF
|
|
|
|
|
-DSECUREFS_ENABLE_UNIT_TEST=OFF
|
|
|
|
|
-DSECUREFS_USE_VCPKG=OFF
|
|
|
|
|
]
|
|
|
|
|
system "cmake", "-S", ".", "-B", "build", *std_cmake_args, *args
|
|
|
|
|
system "cmake", "--build", "build"
|
|
|
|
|
system "cmake", "--install", "build"
|
2021-05-04 15:53:38 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
test do
|
2025-02-11 19:05:20 +08:00
|
|
|
system bin/"securefs", "version" # The sandbox prevents a more thorough test
|
2021-05-04 15:53:38 +08:00
|
|
|
end
|
|
|
|
|
end
|