commit:     9d7a84abb3c222dc95d7c6d94380d1ce5a580806
Author:     Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
AuthorDate: Wed Nov 23 15:57:58 2022 +0000
Commit:     Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
CommitDate: Wed Nov 23 15:57:58 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9d7a84ab

app-backup/grub-btrfs: add version 4.12

Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de>

 app-backup/grub-btrfs/Manifest               |  1 +
 app-backup/grub-btrfs/grub-btrfs-4.12.ebuild | 58 ++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/app-backup/grub-btrfs/Manifest b/app-backup/grub-btrfs/Manifest
index 1ab02333d..6b63d40ec 100644
--- a/app-backup/grub-btrfs/Manifest
+++ b/app-backup/grub-btrfs/Manifest
@@ -1 +1,2 @@
 DIST grub-btrfs-4.11.tar.gz 26016 BLAKE2B 
f808293e7ea06bf10b4a3fa46c7f70aae5b84fab46eae3f0b964e17c0b0e9cb0d2f60995177d33712e4f24b9d3e45aa6fd7ec514be4acb75f00f76d4c5380c3a
 SHA512 
c72cc6cad73e4dfa5d16345d845b2327ec854eb7c49d72f2c8d332c1854937fb1a102833b80517ee17289715f41e9b6a6342e49d4cea88325d13159dc08dcf42
+DIST grub-btrfs-4.12.tar.gz 34724 BLAKE2B 
5b6a4aa453057e90e2e142ed6b4bc84f536a8eefdc8ea3f8cfccada4706ec49759bdb04a67f64f0705a302a34494d1b758cdae37a502af1b7cd8dfb6cae5f069
 SHA512 
fb433634f59404373c2a6197c1389eb5e1a27e8aaa5d0376ee76c1c9381b5488b57989a9062a286c26e205d5ac25c2252b02416921c31408d2b7aa8e9af1a521

diff --git a/app-backup/grub-btrfs/grub-btrfs-4.12.ebuild 
b/app-backup/grub-btrfs/grub-btrfs-4.12.ebuild
new file mode 100644
index 000000000..fbdf2148f
--- /dev/null
+++ b/app-backup/grub-btrfs/grub-btrfs-4.12.ebuild
@@ -0,0 +1,58 @@
+# 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
+       virtual/awk
+       >=app-shells/bash-4
+       sys-fs/inotify-tools
+"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+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]
+}

Reply via email to