app-emulation/virt-firmware: Sync with Gentoo

It's from Gentoo commit dd29120b58f8166078af9b1e05af7576fec30d58.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2026-03-02 07:23:43 +00:00 committed by Krzesimir Nowak
parent abe10200cc
commit 69c075efb3
3 changed files with 112 additions and 0 deletions

View File

@ -1,3 +1,5 @@
DIST virt_firmware-24.11.tar.gz 115385 BLAKE2B 2edfe718fd60dcd8a13b143f9fcf5f6beb604737ef4855cb0f16376e625f5bf2965bb08b7ddd037a6b8b6420c928abceefe1034135ab66763695fa8c359786b5 SHA512 0c6b4d34d518835b4489404c784b263cd6ac8348834ba654d27ae3741d3d229ea5f6036870399390fa4fa33e01c8113d64faba0c6068e4b2fb5bbdd9429bf72f
DIST virt_firmware-25.10.tar.gz 137685 BLAKE2B d1ab74eae907048549e2129aa256597752c5219110606bd623e0e6f0b90f88dd38226d8b7a992fe05ef49ab8c4ddf3a917184051715ebd6224cdbda4303754a5 SHA512 2fdf609f0ba335d6064cb595c5e4b465b0a148f258f87292f0b82d1aa653f5bfd1f9b851d36f1c46a94fb8be36d6cd6c5c3f5d633e86d34b8f6159186f872908
DIST virt_firmware-25.12.tar.gz 143352 BLAKE2B f456a444e529ed7abf9fbba4491b56b1b1f76bf9c9d76c3a82e1c3a716b88c952bd494330680a4b21576a792a516e69b74203126dc4bac688e083185f1589924 SHA512 faa2f8abd0f8f633f2c620a2b7fd6ff91809e2a546b01088154e48d5151426f5b7b6134de0325664028419fe50376214b575f9da25095d2522edb814024ff8dc
DIST virt_firmware-25.4.1.tar.gz 120061 BLAKE2B ef22266944cae225cf817c9b67a7aae5ee95908be419b870f451f6eba391998be082b1cf8f2dad62ed84551323cb56854b785a93d0c0ff83340fdb9a5f571aeb SHA512 2f82299415a0bf5dd8874764fe7d71cfe9a12e489657237f6a889288294e69fed9076219ae91a2d60084ae1ffac6bc4f3e2760999e8030aad045cb59ea152367
DIST virt_firmware-26.2.tar.gz 143457 BLAKE2B fd0b977539af0cde4059e67e86ddf97c6dcffc3f7b1cf5975d181dd51b698334c8b22b2c6a951da2e39327a0dd43b44d03a05d0ff56be6defb4a48f872ac4e80 SHA512 6e7fa94009da095e15880b6be850b130ea3097394572c01fe0404b6d4bc11117b9ae730ca43408cb02b5ae9dc2671ef5635520dd2c8776bb2b6b68c8246d06c7

View File

@ -0,0 +1,55 @@
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 optfeature pypi systemd
DESCRIPTION="Tools for ovmf/armvirt firmware volumes"
HOMEPAGE="
https://gitlab.com/kraxel/virt-firmware
https://pypi.org/project/virt-firmware/
"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
RDEPEND="
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/pefile[${PYTHON_USEDEP}]
"
# Need systemd-detect-virt
BDEPEND="
test? (
sys-apps/systemd
)
"
distutils_enable_tests unittest
python_test() {
eunittest tests
}
python_install_all() {
distutils-r1_python_install_all
doman man/*.1
doinitd "${FILESDIR}/kernel-bootcfg-boot-successful"
systemd_dounit systemd/kernel-bootcfg-boot-successful.service
# Use our own provided by sys-kernel/installkernel[efistub,systemd]
#exeinto /usr/lib/kernel/install.d
#doexe systemd/99-uki-uefi-setup.install
}
pkg_postinst() {
optfeature "automatically updating UEFI configuration on each kernel installation or removal" \
"sys-kernel/installkernel[systemd,efistub]"
}

View File

@ -0,0 +1,55 @@
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 optfeature pypi systemd
DESCRIPTION="Tools for ovmf/armvirt firmware volumes"
HOMEPAGE="
https://gitlab.com/kraxel/virt-firmware
https://pypi.org/project/virt-firmware/
"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
RDEPEND="
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/pefile[${PYTHON_USEDEP}]
"
# Need systemd-detect-virt
BDEPEND="
test? (
sys-apps/systemd
)
"
distutils_enable_tests unittest
python_test() {
eunittest tests
}
python_install_all() {
distutils-r1_python_install_all
doman man/*.1
doinitd "${FILESDIR}/kernel-bootcfg-boot-successful"
systemd_dounit systemd/kernel-bootcfg-boot-successful.service
# Use our own provided by sys-kernel/installkernel[efistub,systemd]
#exeinto /usr/lib/kernel/install.d
#doexe systemd/99-uki-uefi-setup.install
}
pkg_postinst() {
optfeature "automatically updating UEFI configuration on each kernel installation or removal" \
"sys-kernel/installkernel[systemd,efistub]"
}