From c119f803a34bb0bcb15b4d97e654c231478e292c Mon Sep 17 00:00:00 2001 From: Micha Glave Date: Tue, 19 Aug 2025 13:21:03 +0200 Subject: [PATCH] version bump sys-boot/zfsbootmenu-3.0.1 copied from guru --- sys-boot/zfsbootmenu/Manifest | 2 +- ...-2.3.0.ebuild => zfsbootmenu-3.0.1.ebuild} | 21 +++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) rename sys-boot/zfsbootmenu/{zfsbootmenu-2.3.0.ebuild => zfsbootmenu-3.0.1.ebuild} (61%) diff --git a/sys-boot/zfsbootmenu/Manifest b/sys-boot/zfsbootmenu/Manifest index 6738b65..3fa716d 100644 --- a/sys-boot/zfsbootmenu/Manifest +++ b/sys-boot/zfsbootmenu/Manifest @@ -1 +1 @@ -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-2.3.0.ebuild b/sys-boot/zfsbootmenu/zfsbootmenu-3.0.1.ebuild similarity index 61% rename from sys-boot/zfsbootmenu/zfsbootmenu-2.3.0.ebuild rename to sys-boot/zfsbootmenu/zfsbootmenu-3.0.1.ebuild index 655734a..646579b 100644 --- a/sys-boot/zfsbootmenu/zfsbootmenu-2.3.0.ebuild +++ b/sys-boot/zfsbootmenu/zfsbootmenu-3.0.1.ebuild @@ -1,8 +1,10 @@ -# Copyright 2023 Gentoo Authors +# 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" @@ -26,8 +28,18 @@ sys-apps/kexec-tools sys-block/mbuffer sys-fs/zfs sys-kernel/dracut +|| ( sys-apps/systemd[boot] sys-apps/systemd-utils[boot] ) " +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. @@ -35,10 +47,11 @@ src_compile() { } src_install() { - emake DESTDIR="${D}" install + emake DESTDIR="${ED}" EXAMPLES="/usr/share/doc/${PF}" install } pkg_postinst () { - elog "Please consult upstream doumentation to install the bootloader - https://github.com/zbm-dev/zfsbootmenu" + elog "Please consult Gentoo wiki to configure the bootloader + https://wiki.gentoo.org/wiki/ZFS/rootfs#ZFSBootMenu" } +