From 17a2b7d3ac365fd47eaf425fb795487a00309e60 Mon Sep 17 00:00:00 2001 From: fabolous005 Date: Sat, 26 Oct 2024 10:29:35 +0200 Subject: [PATCH] add uefi-mkconfig ebuild --- .../uefi-mkconfig/uefi-mkconfig-9999.ebuild | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 sys-boot/uefi-mkconfig/uefi-mkconfig-9999.ebuild diff --git a/sys-boot/uefi-mkconfig/uefi-mkconfig-9999.ebuild b/sys-boot/uefi-mkconfig/uefi-mkconfig-9999.ebuild new file mode 100644 index 0000000..e4d2156 --- /dev/null +++ b/sys-boot/uefi-mkconfig/uefi-mkconfig-9999.ebuild @@ -0,0 +1,37 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info optfeature git-r3 + +DESCRIPTION="Automatic management of UEFI entries" +HOMEPAGE="https://github.com/Biosias/uefi-mkconfig" +# SRC_URI="https://github.com/Biosias/uefi-mkconfig/archive/v${PV}.tar.gz -> ${P}.tar.gz" +EGIT_REPO_URI="https://github.com/Biosias/uefi-mkconfig.git" + +LICENSE="Apache-2.0" +SLOT="0" +# KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND=" + app-shells/bash + sys-boot/efibootmgr +" + +CONFIG_CHECK="~EFI_STUB" + +src_install() { + dobin uefi-mkconfig + einstalldocs +} + +pkg_postinst() { + elog "uefi-mkconfig: Automatic management of UEFI entries" + elog "Run uefi-mkconfig while having all efi partitions mounted" + elog "Please use with care, this package was tested on a limited number of machines" + elog "Some problems may arise due to different implementations of UEFI" + elog "Don't forget to add kernel commands to the configuration file before using this package!" + elog + optfeature "Add UEFI entries on kernel installation " \ "sys-kernel/installkernel[-systemd,efistub]" +}