From: "Pascal Jäger" <pascal.jaeger@leimstift.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-backup/grub-btrfs/files/, app-backup/grub-btrfs/
Date: Sun, 20 Nov 2022 22:06:42 +0000 (UTC) [thread overview]
Message-ID: <1668981929.23d5db0932cd9243f5de54b75d31d3690ebbf20a.pascal.jaeger@gentoo> (raw)
commit: 23d5db0932cd9243f5de54b75d31d3690ebbf20a
Author: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
AuthorDate: Sun Nov 20 22:05:29 2022 +0000
Commit: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
CommitDate: Sun Nov 20 22:05:29 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=23d5db09
app-backup/grub-btrfs: new live ebuild
Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de>
.../grub-btrfs-9999-remove-docs-from-make.patch | 37 ++++++++++++++
app-backup/grub-btrfs/grub-btrfs-9999.ebuild | 58 ++++++++++++++++++++++
2 files changed, 95 insertions(+)
diff --git a/app-backup/grub-btrfs/files/grub-btrfs-9999-remove-docs-from-make.patch b/app-backup/grub-btrfs/files/grub-btrfs-9999-remove-docs-from-make.patch
new file mode 100644
index 000000000..098050404
--- /dev/null
+++ b/app-backup/grub-btrfs/files/grub-btrfs-9999-remove-docs-from-make.patch
@@ -0,0 +1,37 @@
+Upstreams Makefile installs docs into path that is against Gentoos conventions
+
+# Pascal Jäger <pascal.jaeger@leimstift.de> (2022-11-20)
+
+--- a/Makefile
++++ b/Makefile
+@@ -34,11 +34,11 @@
+ @mkdir "${TEMP_DIR}"
+ @chmod 777 ${TEMP_DIR}
+ @cp manpages/grub-btrfs.8.man ${TEMP_DIR}/grub-btrfs.8
+- @bzip2 ${TEMP_DIR}/grub-btrfs.8
+- @install -Dm644 -t "${MAN_DIR}/man8" "${TEMP_DIR}/grub-btrfs.8.bz2"
++# @bzip2 ${TEMP_DIR}/grub-btrfs.8
++# @install -Dm644 -t "${MAN_DIR}/man8" "${TEMP_DIR}/grub-btrfs.8.bz2"
+ @cp manpages/grub-btrfsd.8.man ${TEMP_DIR}/grub-btrfsd.8
+- @bzip2 ${TEMP_DIR}/grub-btrfsd.8
+- @install -Dm644 -t "${MAN_DIR}/man8" "${TEMP_DIR}/grub-btrfsd.8.bz2";
++# @bzip2 ${TEMP_DIR}/grub-btrfsd.8
++# @install -Dm644 -t "${MAN_DIR}/man8" "${TEMP_DIR}/grub-btrfsd.8.bz2";
+ @install -Dm755 -t "$(DESTDIR)/etc/grub.d/" 41_snapshots-btrfs
+ @install -Dm644 -t "$(DESTDIR)/etc/default/grub-btrfs/" config
+ @install -Dm744 -t "$(BIN_DIR)/" grub-btrfsd;
+@@ -59,10 +59,10 @@
+ install -Dm644 "initramfs/Arch Linux/overlay_snap_ro-install" "$(LIB_DIR)/initcpio/install/grub-btrfs-overlayfs"; \
+ install -Dm644 "initramfs/Arch Linux/overlay_snap_ro-hook" "$(LIB_DIR)/initcpio/hooks/grub-btrfs-overlayfs"; \
+ fi
+- @install -Dm644 -t "$(SHARE_DIR)/licenses/$(PKGNAME)/" LICENSE
+- @install -Dm644 -t "$(SHARE_DIR)/doc/$(PKGNAME)/" README.md
+- @install -Dm644 "initramfs/readme.md" "$(SHARE_DIR)/doc/$(PKGNAME)/initramfs-overlayfs.md"
+- @rm -rf "${TEMP_DIR}"
++# @install -Dm644 -t "$(SHARE_DIR)/licenses/$(PKGNAME)/" LICENSE
++# @install -Dm644 -t "$(SHARE_DIR)/doc/$(PKGNAME)/" README.md
++# @install -Dm644 "initramfs/readme.md" "$(SHARE_DIR)/doc/$(PKGNAME)/initramfs-overlayfs.md"
++# @rm -rf "${TEMP_DIR}"
+
+ uninstall:
+ @echo "Uninstalling grub-btrfs"
diff --git a/app-backup/grub-btrfs/grub-btrfs-9999.ebuild b/app-backup/grub-btrfs/grub-btrfs-9999.ebuild
new file mode 100644
index 000000000..f423222fc
--- /dev/null
+++ b/app-backup/grub-btrfs/grub-btrfs-9999.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/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="systemd"
+PATCHES=( "${FILESDIR}/${P}-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]
+}
next reply other threads:[~2022-11-20 22:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-20 22:06 Pascal Jäger [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-08-15 20:16 [gentoo-commits] repo/proj/guru:dev commit in: app-backup/grub-btrfs/files/, app-backup/grub-btrfs/ Pascal Jäger
2021-10-07 20:53 Pascal Jäger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1668981929.23d5db0932cd9243f5de54b75d31d3690ebbf20a.pascal.jaeger@gentoo \
--to=pascal.jaeger@leimstift.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox