diff --git a/Formula/guestfs-tools.rb b/Formula/guestfs-tools.rb new file mode 100644 index 0000000..1fe88ff --- /dev/null +++ b/Formula/guestfs-tools.rb @@ -0,0 +1,34 @@ +# Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + +class GuestfsTools < Formula + desc "Set of tools for accessing and modifying virtual machine (VM) disk images" + homepage "https://libguestfs.org/" + url "https://github.com/libguestfs/guestfs-tools.git", revision: "daf2b71e0ef18a04928f82688278673ad57d4c4b" + version "1.53.2" + license "GPL-2.0-or-later" + + depends_on "automake" => :build + depends_on "autoconf" => :build + depends_on "libtool" => :build + depends_on "pkg-config" => :build + depends_on "coreutils" => :build + depends_on "gnu-getopt" => :build + depends_on "bison" => :build + depends_on "gpg2" + depends_on "libosinfo" + depends_on "quic/quic/libguestfs" + + def install + system "autoreconf", "-i" + system "./configure", *std_configure_args + system "make", "install" + end + + def caveats + <<~EOS + To use virt-builder you need to add the following to your profile: + export VIRT_BUILDER_DIRS="#{HOMEBREW_PREFIX}/etc" + EOS + end +end