diff --git a/sys-boot/zfsbootmenu/Manifest b/sys-boot/zfsbootmenu/Manifest new file mode 100644 index 0000000000..9fdbab689b --- /dev/null +++ b/sys-boot/zfsbootmenu/Manifest @@ -0,0 +1 @@ +DIST zfsbootmenu-1.12.0.tar.gz 1688946 BLAKE2B 291dcc813767def653bc4983cb9ff4c5b1d9f191cb8fee6e9a58cd6826fe0204606aa095339e9eeb6e4dd3201f5f9ad1b4cc3a26712960bf057198225f4b65f9 SHA512 5af3d258eee3ade3e9e11e084f4de0d251acc952348fdc4d3656b32f8fec7460c2d59fa883e06f482bd2f59e1055d6b908cf43c29aee47059d369231197a6645 diff --git a/sys-boot/zfsbootmenu/files/zfsbootmenu-branding.patch b/sys-boot/zfsbootmenu/files/zfsbootmenu-branding.patch new file mode 100644 index 0000000000..95e2e130b2 --- /dev/null +++ b/sys-boot/zfsbootmenu/files/zfsbootmenu-branding.patch @@ -0,0 +1,20 @@ +--- a/etc/zfsbootmenu/config.yaml ++++ b/etc/zfsbootmenu/config.yaml +@@ -3,14 +3,15 @@ Global: + BootMountPoint: /boot/efi + DracutConfDir: /etc/zfsbootmenu/dracut.conf.d + Components: +- ImageDir: /boot/efi/EFI/void ++ ImageDir: /boot/efi/EFI/gentoo + Versions: 3 + Enabled: true + syslinux: + Config: /boot/syslinux/syslinux.cfg + Enabled: false + EFI: +- ImageDir: /boot/efi/EFI/void ++ ImageDir: /boot/efi/EFI/gentoo ++ Stub: /usr/lib/systemd/boot/efi/linuxx64.elf.stub + Versions: false + Enabled: false + Kernel: diff --git a/sys-boot/zfsbootmenu/metadata.xml b/sys-boot/zfsbootmenu/metadata.xml new file mode 100644 index 0000000000..cd7ee30a2a --- /dev/null +++ b/sys-boot/zfsbootmenu/metadata.xml @@ -0,0 +1,8 @@ + + + + + c@cgps.ch + Chaquen Beliakov Amaya + + diff --git a/sys-boot/zfsbootmenu/zfsbootmenu-1.12.0.ebuild b/sys-boot/zfsbootmenu/zfsbootmenu-1.12.0.ebuild new file mode 100644 index 0000000000..ab7602504d --- /dev/null +++ b/sys-boot/zfsbootmenu/zfsbootmenu-1.12.0.ebuild @@ -0,0 +1,32 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="ZFS bootloader for root-on-ZFS systems" +HOMEPAGE="https://zfsbootmenu.org" +SRC_URI="https://github.com/zbm-dev/zfsbootmenu/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +PATCHES=( + "${FILESDIR}"/${PN}-branding.patch +) + +RDEPEND=" +app-shells/fzf +sys-apps/kexec-tools +sys-block/mbuffer +dev-perl/Sort-Versions +dev-perl/Config-IniFiles +dev-perl/YAML-PP +dev-perl/boolean +sys-fs/zfs +sys-kernel/dracut" + +pkg_postinst () { + elog "Please consult upstream doumentation to install the bootloader + https://github.com/zbm-dev/zfsbootmenu" +}