diff options
author | Pascal Jäger <pascal.jaeger@leimstift.de> | 2022-11-23 16:57:58 +0100 |
---|---|---|
committer | Pascal Jäger <pascal.jaeger@leimstift.de> | 2022-11-23 16:57:58 +0100 |
commit | 9d7a84abb3c222dc95d7c6d94380d1ce5a580806 (patch) | |
tree | 2e7d0aa2cbd7f4d0dbdfc0883ec9a7fafb36cce8 /app-backup | |
parent | app-backup/grub-btrfs: make 9999 build similar to versioned ebuild (diff) | |
download | guru-9d7a84abb3c222dc95d7c6d94380d1ce5a580806.tar.gz guru-9d7a84abb3c222dc95d7c6d94380d1ce5a580806.tar.bz2 guru-9d7a84abb3c222dc95d7c6d94380d1ce5a580806.zip |
app-backup/grub-btrfs: add version 4.12
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
Diffstat (limited to 'app-backup')
-rw-r--r-- | app-backup/grub-btrfs/Manifest | 1 | ||||
-rw-r--r-- | app-backup/grub-btrfs/grub-btrfs-4.12.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
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] +} |