summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-03-12 20:55:53 +0100
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-03-12 21:00:52 +0100
commit24fcae37ac96a5a8470f739d8631df6dce179fbe (patch)
tree4af0838e7ed9f963aaaa73b87ed1ad1c44c5295c /app-emulation
parentnet-im/ejabberd: pass --with-rebar=rebar to use rebar 2 (diff)
downloadgentoo-24fcae37ac96a5a8470f739d8631df6dce179fbe.tar.gz
gentoo-24fcae37ac96a5a8470f739d8631df6dce179fbe.tar.bz2
gentoo-24fcae37ac96a5a8470f739d8631df6dce179fbe.zip
app-emulation/virt-firmware: new package, add 24.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/virt-firmware/Manifest1
-rw-r--r--app-emulation/virt-firmware/metadata.xml19
-rw-r--r--app-emulation/virt-firmware/virt-firmware-24.2.ebuild47
3 files changed, 67 insertions, 0 deletions
diff --git a/app-emulation/virt-firmware/Manifest b/app-emulation/virt-firmware/Manifest
new file mode 100644
index 000000000000..bc81330a6c0a
--- /dev/null
+++ b/app-emulation/virt-firmware/Manifest
@@ -0,0 +1 @@
+DIST virt-firmware-24.2.tar.gz 110844 BLAKE2B db7ad7663678a313bdd0e23de7e374547e5dbc1a04b37a65e366ae042410a3a6c21ccfef3747a2534cb76906868caaf1364ac1ecd1443c1c1053a5b7687da50b SHA512 8583420acb31fb32e4c195c0c1816b36248ec2e486ded0795e51180e2690b2bcdc10eb8707f4fc9fa36da5b24082737c5c3b2e3988f6c5455e08a5d2a0ff92e7
diff --git a/app-emulation/virt-firmware/metadata.xml b/app-emulation/virt-firmware/metadata.xml
new file mode 100644
index 000000000000..1059efa31d78
--- /dev/null
+++ b/app-emulation/virt-firmware/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>andrewammerlaan@gentoo.org</email>
+ <name>Andrew Ammerlaan</name>
+ </maintainer>
+ <stabilize-allarches/>
+ <longdescription lang="en">
+ This is a small collection of tools for edk2 firmware images. They
+ support decoding and printing the content of firmware volumes.
+ Variable stores (OVMF_VARS.fd) can be modified, for example to enroll
+ secure boot certificates.
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">virt-firmware</remote-id>
+ <remote-id type="gitlab">kraxel/virt-firmware</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-emulation/virt-firmware/virt-firmware-24.2.ebuild b/app-emulation/virt-firmware/virt-firmware-24.2.ebuild
new file mode 100644
index 000000000000..9fd059ab7234
--- /dev/null
+++ b/app-emulation/virt-firmware/virt-firmware-24.2.ebuild
@@ -0,0 +1,47 @@
+# 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
+PYPI_NO_NORMALIZE=1
+
+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"
+
+RDEPEND="
+ dev-python/cryptography[${PYTHON_USEDEP}]
+ dev-python/pefile[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests unittest
+
+python_test() {
+ eunittest tests
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ doman man/*.1
+
+ systemd_dounit systemd/kernel-bootcfg-boot-successful.service
+
+ exeinto /usr/lib/kernel/install.d
+ doexe systemd/99-uki-uefi-setup.install
+}
+
+pkg_postinst() {
+ optfeature "managing UEFI entries on Unified Kernel Image installation and removal" \
+ "sys-boot/shim sys-kernel/installkernel[systemd]"
+}