app-backup/grub-btrfs - 4.12 (guru)

Search

Install

Install this version:

emerge -a =app-backup/grub-btrfs-4.12

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-backup/grub-btrfs-4.12

Or alternatively:

emerge --autounmask-write -a =app-backup/grub-btrfs-4.12

Package Information

Description:
Improves Grub by adding btrfs snapshots to the Grub menu.
Homepage:
https://github.com/Antynea/grub-btrfs
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
4.12 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit optfeature

DESCRIPTION="Improves Grub by adding btrfs snapshots to the Grub menu."
HOMEPAGE="https://github.com/Antynea/grub-btrfs"

if [[ ${PV} == 9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/Antynea/grub-btrfs"
else
	SRC_URI="https://github.com/Antynea/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~x86"
fi

LICENSE="GPL-3"
SLOT="0"
IUSE="systemd"
PATCHES=( "${FILESDIR}/${PN}-9999-remove-docs-from-make.patch" )

DEPEND="
	sys-fs/btrfs-progs
	sys-boot/grub
	app-alternatives/awk
	>=app-shells/bash-4
	sys-fs/inotify-tools
"
RDEPEND="${DEPEND}"

src_compile(){
	true
}

src_install(){
	local conf
	if use systemd; then
		conf+="SYSTEMD=true OPENRC=false"
	else
		conf+="OPENRC=true SYSTEMD=false"
	fi
	emake DESTDIR="${D}" ${conf} install || die
	dodoc README.md
	mv ./initramfs/readme.md initramfs-overlayfs.md || die
	dodoc initramfs-overlayfs.md
	doman temp/grub-btrfs.8
	doman temp/grub-btrfsd.8
}

pkg_postinst() {
	elog "run 'grub-mkconfig -o /boot/grub/grub.cfg' to update your Grub menu."
	elog "update the /etc/grub.d/41_snapshots-btrfs script if neccesary."
	elog "(e.g. with dispatch-conf or etc-update)"
	optfeature "LVM/ LUKS support" sys-boot/grub[device-mapper]
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-backup/grub-btrfs | euse -E <flag> -p app-backup/grub-btrfs | euse -D <flag> -p app-backup/grub-btrfs

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	sys-fs/btrfs-progs
	sys-boot/grub
	app-alternatives/awk
	>=app-shells/bash-4
	sys-fs/inotify-tools

RDEPEND

	sys-fs/btrfs-progs
	sys-boot/grub
	app-alternatives/awk
	>=app-shells/bash-4
	sys-fs/inotify-tools

Manifest for 4.12

Type File Size Source URLs
DIST grub-btrfs-4.12.tar.gz 34724 bytes https://github.com/Antynea/grub-btrfs/archive/4.12.tar.gz