gentoo-ebuilds/app-emulation/libguestfs-appliance/libguestfs-appliance-1.54.0.ebuild
Sam James d285a0e889
app-emulation/libguestfs-appliance: Stabilize 1.54.0 amd64, #953646
Signed-off-by: Sam James <sam@gentoo.org>
2025-06-09 07:58:45 +01:00

50 lines
1.2 KiB
Bash

# 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/guestfs-tools (if any new release there)
CHECKREQS_DISK_USR=500M
CHECKREQS_DISK_BUILD=500M
inherit check-reqs
DESCRIPTION="VM appliance disk image used in libguestfs package"
HOMEPAGE="https://libguestfs.org/"
SRC_URI="https://download.libguestfs.org/binaries/appliance/appliance-${PV}.tar.xz"
S="${WORKDIR}"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
# Precompiled binaries
KEYWORDS="-* amd64"
# Mixing libguestfs versions causes weird problems, bug #501588
RDEPEND="!<app-emulation/libguestfs-${PV}"
src_unpack() {
# We'll unpack the tarball directly into ${D} to speed up install.
# Otherwise we need to duplicate hundreds of data.
:
}
src_install() {
dodir /usr/share/guestfs
cd "${ED}"/usr/share/guestfs || die
unpack ${A}
cd appliance || die
dodoc README*
# Don't rm README.* here, at least README.fixed is needed for libguestfs, see
# https://bugzilla.redhat.com/show_bug.cgi?id=1183780
chmod 755 . || die
chmod 644 * || die
newenvd "${FILESDIR}"/env.file 99${PN}
}
pkg_postinst() {
# bug #776790
elog "Please run . ${EROOT}/etc/profile before attempting to use this package!"
}