You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.2 KiB
51 lines
1.2 KiB
2 years ago
|
# Copyright 1999-2022 Gentoo Authors
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
2 years ago
|
EAPI=8
|
||
|
|
||
|
# Bump with app-emulation/libguestfs and app-emulation/libguestfs (if any new release there)
|
||
9 years ago
|
|
||
|
CHECKREQS_DISK_USR=500M
|
||
|
CHECKREQS_DISK_BUILD=500M
|
||
|
|
||
|
inherit check-reqs
|
||
|
|
||
|
DESCRIPTION="VM appliance disk image used in libguestfs package"
|
||
3 years ago
|
HOMEPAGE="https://libguestfs.org/"
|
||
|
SRC_URI="https://libguestfs.org/download/binaries/appliance/appliance-${PV}.tar.xz"
|
||
|
S="${WORKDIR}"
|
||
9 years ago
|
|
||
|
LICENSE="GPL-2 LGPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
3 years ago
|
BDEPEND="app-arch/xz-utils"
|
||
2 years ago
|
# Mixing libguestfs versions causes weird problems, bug #501588
|
||
9 years ago
|
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
|
||
2 years ago
|
cd "${ED}"/usr/share/guestfs || Die
|
||
9 years ago
|
unpack ${A}
|
||
2 years ago
|
|
||
9 years ago
|
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
|
||
|
|
||
2 years ago
|
newenvd "${FILESDIR}"/env.file 99${PN}
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
# bug #776790
|
||
|
elog "Please run . ${EROOT}/etc/profile before attempting to use this package!"
|
||
9 years ago
|
}
|