diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2024-03-25 14:24:08 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2024-03-25 14:24:28 +0100 |
commit | 7f69e391bd3778e223c5a17e332b182b269241db (patch) | |
tree | 27d543d5633efb0d1c6a8fc250b076a28a59b55b /app-emulation/virt-firmware | |
parent | app-misc/binwalk: add 2.4.0 (diff) | |
download | gentoo-7f69e391bd3778e223c5a17e332b182b269241db.tar.gz gentoo-7f69e391bd3778e223c5a17e332b182b269241db.tar.bz2 gentoo-7f69e391bd3778e223c5a17e332b182b269241db.zip |
app-emulation/virt-firmware: add 24.2_p20240325
Closes: https://github.com/projg2/installkernel-gentoo/issues/24
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'app-emulation/virt-firmware')
-rw-r--r-- | app-emulation/virt-firmware/Manifest | 1 | ||||
-rw-r--r-- | app-emulation/virt-firmware/virt-firmware-24.2_p20240325.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/app-emulation/virt-firmware/Manifest b/app-emulation/virt-firmware/Manifest index da91be09cce1..5f90fa80164a 100644 --- a/app-emulation/virt-firmware/Manifest +++ b/app-emulation/virt-firmware/Manifest @@ -1,2 +1,3 @@ DIST virt-firmware-24.2.tar.gz 110844 BLAKE2B db7ad7663678a313bdd0e23de7e374547e5dbc1a04b37a65e366ae042410a3a6c21ccfef3747a2534cb76906868caaf1364ac1ecd1443c1c1053a5b7687da50b SHA512 8583420acb31fb32e4c195c0c1816b36248ec2e486ded0795e51180e2690b2bcdc10eb8707f4fc9fa36da5b24082737c5c3b2e3988f6c5455e08a5d2a0ff92e7 DIST virt-firmware-24.2_p20240320.tar.gz 107008 BLAKE2B b647ae0a918a85614499741edcd2c9b9aff6b8223905849977600a1b845de4c58ff4c45365e2a40090d5112592a295d4b5c489a8b52203043960c81973dd299f SHA512 825c27d04dcc80e2f8b163906894e9279a11fdf442b45ecf1f1493d3eb1ce9c6047f1c363a39bc1cc4d8870bfa52afa6835abc8e102fd1f17416ebe9c3a65331 +DIST virt-firmware-24.2_p20240325.tar.gz 107037 BLAKE2B d7fe7c760b769124ccc4192e3133563cf287b8a0cbe281fb758b66ae27a4c9461b6a5bdd7b97ec3e1c8e2a051b8a05fa45ded19eeb3bbbd5ff787443fed96a0d SHA512 4ea5d21bc57bda5fbfae79d70aa7805e1d4ca53aa5aeb40b555d5c03ff0fbd9780a92b3aaf9bc5b7cb8169205487309bff7031ded409e26d8d39b1fe3d937510 diff --git a/app-emulation/virt-firmware/virt-firmware-24.2_p20240325.ebuild b/app-emulation/virt-firmware/virt-firmware-24.2_p20240325.ebuild new file mode 100644 index 000000000000..03838f0933b4 --- /dev/null +++ b/app-emulation/virt-firmware/virt-firmware-24.2_p20240325.ebuild @@ -0,0 +1,60 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 systemd optfeature + +COMMIT="58080ddb4868ca5bab571f518bb8fcc605b51cf5" + +DESCRIPTION="Tools for ovmf/armvirt firmware volumes" +HOMEPAGE=" + https://gitlab.com/kraxel/virt-firmware + https://pypi.org/project/virt-firmware/ +" +SRC_URI="https://gitlab.com/kraxel/virt-firmware/-/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND=" + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/pefile[${PYTHON_USEDEP}] + || ( + sys-apps/systemd[boot(-)] + sys-apps/systemd-utils[boot(-)] + ) +" # We need bootctl from systemd(-utils) + +PATCHES=( + "${FILESDIR}/${PN}-24.2-dont-force-shim.patch" +) + +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] instead + #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]" +} |