moved from unitas-overlay: app-portage/virtual-appliance

This commit is contained in:
Jörg Deckert 2020-08-30 15:03:53 +02:00
parent aa0bc1cdc8
commit cc41fea4e5
4 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DIST open-vmdk-20141215.zip 30087 BLAKE2B 1b1f6542aa4e4b73a3b0780ed54401fa7bc8a8c2e71fb98750349e47e2f1cc4d85e54a5dc37c21fb8dcf00edcb215bf7adbb24f549fe9c15a7f2f8d72c3d0419 SHA512 b04223fbc6084f2fc7b2c6cde878f3eb3533d84bd966a86f0e236b9b314ee838e03187cd3b22e51d64a98f7fe4f702e03b1e783573fc77e87ac55d0b5ba48487
EBUILD open-vmdk-20141215-r1.ebuild 804 BLAKE2B 3068585eec7aca89fea84ee0ff9923dad881c23485bffcdd08030d016ec5bc13445b4f511d1b5bce397efe8cc46b44a5bba5cf2ff2e180b5fc3a32b574461201 SHA512 86daae6f5297f8a8ee8cedbbe4ba777d6995555c033cc9f5062afa6122e9967551b28d6b76dfcfef96459c2300f7d0b155b57bed6d4b0b51d8beb148d94bfeb4

View File

@ -0,0 +1,36 @@
# $Header: $
EAPI="6"
COMMIT="82eb7268e78cc32907573b713569e1331c571ce5"
PYTHON_COMPAT=( python3_{4,5,6,7,8} )
inherit python-r1
DESCRIPTION="Convert VMware .vmdk images, build .ovf and .ova"
HOMEPAGE="https://github.com/vmware/open-vmdk"
SRC_URI="https://github.com/vmware/open-vmdk/archive/${COMMIT}.zip -> ${P}.zip"
KEYWORDS="amd64 x86"
LICENSE="Apache-2.0"
SLOT="0"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
app-misc/jq"
DEPEND=${RDEPEND}
S=${WORKDIR}/${PN}-${COMMIT}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
newbin ovf/mkovf.py mkovf || die "newbin failed"
python_replicate_script "${ED}"/usr/bin/mkovf || die "python_replicate_script failed"
insinto /usr/share/${PN}
doins ova/template*
}

View File

@ -0,0 +1 @@
EBUILD virtual-appliance-2.0-r20200215.ebuild 982 BLAKE2B 8039b112b7b16f6be91aa9f8aa730d633422ea931f128153bf7a6a9697b60f9fec3e6e6c8a900875a0fb6800bcba63922cc300213b8661e55524969009ba2b04 SHA512 09043ec38588e9ae0e625965256900b2e1bb3353378cfe7921f09744f6ce1a7db7aa829d88a4cfd26aab2d8861631cd527b738617d6b3be4bcf54302b6896d3f

View File

@ -0,0 +1,43 @@
# Copyright Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=6
EGIT_REPO_URI="https://dev.unitas-network.de/r/VA/virtual-appliance.git"
EGIT_COMMIT="${PVR}"
inherit eutils linux-info toolchain-funcs git-r3
DESCRIPTION="Programatically (re)create Gentoo Virtual Appliances"
HOMEPAGE="https://bitbucket.org/marduk/virtual-appliance/wiki/Home"
LICENSE="unknown"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="app-emulation/qemu
app-emulation/open-vmdk
sys-block/parted"
RDEPEND="${DEPEND}"
pkg_setup() {
CONFIG_CHECK="BLK_DEV_NBD"
linux-info_pkg_setup
}
src_compile() {
einfo "Nothing to compile"
}
src_install() {
dodir /opt/${PN}/appliances
cp -r appliances ${D}/opt/${PN}/appliances-examples
cp -r configs ${D}/opt/${PN}/configs
cp -r scripts ${D}/opt/${PN}/scripts
cp -r Makefile ${D}/opt/${PN}/Makefile
echo "CONFIG_PROTECT=\"/opt/${PN}/configs\"" > "${T}"/99${PN}
doenvd "${T}"/99${PN}
}