38 lines
1.2 KiB
Ruby
38 lines
1.2 KiB
Ruby
class FuseOverlayfs < Formula
|
|
desc "FUSE implementation for overlayfs"
|
|
homepage "https://github.com/containers/fuse-overlayfs"
|
|
url "https://github.com/containers/fuse-overlayfs/archive/refs/tags/v1.7.1.tar.gz"
|
|
sha256 "fe2c076aed7b8669e7970301a99c0b197759b611035d8199de4c0add7d2fb2b4"
|
|
license "GPL-3.0-or-later"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "2e7c2712c1ee3eba77c2ad8f3c6eee59c2500a20ef259268affaf6283a98d4d8"
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "libfuse"
|
|
depends_on :linux
|
|
|
|
def install
|
|
system "autoreconf", "-fis"
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
mkdir "lowerdir/a"
|
|
mkdir "lowerdir/b"
|
|
mkdir "up"
|
|
mkdir "workdir"
|
|
mkdir "merged"
|
|
test_cmd = "fuse-overlayfs -o lowerdir=lowerdir/a:lowerdir/b,upperdir=up,workdir=workdir merged 2>&1"
|
|
output = shell_output(test_cmd, 1)
|
|
assert_match "fuse: device not found, try 'modprobe fuse' first", output
|
|
assert_match "fuse-overlayfs: cannot mount: No such file or directory", output
|
|
end
|
|
end
|