commit: d7d65a6b002170a67256e94bfb44cea44f44844b Author: Michal Rostecki <vadorovsky <AT> disroot <DOT> org> AuthorDate: Thu Jul 10 07:37:39 2025 +0000 Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net> CommitDate: Sun Jul 13 15:29:20 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d7d65a6b
sys-boot/zfsbootmenu: add 3.0.1 Bump the ebuild to the newest version. Point to the Gentoo wiki instead of the upstream GitHub repository for configuration instructions. The upstream README doesn't describe the process at all. The upstream documentation (linked in that README) has distribution-specific instructions, where Gentoo is not mentioned. The instruction in Gentoo wiki is complete and based on the information from the upstream documentation, adjusted to our needs. Signed-off-by: Michal Rostecki <vadorovsky <AT> disroot.org> Part-of: https://github.com/gentoo/guru/pull/344 Closes: https://github.com/gentoo/guru/pull/344 Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net> sys-boot/zfsbootmenu/Manifest | 1 + sys-boot/zfsbootmenu/zfsbootmenu-3.0.1.ebuild | 55 +++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/sys-boot/zfsbootmenu/Manifest b/sys-boot/zfsbootmenu/Manifest index 3c7742247a..0d40d95d41 100644 --- a/sys-boot/zfsbootmenu/Manifest +++ b/sys-boot/zfsbootmenu/Manifest @@ -1,3 +1,4 @@ DIST zfsbootmenu-1.12.0.tar.gz 1688946 BLAKE2B 291dcc813767def653bc4983cb9ff4c5b1d9f191cb8fee6e9a58cd6826fe0204606aa095339e9eeb6e4dd3201f5f9ad1b4cc3a26712960bf057198225f4b65f9 SHA512 5af3d258eee3ade3e9e11e084f4de0d251acc952348fdc4d3656b32f8fec7460c2d59fa883e06f482bd2f59e1055d6b908cf43c29aee47059d369231197a6645 DIST zfsbootmenu-2.2.2.tar.gz 1830178 BLAKE2B e2191e26215214ce2ed803bf0659aea9ba629fcb35acb75e6398731b5edcee4bc2820203844c80998e39fd4c6eb904244fce6a37126038cd816156466976100a SHA512 895491305bf97147252a63a28d378823068e83417146a949d018b49b6e6d3274af434e8047082dad08494f6db44429a9948531321750b88b0eaf282710356914 DIST zfsbootmenu-2.3.0.tar.gz 1891010 BLAKE2B 2e84204994008c85ba0ad7231fe442bd02cbb45d57b3dfd707b86d1484b155dc8309958cd66d90336897e9841596aa74d6ffa4a969bca0e65679806ac8233e94 SHA512 9b8e2d5ea258a32cd09a9382faaa21beea54f2ed825fa747f10ffe0b9f191c257b023019ec76dc882e649e8ea6fcd8e310632bba6c783228c594e3d0fee2c9c8 +DIST zfsbootmenu-3.0.1.tar.gz 1905474 BLAKE2B 879eb533c333eb95eba7d6d003e3a5ec9446aa7a6443dc28f5c7002c20bfea229601cddb670a24b0638aa94ad14b038822d389488b5028c47484ffc39f7d1633 SHA512 8176ba9325a0d7f06ce9007a2a46cbb1a66f876987ef281f2fac0e0584dfd206ef55211de4af3aa9ae23d64788060119b070c9083e33928a85542efd07c08c95 diff --git a/sys-boot/zfsbootmenu/zfsbootmenu-3.0.1.ebuild b/sys-boot/zfsbootmenu/zfsbootmenu-3.0.1.ebuild new file mode 100644 index 0000000000..16eac75b1d --- /dev/null +++ b/sys-boot/zfsbootmenu/zfsbootmenu-3.0.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit prefix + +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}-stub-location.patch +) + +RDEPEND=" +app-shells/fzf +dev-lang/perl +dev-perl/boolean +dev-perl/Config-IniFiles +dev-perl/Sort-Versions +dev-perl/YAML-PP +sys-apps/kexec-tools +sys-block/mbuffer +sys-fs/zfs +sys-kernel/dracut +" + +src_prepare() { + default + hprefixify bin/* + if [[ -n ${BROOT} ]]; then + sed -e "s,#!/bin/sh,#!${BROOT}/bin/sh," \ + -i install-tree.sh releng/version.sh || die + fi +} + +src_compile() { + # There's a makefile in the source repo but it's only for install. There's + # nothing to compile since zfsbootmenu is all scripts. + true +} + +src_install() { + emake DESTDIR="${ED}" EXAMPLES="/usr/share/doc/${PF}" install +} + +pkg_postinst () { + elog "Please consult Gentoo wiki to configure the bootloader + https://wiki.gentoo.org/wiki/ZFS/rootfs#ZFSBootMenu" +}
