summaryrefslogtreecommitdiff
path: root/app-emulation/guestfs-tools
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2025-02-21 00:15:53 +0000
committerV3n3RiX <venerix@koprulu.sector>2025-02-21 00:15:53 +0000
commitdb653baf275126269bb89ea0d2bdb8e50497a94c (patch)
tree9d1ee94cfa7312384acd366d3dd8f629660b3f18 /app-emulation/guestfs-tools
parent1534d50aaf24272ec425fa439389ef7e1f7bf174 (diff)
gentoo auto-resync : 21:02:2025 - 00:15:53
Diffstat (limited to 'app-emulation/guestfs-tools')
-rw-r--r--app-emulation/guestfs-tools/Manifest6
-rw-r--r--app-emulation/guestfs-tools/guestfs-tools-1.52.3.ebuild154
-rw-r--r--app-emulation/guestfs-tools/guestfs-tools-1.53.7.ebuild154
-rw-r--r--app-emulation/guestfs-tools/metadata.xml16
4 files changed, 328 insertions, 2 deletions
diff --git a/app-emulation/guestfs-tools/Manifest b/app-emulation/guestfs-tools/Manifest
index 529adb5530c2..77266168a235 100644
--- a/app-emulation/guestfs-tools/Manifest
+++ b/app-emulation/guestfs-tools/Manifest
@@ -1,3 +1,7 @@
DIST guestfs-tools-1.48.2.tar.gz 12691067 BLAKE2B 305f281c19975f160c435b995d71ef2e18d09fc95f31e92efe8f79d811fc0a7efab27d14f766d5f6ee477fd43977167a3aabe5cc40498f125f925507fd2574d5 SHA512 e11cd5a38a1681e8b2fd56419d38ca0aaab659cb59d409b3572cadcd04fd4da3078fa33e7f21c99d11854ad08797ae24a8d71c041b1b7769fc36c1391b6eb162
+DIST guestfs-tools-1.52.3.tar.gz 16237597 BLAKE2B f6ef8a63f3b9dfee6c7ebb954ae9d3602dd3d96a60f85fc1d6a5304725ebca488937802cff337f18bd4e86e2598ad092be2fab2a59f9580d0849c65fef09d3c1 SHA512 f7a965500a7d1b355d447bd4710c9e38e8f7443eef721fbff9504d862bbf4740b8e5f75134fcc0ca50817872799168a46d2ddcca82c36be1d891d3ed3c47c79b
+DIST guestfs-tools-1.53.7.tar.gz 16233906 BLAKE2B 2a81258558609e74dc9ca47cc98cede84e3db119c807ba835355c2056dc57865cdf7c969441bdc0efe5cb4133d3a4fb3ea413fca439ab20304b9f1375b025336 SHA512 a80484d3811e4e226ad1c81694b304b0d3a596d634bd61525ee5c5aeb5f360a911cef52cfba81f819a83b0615f6731ea8395c58d06d9a4b052afe6b10b0f2535
EBUILD guestfs-tools-1.48.2.ebuild 4170 BLAKE2B ea214d41333e75db20729b4e4c8eb7f81e9bffb718e76770a78913119bbf81c1f3d2b1498355de0b1be4fdbdb51216270391b6a84a1293d76e5744380373bd5a SHA512 3387f28701dc05adace59dc1536a999952ad0a924cb1059d910faf21eafa8984ec116064c8113e1976df9f9fff19fd8b1caf7b08aa1ab273539aa48eb5c4608a
-MISC metadata.xml 168 BLAKE2B 2e0e000b4c3b6ca04c12903fdbe278415c05a822623c52e9aa95cbbf3d50bcb1246b7edbda7d2f6b559af8950c6374e6e0a69b76319964cfe686bf50b0604a57 SHA512 4dcf45d1809e8390a2d8155c8ebfe0dd610203e392aeab0ccd8a10f42cc8532a4925eff32b35e7a6c35598a4efd288229034ec0732299dbd8cfa0acff705fed3
+EBUILD guestfs-tools-1.52.3.ebuild 3675 BLAKE2B f819b6f5c81fd88ad25ef33e9222f22233009f1275449137a4beacbb871e2d32ddf6f0adcfa2cfbd563af5ef504f2edc47ae37b83030ecdbe384f815c215f1f1 SHA512 58f3b70d369821d7e7e43c5656d30a0406a2c27be9caf615250bb48e2848968299d15b943329e58d902b0dae98b1ff2b843482c45411fc8ee25abf7be3c29256
+EBUILD guestfs-tools-1.53.7.ebuild 3674 BLAKE2B 4af472605417311f7045f5741d77105a5037c9693789f614f631da85612df717dedd2784e36433dfa5a9aed4f9d9a4125eef00f7b892ac293c5c92634088da6d SHA512 9d55f8ae7cf03af9929c082576e14ba64064d5531236398995aa6b057a1a30da3b0d508e9b86e5e3b6309e074e84f15fa370a2e6320eaba42e7880cd071d9383
+MISC metadata.xml 658 BLAKE2B bcf4fdc8997be42d878cb6a6877707822c1936b9ee7789de0578ba1ff4e9bda1224e7727062b74d810d2edf38d9c908173730b6b0c660ec96bdd0b96c65e8762 SHA512 277bfe00dc8cf158525c44be5bb6cb63e5aa33cd402b2f5063c3751cac5d8a64afae79dd4e9760ab1ff62970e66d1b47774a4723039cb2dcd146039a77ed0051
diff --git a/app-emulation/guestfs-tools/guestfs-tools-1.52.3.ebuild b/app-emulation/guestfs-tools/guestfs-tools-1.52.3.ebuild
new file mode 100644
index 000000000000..2af3eddeb81d
--- /dev/null
+++ b/app-emulation/guestfs-tools/guestfs-tools-1.52.3.ebuild
@@ -0,0 +1,154 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Bump with app-emulation/libguestfs and app-emulation/libguestfs-appliance (if any new release there)
+
+inherit autotools bash-completion-r1 perl-functions toolchain-funcs
+
+MY_PV_1="$(ver_cut 1-2)"
+MY_PV_2="$(ver_cut 2)"
+[[ $(( ${MY_PV_2} % 2 )) -eq 0 ]] && SD="stable" || SD="development"
+
+DESCRIPTION="Tools for accessing, inspecting, and modifying virtual machine (VM) disk images"
+HOMEPAGE="https://libguestfs.org/"
+SRC_URI="https://download.libguestfs.org/${PN}/${MY_PV_1}-${SD}/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0/${MY_PV_1}"
+if [[ ${SD} == "stable" ]] ; then
+ KEYWORDS="~amd64"
+fi
+IUSE="doc libvirt +ocaml +perl test"
+RESTRICT="!test? ( test )"
+
+COMMON_DEPEND_DEFAULT="
+ app-arch/xz-utils
+ dev-libs/libpcre2:=
+ dev-libs/libxml2
+ sys-libs/libxcrypt:=
+ sys-libs/ncurses:=
+"
+COMMON_DEPEND_EXPLICIT="
+ >=app-emulation/libguestfs-1.49.8:=[ocaml,perl?,libvirt=]
+ dev-libs/jansson:=
+ sys-libs/libosinfo
+ || (
+ dev-libs/libisoburn
+ app-cdr/cdrtools
+ )
+"
+COMMON_DEPEND_IMPLICIT="
+ dev-db/sqlite
+ sys-apps/hwdata
+"
+COMMON_DEPEND="
+ ${COMMON_DEPEND_DEFAULT}
+ ${COMMON_DEPEND_EXPLICIT}
+ ${COMMON_DEPEND_IMPLICIT}
+ libvirt? ( app-emulation/libvirt[qemu] )
+ perl? (
+ app-misc/hivex
+ virtual/perl-Getopt-Long
+ )
+"
+
+# Some OCaml is always required
+# bug #729674
+DEPEND="
+ ${COMMON_DEPEND}
+ dev-lang/ocaml[ocamlopt]
+ dev-ml/findlib[ocamlopt]
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ app-emulation/libguestfs-appliance
+"
+BDEPEND="
+ sys-devel/bison
+ sys-devel/flex
+ sys-devel/gettext
+ virtual/pkgconfig
+ doc? ( app-text/po4a )
+ ocaml? (
+ dev-ml/ocaml-gettext
+ dev-ml/ocaml-gettext-stub
+ )
+ perl? (
+ dev-perl/Module-Build
+ virtual/perl-ExtUtils-CBuilder
+ virtual/perl-Pod-Simple
+ )
+ test? ( ocaml? ( dev-ml/ounit2[ocamlopt] ) )
+"
+
+src_prepare() {
+ cat <<EOF > "${S}/m4/guestfs-bash-completion.m4" || die
+dnl Unconditionally install Bash completion files
+AC_MSG_CHECKING([for bash-completions directory])
+AC_SUBST([BASH_COMPLETIONS_DIR],[$(get_bashcompdir)])
+AC_MSG_RESULT([\$BASH_COMPLETIONS_DIR])
+AM_CONDITIONAL([HAVE_BASH_COMPLETION],[/bin/true])
+EOF
+
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # Bug #794877
+ tc-export AR
+
+ # m4/guestfs-progs.m4: (f)lex and bison for virt-builder (required).
+ # Bug #915339
+ unset LEX YACC
+
+ local myconf=(
+ $(usex doc '' PO4A=no)
+ $(use_enable ocaml)
+ $(use_enable perl)
+ $(use_with libvirt)
+ )
+
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ emake INSTALLDIRS=vendor DESTDIR="${D}" install "LINGUAS=""${LINGUAS}"""
+
+ find "${ED}" -name '*.la' -delete || die
+
+ use perl && perl_delete_localpod
+}
+
+src_test() {
+ # Missing appliance support? libguestfs (virt-inspector --format=raw -a ${IMAGE}) returns
+ # libguestfs: error: inspect_get_build_id: dispatch_incoming_message: unknown procedure number 513.
+ # set LIBGUESTFS_PATH to point to the matching libguestfs appliance directory
+ local -x SKIP_TEST_VIRT_INSPECTOR_LVM_ON_LUKS_SH=1
+ local -x SKIP_TEST_VIRT_INSPECTOR_LUKS_ON_LVM_SH=1
+ local -x SKIP_TEST_VIRT_INSPECTOR_SH=1
+ local -x SKIP_TEST_VIRT_DRIVERS_LINUX_SH=1
+ local -x SKIP_TEST_VIRT_DRIVERS_WINDOWS_SH=1
+ # Misssing appliance support? libguestfs returns
+ # virt-make-fs: file command failed
+ local -x SKIP_TEST_VIRT_MAKE_FS_SH=1
+ # Socket pathname too long for libvirt backend
+ local -x LIBGUESTFS_BACKEND=direct
+ # Increase vebosity
+ local -x LIBGUESTFS_DEBUG=1
+ local -x LIBGUESTFS_TRACE=1
+
+ default
+}
+
+pkg_postinst() {
+ if ! use ocaml ; then
+ einfo "OCaml based tools and bindings (virt-resize, virt-sparsify, virt-sysprep, ...) NOT installed"
+ fi
+
+ if ! use perl ; then
+ einfo "Perl based tools NOT built"
+ fi
+}
diff --git a/app-emulation/guestfs-tools/guestfs-tools-1.53.7.ebuild b/app-emulation/guestfs-tools/guestfs-tools-1.53.7.ebuild
new file mode 100644
index 000000000000..4280a3b31119
--- /dev/null
+++ b/app-emulation/guestfs-tools/guestfs-tools-1.53.7.ebuild
@@ -0,0 +1,154 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Bump with app-emulation/libguestfs and app-emulation/libguestfs-appliance (if any new release there)
+
+inherit autotools bash-completion-r1 perl-functions toolchain-funcs
+
+MY_PV_1="$(ver_cut 1-2)"
+MY_PV_2="$(ver_cut 2)"
+[[ $(( ${MY_PV_2} % 2 )) -eq 0 ]] && SD="stable" || SD="development"
+
+DESCRIPTION="Tools for accessing, inspecting, and modifying virtual machine (VM) disk images"
+HOMEPAGE="https://libguestfs.org/"
+SRC_URI="https://download.libguestfs.org/${PN}/${MY_PV_1}-${SD}/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0/${MY_PV_1}"
+if [[ ${SD} == "stable" ]] ; then
+ KEYWORDS="~amd64"
+fi
+IUSE="doc libvirt +ocaml +perl test"
+RESTRICT="!test? ( test )"
+
+COMMON_DEPEND_DEFAULT="
+ app-arch/xz-utils
+ dev-libs/libpcre2:=
+ dev-libs/libxml2
+ sys-libs/libxcrypt:=
+ sys-libs/ncurses:=
+"
+COMMON_DEPEND_EXPLICIT="
+ >=app-emulation/libguestfs-1.49.8:=[ocaml,perl?,libvirt=]
+ dev-libs/json-c:=
+ sys-libs/libosinfo
+ || (
+ dev-libs/libisoburn
+ app-cdr/cdrtools
+ )
+"
+COMMON_DEPEND_IMPLICIT="
+ dev-db/sqlite
+ sys-apps/hwdata
+"
+COMMON_DEPEND="
+ ${COMMON_DEPEND_DEFAULT}
+ ${COMMON_DEPEND_EXPLICIT}
+ ${COMMON_DEPEND_IMPLICIT}
+ libvirt? ( app-emulation/libvirt[qemu] )
+ perl? (
+ app-misc/hivex
+ virtual/perl-Getopt-Long
+ )
+"
+
+# Some OCaml is always required
+# bug #729674
+DEPEND="
+ ${COMMON_DEPEND}
+ dev-lang/ocaml[ocamlopt]
+ dev-ml/findlib[ocamlopt]
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ app-emulation/libguestfs-appliance
+"
+BDEPEND="
+ sys-devel/bison
+ sys-devel/flex
+ sys-devel/gettext
+ virtual/pkgconfig
+ doc? ( app-text/po4a )
+ ocaml? (
+ dev-ml/ocaml-gettext
+ dev-ml/ocaml-gettext-stub
+ )
+ perl? (
+ dev-perl/Module-Build
+ virtual/perl-ExtUtils-CBuilder
+ virtual/perl-Pod-Simple
+ )
+ test? ( ocaml? ( dev-ml/ounit2[ocamlopt] ) )
+"
+
+src_prepare() {
+ cat <<EOF > "${S}/m4/guestfs-bash-completion.m4" || die
+dnl Unconditionally install Bash completion files
+AC_MSG_CHECKING([for bash-completions directory])
+AC_SUBST([BASH_COMPLETIONS_DIR],[$(get_bashcompdir)])
+AC_MSG_RESULT([\$BASH_COMPLETIONS_DIR])
+AM_CONDITIONAL([HAVE_BASH_COMPLETION],[/bin/true])
+EOF
+
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # Bug #794877
+ tc-export AR
+
+ # m4/guestfs-progs.m4: (f)lex and bison for virt-builder (required).
+ # Bug #915339
+ unset LEX YACC
+
+ local myconf=(
+ $(usex doc '' PO4A=no)
+ $(use_enable ocaml)
+ $(use_enable perl)
+ $(use_with libvirt)
+ )
+
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ emake INSTALLDIRS=vendor DESTDIR="${D}" install "LINGUAS=""${LINGUAS}"""
+
+ find "${ED}" -name '*.la' -delete || die
+
+ use perl && perl_delete_localpod
+}
+
+src_test() {
+ # Missing appliance support? libguestfs (virt-inspector --format=raw -a ${IMAGE}) returns
+ # libguestfs: error: inspect_get_build_id: dispatch_incoming_message: unknown procedure number 513.
+ # set LIBGUESTFS_PATH to point to the matching libguestfs appliance directory
+ local -x SKIP_TEST_VIRT_INSPECTOR_LVM_ON_LUKS_SH=1
+ local -x SKIP_TEST_VIRT_INSPECTOR_LUKS_ON_LVM_SH=1
+ local -x SKIP_TEST_VIRT_INSPECTOR_SH=1
+ local -x SKIP_TEST_VIRT_DRIVERS_LINUX_SH=1
+ local -x SKIP_TEST_VIRT_DRIVERS_WINDOWS_SH=1
+ # Misssing appliance support? libguestfs returns
+ # virt-make-fs: file command failed
+ local -x SKIP_TEST_VIRT_MAKE_FS_SH=1
+ # Socket pathname too long for libvirt backend
+ local -x LIBGUESTFS_BACKEND=direct
+ # Increase vebosity
+ local -x LIBGUESTFS_DEBUG=1
+ local -x LIBGUESTFS_TRACE=1
+
+ default
+}
+
+pkg_postinst() {
+ if ! use ocaml ; then
+ einfo "OCaml based tools and bindings (virt-resize, virt-sparsify, virt-sysprep, ...) NOT installed"
+ fi
+
+ if ! use perl ; then
+ einfo "Perl based tools NOT built"
+ fi
+}
diff --git a/app-emulation/guestfs-tools/metadata.xml b/app-emulation/guestfs-tools/metadata.xml
index 115e9d64a669..90ef73470590 100644
--- a/app-emulation/guestfs-tools/metadata.xml
+++ b/app-emulation/guestfs-tools/metadata.xml
@@ -1,5 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!-- maintainer-needed -->
+ <maintainer type="person" proxied="yes">
+ <email>salah.coronya@gmail.com</email>
+ <name>Christopher Byrne</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>virtualization@gentoo.org</email>
+ <name>Gentoo Virtualization Project</name>
+ </maintainer>
+ <use>
+ <flag name="libvirt">Use <pkg>app-emulation/libvirt</pkg> to manipulate VMs</flag>
+ </use>
</pkgmetadata>